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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AccountTransfers.

Parameters:



33
34
35
# File 'lib/increase/resources/simulations/account_transfers.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#complete(account_transfer_id, request_options: {}) ⇒ Increase::Models::AccountTransfer

If your account is configured to require approval for each transfer, this endpoint simulates the approval of an [Account Transfer](#account-transfers). 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.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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

def complete(, params = {})
  @client.request(
    method: :post,
    path: ["simulations/account_transfers/%1$s/complete", ],
    model: Increase::AccountTransfer,
    options: params[:request_options]
  )
end