Skip to content

Commit 1344464

Browse files
[adyen-sdk-automation] automated change
1 parent 5ee2ef1 commit 1344464

File tree

8 files changed

+284
-0
lines changed

8 files changed

+284
-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

lib/adyen/services/capital.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
require_relative 'capital/grant_accounts_api'
2+
require_relative 'capital/grant_offers_api'
3+
require_relative 'capital/grants_api'
4+
5+
module Adyen
6+
7+
# NOTE: This class is auto generated by OpenAPI Generator
8+
# Ref: https://openapi-generator.tech
9+
#
10+
# Do not edit the class manually.
11+
class Capital
12+
attr_accessor :service, :version
13+
14+
DEFAULT_VERSION = 1
15+
def initialize(client, version = DEFAULT_VERSION)
16+
@service = 'Capital'
17+
@client = client
18+
@version = version
19+
end
20+
21+
def grant_accounts_api
22+
@grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version)
23+
end
24+
25+
def grant_offers_api
26+
@grant_offers_api ||= Adyen::GrantOffersApi.new(@client, @version)
27+
end
28+
29+
def grants_api
30+
@grants_api ||= Adyen::GrantsApi.new(@client, @version)
31+
end
32+
33+
end
34+
end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 GrantAccountsApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'Capital')
13+
end
14+
15+
# Get the information of your grant account
16+
def get_grant_account_information(id, headers: {})
17+
endpoint = '/grantAccounts/{id}'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, id)
20+
21+
action = { method: 'get', url: endpoint }
22+
@client.call_adyen_api(@service, action, {}, headers, @version)
23+
end
24+
25+
end
26+
end
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 GrantOffersApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'Capital')
13+
end
14+
15+
# Get all available grant offers
16+
def get_all_grant_offers(headers: {}, query_params: {})
17+
endpoint = '/grantOffers'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint)
20+
endpoint += create_query_string(query_params)
21+
action = { method: 'get', url: endpoint }
22+
@client.call_adyen_api(@service, action, {}, headers, @version)
23+
end
24+
25+
# Get the details of a grant offer
26+
def get_grant_offer(id, headers: {})
27+
endpoint = '/grantOffers/{id}'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint, id)
30+
31+
action = { method: 'get', url: endpoint }
32+
@client.call_adyen_api(@service, action, {}, headers, @version)
33+
end
34+
35+
end
36+
end
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 GrantsApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'Capital')
13+
end
14+
15+
# Get all the disbursements of a grant
16+
def get_all_grant_disbursements(grant_id, headers: {})
17+
endpoint = '/grants/{grantId}/disbursements'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, grant_id)
20+
21+
action = { method: 'get', url: endpoint }
22+
@client.call_adyen_api(@service, action, {}, headers, @version)
23+
end
24+
25+
# Get all the grants of an account holder
26+
def get_all_grants(headers: {}, query_params: {})
27+
endpoint = '/grants'.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+
# Get the details of a grant
36+
def get_grant(grant_id, headers: {})
37+
endpoint = '/grants/{grantId}'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint, grant_id)
40+
41+
action = { method: 'get', url: endpoint }
42+
@client.call_adyen_api(@service, action, {}, headers, @version)
43+
end
44+
45+
# Get disbursement details
46+
def get_grant_disbursement(grant_id, disbursement_id, headers: {})
47+
endpoint = '/grants/{grantId}/disbursements/{disbursementId}'.gsub(/{.+?}/, '%s')
48+
endpoint = endpoint.gsub(%r{^/}, '')
49+
endpoint = format(endpoint, grant_id, disbursement_id)
50+
51+
action = { method: 'get', url: endpoint }
52+
@client.call_adyen_api(@service, action, {}, headers, @version)
53+
end
54+
55+
# Make a request for a grant
56+
def request_grant(request, headers: {})
57+
endpoint = '/grants'.gsub(/{.+?}/, '%s')
58+
endpoint = endpoint.gsub(%r{^/}, '')
59+
endpoint = format(endpoint)
60+
61+
action = { method: 'post', url: endpoint }
62+
@client.call_adyen_api(@service, action, request, headers, @version)
63+
end
64+
65+
# Update the repayment configuration of a disbursement
66+
def update_grant_disbursement(request, grant_id, disbursement_id, headers: {})
67+
endpoint = '/grants/{grantId}/disbursements/{disbursementId}'.gsub(/{.+?}/, '%s')
68+
endpoint = endpoint.gsub(%r{^/}, '')
69+
endpoint = format(endpoint, grant_id, disbursement_id)
70+
71+
action = { method: 'patch', url: endpoint }
72+
@client.call_adyen_api(@service, action, request, headers, @version)
73+
end
74+
75+
end
76+
end

lib/adyen/services/checkout/recurring_api.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ def delete_token_for_stored_payment_details(stored_payment_method_id, headers: {
2222
@client.call_adyen_api(@service, action, {}, headers, @version)
2323
end
2424

25+
# Forward stored payment details
26+
def forward(request, headers: {})
27+
endpoint = '/forward'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint)
30+
31+
action = { method: 'post', url: endpoint }
32+
@client.call_adyen_api(@service, action, request, headers, @version)
33+
end
34+
2535
# Get tokens for stored payment details
2636
def get_tokens_for_stored_payment_details(headers: {}, query_params: {})
2737
endpoint = '/storedPaymentMethods'.gsub(/{.+?}/, '%s')

0 commit comments

Comments
 (0)