Skip to content

Code generation: update services and models #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2025
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
3 changes: 3 additions & 0 deletions lib/adyen/services/balancePlatform/grant_accounts_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION)
end

# Get a grant account
#
# Deprecated since Configuration API v2
# Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.
def get_grant_account(id, headers: {})
endpoint = '/grantAccounts/{id}'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand Down
6 changes: 6 additions & 0 deletions lib/adyen/services/balancePlatform/grant_offers_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION)
end

# Get all available grant offers
#
# Deprecated since Configuration API v2
# Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead.
def get_all_available_grant_offers(headers: {}, query_params: {})
endpoint = '/grantOffers'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand All @@ -23,6 +26,9 @@ def get_all_available_grant_offers(headers: {}, query_params: {})
end

# Get a grant offer
#
# Deprecated since Configuration API v2
# Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.
def get_grant_offer(grant_offer_id, headers: {})
endpoint = '/grantOffers/{grantOfferId}'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand Down
20 changes: 20 additions & 0 deletions lib/adyen/services/balancePlatform/manage_sca_devices_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'BalancePlatform')
end

# Complete an association between an SCA device and a resource
def complete_association_between_sca_device_and_resource(request, device_id, headers: {})
endpoint = '/registeredDevices/{deviceId}/associations'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, device_id)

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

# Complete the registration of an SCA device
def complete_registration_of_sca_device(request, id, headers: {})
endpoint = '/registeredDevices/{id}'.gsub(/{.+?}/, '%s')
Expand All @@ -32,6 +42,16 @@ def delete_registration_of_sca_device(id, headers: {}, query_params: {})
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Initiate an association between an SCA device and a resource
def initiate_association_between_sca_device_and_resource(request, device_id, headers: {})
endpoint = '/registeredDevices/{deviceId}/associations'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, device_id)

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

# Initiate the registration of an SCA device
def initiate_registration_of_sca_device(request, headers: {})
endpoint = '/registeredDevices'.gsub(/{.+?}/, '%s')
Expand Down