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, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Decline an Inbound Check Deposit.
-
#initialize(client:) ⇒ InboundCheckDeposits
constructor
A new instance of InboundCheckDeposits.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundCheckDeposit>
List Inbound Check Deposits.
-
#retrieve(inbound_check_deposit_id, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Retrieve an Inbound Check Deposit.
-
#return_(inbound_check_deposit_id, params = {}, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Return an Inbound Check Deposit.
Constructor Details
#initialize(client:) ⇒ InboundCheckDeposits
Returns a new instance of InboundCheckDeposits.
6 7 8 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#decline(inbound_check_deposit_id, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Decline an Inbound Check Deposit
54 55 56 57 58 59 60 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 54 def decline(inbound_check_deposit_id, opts = {}) req = {} req[:method] = :post req[:path] = "/inbound_check_deposits/#{inbound_check_deposit_id}/decline" req[:model] = Increase::Models::InboundCheckDeposit @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundCheckDeposit>
List Inbound Check Deposits
38 39 40 41 42 43 44 45 46 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 38 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_check_deposits" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::InboundCheckDeposit @client.request(req, opts) end |
#retrieve(inbound_check_deposit_id, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Retrieve an Inbound Check Deposit
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 16 def retrieve(inbound_check_deposit_id, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_check_deposits/#{inbound_check_deposit_id}" req[:model] = Increase::Models::InboundCheckDeposit @client.request(req, opts) end |
#return_(inbound_check_deposit_id, params = {}, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Return an Inbound Check Deposit
72 73 74 75 76 77 78 79 |
# File 'lib/increase/resources/inbound_check_deposits.rb', line 72 def return_(inbound_check_deposit_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/inbound_check_deposits/#{inbound_check_deposit_id}/return" req[:body] = params req[:model] = Increase::Models::InboundCheckDeposit @client.request(req, opts) end |