Class: Increase::Resources::Simulations::AccountTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::AccountTransfers
- Defined in:
- lib/increase/resources/simulations/account_transfers.rb
Instance Method Summary collapse
-
#complete(account_transfer_id, opts = {}) ⇒ Increase::Models::AccountTransfer
If your account is configured to require approval for each transfer, this endpoint simulates the approval of an Account Transfer.
-
#initialize(client:) ⇒ AccountTransfers
constructor
A new instance of AccountTransfers.
Constructor Details
#initialize(client:) ⇒ AccountTransfers
Returns a new instance of AccountTransfers.
7 8 9 |
# File 'lib/increase/resources/simulations/account_transfers.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#complete(account_transfer_id, opts = {}) ⇒ Increase::Models::AccountTransfer
If your account is configured to require approval for each transfer, this
endpoint simulates the approval of an Account Transfer.
You can also approve sandbox Account Transfers in the dashboard. This transfer
must first have a status
of pending_approval
.
20 21 22 23 24 25 26 |
# File 'lib/increase/resources/simulations/account_transfers.rb', line 20 def complete(account_transfer_id, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/account_transfers/#{account_transfer_id}/complete" req[:model] = Increase::Models::AccountTransfer @client.request(req, opts) end |