Skip to content

Commit a147d09

Browse files
false[adyen-sdk-automation] automated change
1 parent 62dfda8 commit a147d09

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

lib/adyen/services/balancePlatform.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
require_relative 'balancePlatform/payment_instrument_groups_api'
1313
require_relative 'balancePlatform/payment_instruments_api'
1414
require_relative 'balancePlatform/platform_api'
15+
require_relative 'balancePlatform/sca_association_management_api'
16+
require_relative 'balancePlatform/sca_device_management_api'
1517
require_relative 'balancePlatform/transaction_rules_api'
1618
require_relative 'balancePlatform/transfer_limits_balance_account_level_api'
1719
require_relative 'balancePlatform/transfer_limits_balance_platform_level_api'
@@ -89,6 +91,14 @@ def platform_api
8991
@platform_api ||= Adyen::PlatformApi.new(@client, @version)
9092
end
9193

94+
def sca_association_management_api
95+
@sca_association_management_api ||= Adyen::SCAAssociationManagementApi.new(@client, @version)
96+
end
97+
98+
def sca_device_management_api
99+
@sca_device_management_api ||= Adyen::SCADeviceManagementApi.new(@client, @version)
100+
end
101+
92102
def transaction_rules_api
93103
@transaction_rules_api ||= Adyen::TransactionRulesApi.new(@client, @version)
94104
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
require_relative '../service'
2+
module Adyen
3+
4+
# NOTE: This class is auto generated by OpenAPI Generator
5+
# Ref: https://openapi-generator.tech
6+
#
7+
# Do not edit the class manually.
8+
class SCAAssociationManagementApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'BalancePlatform')
13+
end
14+
15+
# Approve a pending approval association
16+
def approve_association(request, headers: {})
17+
endpoint = '/scaAssociations'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint)
20+
21+
action = { method: 'patch', url: endpoint }
22+
@client.call_adyen_api(@service, action, request, headers, @version)
23+
end
24+
25+
# Get a list of devices associated with an entity
26+
def list_associations(headers: {}, query_params: {})
27+
endpoint = '/scaAssociations'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint)
30+
endpoint += create_query_string(query_params)
31+
action = { method: 'get', url: endpoint }
32+
@client.call_adyen_api(@service, action, {}, headers, @version)
33+
end
34+
35+
# Delete association to devices
36+
def remove_association(request, headers: {})
37+
endpoint = '/scaAssociations'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint)
40+
41+
action = { method: 'delete', url: endpoint }
42+
@client.call_adyen_api(@service, action, request, headers, @version)
43+
end
44+
45+
end
46+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
require_relative '../service'
2+
module Adyen
3+
4+
# NOTE: This class is auto generated by OpenAPI Generator
5+
# Ref: https://openapi-generator.tech
6+
#
7+
# Do not edit the class manually.
8+
class SCADeviceManagementApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'BalancePlatform')
13+
end
14+
15+
# Begin SCA device registration
16+
def begin_sca_device_registration(request, headers: {})
17+
endpoint = '/scaDevices'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint)
20+
21+
action = { method: 'post', url: endpoint }
22+
@client.call_adyen_api(@service, action, request, headers, @version)
23+
end
24+
25+
# Finish registration process for a SCA device
26+
def finish_sca_device_registration(request, device_id, headers: {})
27+
endpoint = '/scaDevices/{deviceId}'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint, device_id)
30+
31+
action = { method: 'patch', url: endpoint }
32+
@client.call_adyen_api(@service, action, request, headers, @version)
33+
end
34+
35+
# Create a new SCA association for a device
36+
def submit_sca_association(request, device_id, headers: {})
37+
endpoint = '/scaDevices/{deviceId}/scaAssociations'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint, device_id)
40+
41+
action = { method: 'post', url: endpoint }
42+
@client.call_adyen_api(@service, action, request, headers, @version)
43+
end
44+
45+
end
46+
end

0 commit comments

Comments
 (0)