Class: Increase::Resources::Simulations::RealTimePaymentsTransfers

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ RealTimePaymentsTransfers

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 RealTimePaymentsTransfers.

Parameters:



37
38
39
# File 'lib/increase/resources/simulations/real_time_payments_transfers.rb', line 37

def initialize(client:)
  @client = client
end

Instance Method Details

#complete(real_time_payments_transfer_id, rejection: nil, request_options: {}) ⇒ Increase::Models::RealTimePaymentsTransfer

Simulates submission of a [Real-Time Payments Transfer](#real-time-payments-transfers) and handling the response from the destination financial institution. This transfer must first have a ‘status` of `pending_submission`.

Parameters:

Returns:

See Also:



23
24
25
26
27
28
29
30
31
32
# File 'lib/increase/resources/simulations/real_time_payments_transfers.rb', line 23

def complete(real_time_payments_transfer_id, params = {})
  parsed, options = Increase::Simulations::RealTimePaymentsTransferCompleteParams.dump_request(params)
  @client.request(
    method: :post,
    path: ["simulations/real_time_payments_transfers/%1$s/complete", real_time_payments_transfer_id],
    body: parsed,
    model: Increase::RealTimePaymentsTransfer,
    options: options
  )
end