Class: Increase::Resources::Simulations::AccountTransfers

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/simulations/account_transfers.rb

Instance Method Summary collapse

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.

Parameters:

  • account_transfer_id (String)

    The identifier of the Account Transfer you wish to complete.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



20
21
22
23
24
25
26
# File 'lib/increase/resources/simulations/account_transfers.rb', line 20

def complete(, opts = {})
  req = {}
  req[:method] = :post
  req[:path] = "/simulations/account_transfers/#{}/complete"
  req[:model] = Increase::Models::AccountTransfer
  @client.request(req, opts)
end