Class: Increase::Resources::InboundCheckDeposits
- Inherits:
-
Object
- Object
- Increase::Resources::InboundCheckDeposits
- Defined in:
- lib/increase/resources/inbound_check_deposits.rb
Instance Method Summary collapse
-
#decline(inbound_check_deposit_id, request_options: {}) ⇒ Increase::Models::InboundCheckDeposit
Decline an Inbound Check Deposit.
-
#initialize(client:) ⇒ InboundCheckDeposits
constructor
private
A new instance of InboundCheckDeposits.
-
#list(account_id: nil, check_transfer_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundCheckDeposit>
Some parameter documentations has been truncated, see Models::InboundCheckDepositListParams for more details.
-
#retrieve(inbound_check_deposit_id, request_options: {}) ⇒ Increase::Models::InboundCheckDeposit
Retrieve an Inbound Check Deposit.
-
#return_(inbound_check_deposit_id, reason: , request_options: {}) ⇒ Increase::Models::InboundCheckDeposit
Return an Inbound Check Deposit.
Constructor Details
#initialize(client:) ⇒ InboundCheckDeposits
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 InboundCheckDeposits.
107 108 109 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 107 def initialize(client:) @client = client end |
Instance Method Details
#decline(inbound_check_deposit_id, request_options: {}) ⇒ Increase::Models::InboundCheckDeposit
Decline an Inbound Check Deposit
71 72 73 74 75 76 77 78 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 71 def decline(inbound_check_deposit_id, params = {}) @client.request( method: :post, path: ["inbound_check_deposits/%1$s/decline", inbound_check_deposit_id], model: Increase::InboundCheckDeposit, options: params[:request_options] ) end |
#list(account_id: nil, check_transfer_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundCheckDeposit>
Some parameter documentations has been truncated, see Models::InboundCheckDepositListParams for more details.
List Inbound Check Deposits
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 48 def list(params = {}) parsed, = Increase::InboundCheckDepositListParams.dump_request(params) @client.request( method: :get, path: "inbound_check_deposits", query: parsed, page: Increase::Internal::Page, model: Increase::InboundCheckDeposit, options: ) end |
#retrieve(inbound_check_deposit_id, request_options: {}) ⇒ Increase::Models::InboundCheckDeposit
Retrieve an Inbound Check Deposit
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 17 def retrieve(inbound_check_deposit_id, params = {}) @client.request( method: :get, path: ["inbound_check_deposits/%1$s", inbound_check_deposit_id], model: Increase::InboundCheckDeposit, options: params[:request_options] ) end |
#return_(inbound_check_deposit_id, reason: , request_options: {}) ⇒ Increase::Models::InboundCheckDeposit
Return an Inbound Check Deposit
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 93 def return_(inbound_check_deposit_id, params) parsed, = Increase::InboundCheckDepositReturnParams.dump_request(params) @client.request( method: :post, path: ["inbound_check_deposits/%1$s/return", inbound_check_deposit_id], body: parsed, model: Increase::InboundCheckDeposit, options: ) end |