Class: Increase::Resources::WireDrawdownRequests
- Inherits:
-
Object
- Object
- Increase::Resources::WireDrawdownRequests
- Defined in:
- lib/increase/resources/wire_drawdown_requests.rb
Instance Method Summary collapse
-
#create(account_number_id: , amount: , creditor_address: , creditor_name: , debtor_address: , debtor_name: , unstructured_remittance_information: , debtor_account_number: nil, debtor_external_account_id: nil, debtor_routing_number: nil, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest
Some parameter documentations has been truncated, see Models::WireDrawdownRequestCreateParams for more details.
-
#initialize(client:) ⇒ WireDrawdownRequests
constructor
private
A new instance of WireDrawdownRequests.
-
#list(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::WireDrawdownRequest>
Some parameter documentations has been truncated, see Models::WireDrawdownRequestListParams for more details.
-
#retrieve(wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest
Retrieve a Wire Drawdown Request.
Constructor Details
#initialize(client:) ⇒ WireDrawdownRequests
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 WireDrawdownRequests.
104 105 106 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 104 def initialize(client:) @client = client end |
Instance Method Details
#create(account_number_id: , amount: , creditor_address: , creditor_name: , debtor_address: , debtor_name: , unstructured_remittance_information: , debtor_account_number: nil, debtor_external_account_id: nil, debtor_routing_number: nil, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest
Some parameter documentations has been truncated, see Models::WireDrawdownRequestCreateParams for more details.
Create a Wire Drawdown Request
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 38 def create(params) parsed, = Increase::WireDrawdownRequestCreateParams.dump_request(params) @client.request( method: :post, path: "wire_drawdown_requests", body: parsed, model: Increase::WireDrawdownRequest, options: ) end |
#list(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::WireDrawdownRequest>
Some parameter documentations has been truncated, see Models::WireDrawdownRequestListParams for more details.
List Wire Drawdown Requests
89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 89 def list(params = {}) parsed, = Increase::WireDrawdownRequestListParams.dump_request(params) @client.request( method: :get, path: "wire_drawdown_requests", query: parsed, page: Increase::Internal::Page, model: Increase::WireDrawdownRequest, options: ) end |
#retrieve(wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest
Retrieve a Wire Drawdown Request
60 61 62 63 64 65 66 67 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 60 def retrieve(wire_drawdown_request_id, params = {}) @client.request( method: :get, path: ["wire_drawdown_requests/%1$s", wire_drawdown_request_id], model: Increase::WireDrawdownRequest, options: params[:request_options] ) end |