Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions lib/adyen/services/paymentsApp/payments_app_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,49 +14,39 @@ def initialize(client, version = DEFAULT_VERSION)

# Create a boarding token - merchant level
def generate_payments_app_boarding_token_for_merchant(request, merchant_id, headers: {})
endpoint = '/merchants/{merchantId}/generatePaymentsAppBoardingToken'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, merchant_id)
endpoint = build_endpoint('/merchants/{merchantId}/generatePaymentsAppBoardingToken', merchant_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Create a boarding token - store level
def generate_payments_app_boarding_token_for_store(request, merchant_id, store_id, headers: {})
endpoint = '/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, merchant_id, store_id)
endpoint = build_endpoint('/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken', merchant_id, store_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Get a list of Payments Apps - merchant level
def list_payments_app_for_merchant(merchant_id, headers: {}, query_params: {})
endpoint = '/merchants/{merchantId}/paymentsApps'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, merchant_id)
endpoint = build_endpoint('/merchants/{merchantId}/paymentsApps', merchant_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get a list of Payments Apps - store level
def list_payments_app_for_store(merchant_id, store_id, headers: {}, query_params: {})
endpoint = '/merchants/{merchantId}/stores/{storeId}/paymentsApps'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, merchant_id, store_id)
endpoint = build_endpoint('/merchants/{merchantId}/stores/{storeId}/paymentsApps', merchant_id, store_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Revoke Payments App instance authentication
def revoke_payments_app(merchant_id, installation_id, headers: {})
endpoint = '/merchants/{merchantId}/paymentsApps/{installationId}/revoke'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, merchant_id, installation_id)
endpoint = build_endpoint('/merchants/{merchantId}/paymentsApps/{installationId}/revoke', merchant_id, installation_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
Expand Down
8 changes: 8 additions & 0 deletions sdk-generation-log/paymentsapp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"service": "paymentsapp",
"project": "ruby",
"generatedAt": "2026-04-20T13:40:00Z",
"openapiCommitSha": "3550ecd3f320efaad6bee55ffed5122cb9ba09d5",
"automationCommitSha": "4ad0c0c7e87bc0e5994a9a3350a991d0691350bb",
"libraryCommitSha": "60ccdbdbbb7069d54600a8a8cd19eea245661134"
}
Loading