diff --git a/lib/adyen/services/checkout/utility_api.rb b/lib/adyen/services/checkout/utility_api.rb index 8a6dcb31..d69e1d03 100644 --- a/lib/adyen/services/checkout/utility_api.rb +++ b/lib/adyen/services/checkout/utility_api.rb @@ -12,6 +12,14 @@ def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Checkout') end + # Calculate the tax for a transaction. + def calculate_tax(request, headers: {}) + endpoint = build_endpoint('/calculateTax') + + action = { method: 'post', url: endpoint } + @client.call_adyen_api(@service, action, request, headers, @version) + end + # Get an Apple Pay session def get_apple_pay_session(request, headers: {}) endpoint = build_endpoint('/applePay/sessions') @@ -48,5 +56,13 @@ def validate_shopper_id(request, headers: {}) @client.call_adyen_api(@service, action, request, headers, @version) end + # Verify the shopper's tax identification. + def verify_shopper_tax_identification(request, headers: {}) + endpoint = build_endpoint('/verifyShopperTaxIdentification') + + action = { method: 'post', url: endpoint } + @client.call_adyen_api(@service, action, request, headers, @version) + end + end end diff --git a/sdk-generation-log/checkout.json b/sdk-generation-log/checkout.json index 7d53f2a5..ad54d7f7 100644 --- a/sdk-generation-log/checkout.json +++ b/sdk-generation-log/checkout.json @@ -1,8 +1,8 @@ { "service": "checkout", "project": "ruby", - "generatedAt": "2026-08-04T08:22:34Z", - "openapiCommitSha": "f0d0bd47b721d1b4e2c86e8b3aad706ecb88423a", - "automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397", - "libraryCommitSha": "2c40b0c319ba09d1dd30970a137b53af3193db76" + "generatedAt": "2026-10-22T14:18:39Z", + "openapiCommitSha": "2c1f3ab1e0385815899db9364a95e5aa5cf5568a", + "automationCommitSha": "b78db5c1f857f1d7d8d45116ce61f6266043fa60", + "libraryCommitSha": "773b42b07b93eceb706d79d666496a2c864f62fe" }