Class: Increase::Resources::FednowTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::FednowTransfers
- Defined in:
- lib/increase/resources/fednow_transfers.rb
Instance Method Summary collapse
-
#approve(fednow_transfer_id, request_options: {}) ⇒ Increase::Models::FednowTransfer
Approve a FedNow Transfer.
-
#cancel(fednow_transfer_id, request_options: {}) ⇒ Increase::Models::FednowTransfer
Cancel a pending FedNow Transfer.
-
#create(account_id: , amount: , creditor_name: , debtor_name: , source_account_number_id: , unstructured_remittance_information: , account_number: nil, creditor_address: nil, debtor_address: nil, external_account_id: nil, require_approval: nil, routing_number: nil, request_options: {}) ⇒ Increase::Models::FednowTransfer
Some parameter documentations has been truncated, see Models::FednowTransferCreateParams for more details.
-
#initialize(client:) ⇒ FednowTransfers
constructor
private
A new instance of FednowTransfers.
-
#list(account_id: nil, created_at: nil, cursor: nil, external_account_id: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::FednowTransfer>
Some parameter documentations has been truncated, see Models::FednowTransferListParams for more details.
-
#retrieve(fednow_transfer_id, request_options: {}) ⇒ Increase::Models::FednowTransfer
Retrieve a FedNow Transfer.
Constructor Details
#initialize(client:) ⇒ FednowTransfers
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 FednowTransfers.
154 155 156 |
# File 'lib/increase/resources/fednow_transfers.rb', line 154 def initialize(client:) @client = client end |
Instance Method Details
#approve(fednow_transfer_id, request_options: {}) ⇒ Increase::Models::FednowTransfer
Approve a FedNow Transfer
122 123 124 125 126 127 128 129 |
# File 'lib/increase/resources/fednow_transfers.rb', line 122 def approve(fednow_transfer_id, params = {}) @client.request( method: :post, path: ["fednow_transfers/%1$s/approve", fednow_transfer_id], model: Increase::FednowTransfer, options: params[:request_options] ) end |
#cancel(fednow_transfer_id, request_options: {}) ⇒ Increase::Models::FednowTransfer
Cancel a pending FedNow Transfer
142 143 144 145 146 147 148 149 |
# File 'lib/increase/resources/fednow_transfers.rb', line 142 def cancel(fednow_transfer_id, params = {}) @client.request( method: :post, path: ["fednow_transfers/%1$s/cancel", fednow_transfer_id], model: Increase::FednowTransfer, options: params[:request_options] ) end |
#create(account_id: , amount: , creditor_name: , debtor_name: , source_account_number_id: , unstructured_remittance_information: , account_number: nil, creditor_address: nil, debtor_address: nil, external_account_id: nil, require_approval: nil, routing_number: nil, request_options: {}) ⇒ Increase::Models::FednowTransfer
Some parameter documentations has been truncated, see Models::FednowTransferCreateParams for more details.
Create a FedNow Transfer
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/increase/resources/fednow_transfers.rb', line 42 def create(params) parsed, = Increase::FednowTransferCreateParams.dump_request(params) @client.request( method: :post, path: "fednow_transfers", body: parsed, model: Increase::FednowTransfer, options: ) end |
#list(account_id: nil, created_at: nil, cursor: nil, external_account_id: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::FednowTransfer>
Some parameter documentations has been truncated, see Models::FednowTransferListParams for more details.
List FedNow Transfers
99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/increase/resources/fednow_transfers.rb', line 99 def list(params = {}) parsed, = Increase::FednowTransferListParams.dump_request(params) @client.request( method: :get, path: "fednow_transfers", query: parsed, page: Increase::Internal::Page, model: Increase::FednowTransfer, options: ) end |
#retrieve(fednow_transfer_id, request_options: {}) ⇒ Increase::Models::FednowTransfer
Retrieve a FedNow Transfer
64 65 66 67 68 69 70 71 |
# File 'lib/increase/resources/fednow_transfers.rb', line 64 def retrieve(fednow_transfer_id, params = {}) @client.request( method: :get, path: ["fednow_transfers/%1$s", fednow_transfer_id], model: Increase::FednowTransfer, options: params[:request_options] ) end |