Skip to content

Code generation: update services and models #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/adyen/services/balancePlatform.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require_relative 'balancePlatform/account_holders_api'
require_relative 'balancePlatform/authorized_card_users_api'
require_relative 'balancePlatform/balance_accounts_api'
require_relative 'balancePlatform/balances_api'
require_relative 'balancePlatform/bank_account_validation_api'
Expand Down Expand Up @@ -34,6 +35,10 @@ def account_holders_api
@account_holders_api ||= Adyen::AccountHoldersApi.new(@client, @version)
end

def authorized_card_users_api
@authorized_card_users_api ||= Adyen::AuthorizedCardUsersApi.new(@client, @version)
end

def balance_accounts_api
@balance_accounts_api ||= Adyen::BalanceAccountsApi.new(@client, @version)
end
Expand Down
56 changes: 56 additions & 0 deletions lib/adyen/services/balancePlatform/authorized_card_users_api.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
require_relative '../service'
module Adyen

# NOTE: This class is auto generated by OpenAPI Generator
# Ref: https://openapi-generator.tech
#
# Do not edit the class manually.
class AuthorizedCardUsersApi < Service
attr_accessor :service, :version

def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'BalancePlatform')
end

# Delete the authorized users for a card.
def payment_instruments_payment_instrument_id_authorised_card_users_delete(payment_instrument_id, headers: {})
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, payment_instrument_id)

action = { method: 'delete', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get authorized users for a card.
def payment_instruments_payment_instrument_id_authorised_card_users_get(payment_instrument_id, headers: {})
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, payment_instrument_id)

action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Update the authorized users for a card.
def payment_instruments_payment_instrument_id_authorised_card_users_patch(request, payment_instrument_id, authorised_card_users, headers: {})
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, payment_instrument_id)

action = { method: 'patch', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Create authorized users for a card.
def payment_instruments_payment_instrument_id_authorised_card_users_post(request, payment_instrument_id, authorised_card_users, headers: {})
endpoint = '/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint, payment_instrument_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

end
end