Class: Increase::Resources::Simulations::InboundACHTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::InboundACHTransfers
- Defined in:
- lib/increase/resources/simulations/inbound_ach_transfers.rb
Instance Method Summary collapse
-
#create(account_number_id: , amount: , addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_id: nil, company_name: nil, receiver_id_number: nil, receiver_name: nil, resolve_at: nil, standard_entry_class_code: nil, request_options: {}) ⇒ Increase::Models::InboundACHTransfer
Some parameter documentations has been truncated, see Models::Simulations::InboundACHTransferCreateParams for more details.
-
#initialize(client:) ⇒ InboundACHTransfers
constructor
private
A new instance of InboundACHTransfers.
Constructor Details
#initialize(client:) ⇒ InboundACHTransfers
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 InboundACHTransfers.
67 68 69 |
# File 'lib/increase/resources/simulations/inbound_ach_transfers.rb', line 67 def initialize(client:) @client = client end |
Instance Method Details
#create(account_number_id: , amount: , addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_id: nil, company_name: nil, receiver_id_number: nil, receiver_name: nil, resolve_at: nil, standard_entry_class_code: nil, request_options: {}) ⇒ Increase::Models::InboundACHTransfer
Some parameter documentations has been truncated, see Models::Simulations::InboundACHTransferCreateParams for more details.
Simulates an inbound ACH transfer to your account. This imitates initiating a transfer to an Increase account from a different financial institution. The transfer may be either a credit or a debit depending on if the ‘amount` is positive or negative. The result of calling this API will contain the created transfer. You can pass a `resolve_at` parameter to allow for a window to [action on the Inbound ACH Transfer](increase.com/documentation/receiving-ach-transfers). Alternatively, if you don’t pass the ‘resolve_at` parameter the result will contain either a [Transaction](#transactions) or a [Declined Transaction](#declined-transactions) depending on whether or not the transfer is allowed.
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/increase/resources/simulations/inbound_ach_transfers.rb', line 53 def create(params) parsed, = Increase::Simulations::InboundACHTransferCreateParams.dump_request(params) @client.request( method: :post, path: "simulations/inbound_ach_transfers", body: parsed, model: Increase::InboundACHTransfer, options: ) end |