Skip to content

Commit ee0c444

Browse files
[balanceplatform] Automated update from Adyen/adyen-openapi@3550ecd
1 parent ec1c835 commit ee0c444

4 files changed

Lines changed: 79 additions & 0 deletions

File tree

lib/adyen/services/balancePlatform.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
require_relative 'balancePlatform/balances_api'
55
require_relative 'balancePlatform/bank_account_validation_api'
66
require_relative 'balancePlatform/card_orders_api'
7+
require_relative 'balancePlatform/direct_debit_mandates_api'
78
require_relative 'balancePlatform/grant_accounts_api'
89
require_relative 'balancePlatform/grant_offers_api'
910
require_relative 'balancePlatform/manage_card_pin_api'
@@ -59,6 +60,10 @@ def card_orders_api
5960
@card_orders_api ||= Adyen::CardOrdersApi.new(@client, @version)
6061
end
6162

63+
def direct_debit_mandates_api
64+
@direct_debit_mandates_api ||= Adyen::DirectDebitMandatesApi.new(@client, @version)
65+
end
66+
6267
def grant_accounts_api
6368
@grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version)
6469
end

lib/adyen/services/balancePlatform/account_holders_api.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ def get_tax_form(id, headers: {}, query_params: {})
6262
@client.call_adyen_api(@service, action, {}, headers, @version)
6363
end
6464

65+
# Get summary of tax forms for an account holder
66+
def get_tax_form_summary(id, headers: {}, query_params: {})
67+
endpoint = '/accountHolders/{id}/taxFormSummary'.gsub(/{.+?}/, '%s')
68+
endpoint = endpoint.gsub(%r{^/}, '')
69+
endpoint = format(endpoint, id)
70+
endpoint += create_query_string(query_params)
71+
action = { method: 'get', url: endpoint }
72+
@client.call_adyen_api(@service, action, {}, headers, @version)
73+
end
74+
6575
# Update an account holder
6676
def update_account_holder(request, id, headers: {})
6777
endpoint = '/accountHolders/{id}'.gsub(/{.+?}/, '%s')
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 DirectDebitMandatesApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'BalancePlatform')
13+
end
14+
15+
# Cancel a mandate
16+
def cancel_mandate(mandate_id, headers: {})
17+
endpoint = '/mandates/{mandateId}/cancel'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, mandate_id)
20+
21+
action = { method: 'post', url: endpoint }
22+
@client.call_adyen_api(@service, action, {}, headers, @version)
23+
end
24+
25+
# Get a list of mandates
26+
def get_list_of_mandates(headers: {}, query_params: {})
27+
endpoint = '/mandates'.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 a specific mandate
36+
def get_mandate_by_id(mandate_id, headers: {})
37+
endpoint = '/mandates/{mandateId}'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint, mandate_id)
40+
41+
action = { method: 'get', url: endpoint }
42+
@client.call_adyen_api(@service, action, {}, headers, @version)
43+
end
44+
45+
# Amend a mandate
46+
def update_mandate(request, mandate_id, headers: {})
47+
endpoint = '/mandates/{mandateId}'.gsub(/{.+?}/, '%s')
48+
endpoint = endpoint.gsub(%r{^/}, '')
49+
endpoint = format(endpoint, mandate_id)
50+
51+
action = { method: 'patch', url: endpoint }
52+
@client.call_adyen_api(@service, action, request, headers, @version)
53+
end
54+
55+
end
56+
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"service": "balanceplatform",
3+
"project": "ruby",
4+
"generatedAt": "2026-04-15T07:56:05Z",
5+
"openapiCommitSha": "3550ecd3f320efaad6bee55ffed5122cb9ba09d5",
6+
"automationCommitSha": "1ceda93a33430aa189b6141d5f6ea2e61051c7fd",
7+
"libraryCommitSha": "ec1c835aada9f1a2fd35cd40bd3ef58f72156799"
8+
}

0 commit comments

Comments
 (0)