Skip to content

Commit b5e841f

Browse files
false[adyen-sdk-automation] automated change
1 parent a26075e commit b5e841f

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

lib/adyen/services/balancePlatform.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require_relative 'balancePlatform/account_holders_api'
2+
require_relative 'balancePlatform/authorized_card_users_api'
23
require_relative 'balancePlatform/balance_accounts_api'
34
require_relative 'balancePlatform/balances_api'
45
require_relative 'balancePlatform/bank_account_validation_api'
@@ -34,6 +35,10 @@ def account_holders_api
3435
@account_holders_api ||= Adyen::AccountHoldersApi.new(@client, @version)
3536
end
3637

38+
def authorized_card_users_api
39+
@authorized_card_users_api ||= Adyen::AuthorizedCardUsersApi.new(@client, @version)
40+
end
41+
3742
def balance_accounts_api
3843
@balance_accounts_api ||= Adyen::BalanceAccountsApi.new(@client, @version)
3944
end
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 AuthorizedCardUsersApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'BalancePlatform')
13+
end
14+
15+
# Delete the authorized users for a card.
16+
def payment_instruments_payment_instrument_id_authorised_card_users_delete(payment_instrument_id, headers: {})
17+
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, payment_instrument_id)
20+
21+
action = { method: 'delete', url: endpoint }
22+
@client.call_adyen_api(@service, action, {}, headers, @version)
23+
end
24+
25+
# Get authorized users for a card.
26+
def payment_instruments_payment_instrument_id_authorised_card_users_get(payment_instrument_id, headers: {})
27+
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint, payment_instrument_id)
30+
31+
action = { method: 'get', url: endpoint }
32+
@client.call_adyen_api(@service, action, {}, headers, @version)
33+
end
34+
35+
# Update the authorized users for a card.
36+
def payment_instruments_payment_instrument_id_authorised_card_users_patch(request, payment_instrument_id, authorised_card_users, headers: {})
37+
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint, payment_instrument_id)
40+
41+
action = { method: 'patch', url: endpoint }
42+
@client.call_adyen_api(@service, action, request, headers, @version)
43+
end
44+
45+
# Create authorized users for a card.
46+
def payment_instruments_payment_instrument_id_authorised_card_users_post(request, payment_instrument_id, authorised_card_users, headers: {})
47+
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
48+
endpoint = endpoint.gsub(%r{^/}, '')
49+
endpoint = format(endpoint, payment_instrument_id)
50+
51+
action = { method: 'post', url: endpoint }
52+
@client.call_adyen_api(@service, action, request, headers, @version)
53+
end
54+
55+
end
56+
end

0 commit comments

Comments
 (0)