Class: Increase::Resources::InboundWireTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::InboundWireTransfers
- Defined in:
- lib/increase/resources/inbound_wire_transfers.rb,
sig/increase/resources/inbound_wire_transfers.rbs
Instance Method Summary collapse
-
#initialize(client:) ⇒ InboundWireTransfers
constructor
private
A new instance of InboundWireTransfers.
-
#list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, wire_drawdown_request_id: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundWireTransfer>
List Inbound Wire Transfers.
-
#retrieve(inbound_wire_transfer_id, request_options: {}) ⇒ Increase::Models::InboundWireTransfer
Retrieve an Inbound Wire Transfer.
-
#reverse(inbound_wire_transfer_id, reason:, request_options: {}) ⇒ Increase::Models::InboundWireTransfer
Reverse an Inbound Wire Transfer.
Constructor Details
#initialize(client:) ⇒ InboundWireTransfers
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 InboundWireTransfers.
95 96 97 |
# File 'lib/increase/resources/inbound_wire_transfers.rb', line 95 def initialize(client:) @client = client end |
Instance Method Details
#list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, wire_drawdown_request_id: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundWireTransfer>
List Inbound Wire Transfers
54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/increase/resources/inbound_wire_transfers.rb', line 54 def list(params = {}) parsed, = Increase::InboundWireTransferListParams.dump_request(params) query = Increase::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "inbound_wire_transfers", query: query, page: Increase::Internal::Page, model: Increase::InboundWireTransfer, options: ) end |
#retrieve(inbound_wire_transfer_id, request_options: {}) ⇒ Increase::Models::InboundWireTransfer
Retrieve an Inbound Wire Transfer
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/inbound_wire_transfers.rb', line 17 def retrieve(inbound_wire_transfer_id, params = {}) @client.request( method: :get, path: ["inbound_wire_transfers/%1$s", inbound_wire_transfer_id], model: Increase::InboundWireTransfer, options: params[:request_options] ) end |
#reverse(inbound_wire_transfer_id, reason:, request_options: {}) ⇒ Increase::Models::InboundWireTransfer
Reverse an Inbound Wire Transfer
81 82 83 84 85 86 87 88 89 90 |
# File 'lib/increase/resources/inbound_wire_transfers.rb', line 81 def reverse(inbound_wire_transfer_id, params) parsed, = Increase::InboundWireTransferReverseParams.dump_request(params) @client.request( method: :post, path: ["inbound_wire_transfers/%1$s/reverse", inbound_wire_transfer_id], body: parsed, model: Increase::InboundWireTransfer, options: ) end |