Class: Increase::Resources::Simulations::RealTimePaymentsTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::RealTimePaymentsTransfers
- Defined in:
- lib/increase/resources/simulations/real_time_payments_transfers.rb
Instance Method Summary collapse
-
#complete(real_time_payments_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::RealTimePaymentsTransfer
Simulates submission of a Real-Time Payments transfer and handling the response from the destination financial institution.
-
#initialize(client:) ⇒ RealTimePaymentsTransfers
constructor
A new instance of RealTimePaymentsTransfers.
Constructor Details
#initialize(client:) ⇒ RealTimePaymentsTransfers
Returns a new instance of RealTimePaymentsTransfers.
7 8 9 |
# File 'lib/increase/resources/simulations/real_time_payments_transfers.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#complete(real_time_payments_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::RealTimePaymentsTransfer
Simulates submission of a Real-Time Payments transfer and handling the response
from the destination financial institution. This transfer must first have a
status
of pending_submission
.
23 24 25 26 27 28 29 30 |
# File 'lib/increase/resources/simulations/real_time_payments_transfers.rb', line 23 def complete(real_time_payments_transfer_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/real_time_payments_transfers/#{real_time_payments_transfer_id}/complete" req[:body] = params req[:model] = Increase::Models::RealTimePaymentsTransfer @client.request(req, opts) end |