Skip to content

Commit 7b096e2

Browse files
false[adyen-sdk-automation] automated change (#291)
1 parent aa52283 commit 7b096e2

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

lib/adyen/services/balancePlatform/grant_accounts_api.rb

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION)
1313
end
1414

1515
# Get a grant account
16+
#
17+
# Deprecated since Configuration API v2
18+
# Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.
1619
def get_grant_account(id, headers: {})
1720
endpoint = '/grantAccounts/{id}'.gsub(/{.+?}/, '%s')
1821
endpoint = endpoint.gsub(%r{^/}, '')

lib/adyen/services/balancePlatform/grant_offers_api.rb

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION)
1313
end
1414

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

2528
# Get a grant offer
29+
#
30+
# Deprecated since Configuration API v2
31+
# Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.
2632
def get_grant_offer(grant_offer_id, headers: {})
2733
endpoint = '/grantOffers/{grantOfferId}'.gsub(/{.+?}/, '%s')
2834
endpoint = endpoint.gsub(%r{^/}, '')

lib/adyen/services/balancePlatform/manage_sca_devices_api.rb

+20
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ def initialize(client, version = DEFAULT_VERSION)
1212
super(client, version, 'BalancePlatform')
1313
end
1414

15+
# Complete an association between an SCA device and a resource
16+
def complete_association_between_sca_device_and_resource(request, device_id, headers: {})
17+
endpoint = '/registeredDevices/{deviceId}/associations'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, device_id)
20+
21+
action = { method: 'patch', url: endpoint }
22+
@client.call_adyen_api(@service, action, request, headers, @version)
23+
end
24+
1525
# Complete the registration of an SCA device
1626
def complete_registration_of_sca_device(request, id, headers: {})
1727
endpoint = '/registeredDevices/{id}'.gsub(/{.+?}/, '%s')
@@ -32,6 +42,16 @@ def delete_registration_of_sca_device(id, headers: {}, query_params: {})
3242
@client.call_adyen_api(@service, action, {}, headers, @version)
3343
end
3444

45+
# Initiate an association between an SCA device and a resource
46+
def initiate_association_between_sca_device_and_resource(request, device_id, headers: {})
47+
endpoint = '/registeredDevices/{deviceId}/associations'.gsub(/{.+?}/, '%s')
48+
endpoint = endpoint.gsub(%r{^/}, '')
49+
endpoint = format(endpoint, device_id)
50+
51+
action = { method: 'post', url: endpoint }
52+
@client.call_adyen_api(@service, action, request, headers, @version)
53+
end
54+
3555
# Initiate the registration of an SCA device
3656
def initiate_registration_of_sca_device(request, headers: {})
3757
endpoint = '/registeredDevices'.gsub(/{.+?}/, '%s')

0 commit comments

Comments
 (0)