Class: CheckoutSdk::Transfers::TransfersClient
- Defined in:
- lib/checkout_sdk/transfers/transfers_client.rb
Instance Attribute Summary
Attributes inherited from Client
#api_client, #authorization_type, #configuration
Instance Method Summary collapse
-
#initialize(api_client, configuration) ⇒ TransfersClient
constructor
A new instance of TransfersClient.
- #initiate_transfer_of_funds(create_transfer, idempotency_key = nil) ⇒ Object
- #retrieve_transfer(transfer_id) ⇒ Object
Constructor Details
#initialize(api_client, configuration) ⇒ TransfersClient
Returns a new instance of TransfersClient.
11 12 13 |
# File 'lib/checkout_sdk/transfers/transfers_client.rb', line 11 def initialize(api_client, configuration) super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY_OR_OAUTH) end |
Instance Method Details
#initiate_transfer_of_funds(create_transfer, idempotency_key = nil) ⇒ Object
17 18 19 |
# File 'lib/checkout_sdk/transfers/transfers_client.rb', line 17 def initiate_transfer_of_funds(create_transfer, idempotency_key = nil) api_client.invoke_post(TRANSFERS, , create_transfer, idempotency_key) end |
#retrieve_transfer(transfer_id) ⇒ Object
22 23 24 |
# File 'lib/checkout_sdk/transfers/transfers_client.rb', line 22 def retrieve_transfer(transfer_id) api_client.invoke_get(build_path(TRANSFERS, transfer_id), ) end |