Class: Increase::Resources::CheckDeposits
- Inherits:
-
Object
- Object
- Increase::Resources::CheckDeposits
- Defined in:
- lib/increase/resources/check_deposits.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::CheckDeposit
Create a Check Deposit.
-
#initialize(client:) ⇒ CheckDeposits
constructor
A new instance of CheckDeposits.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CheckDeposit>
List Check Deposits.
-
#retrieve(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Retrieve a Check Deposit.
Constructor Details
#initialize(client:) ⇒ CheckDeposits
Returns a new instance of CheckDeposits.
6 7 8 |
# File 'lib/increase/resources/check_deposits.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::CheckDeposit
Create a Check Deposit
23 24 25 26 27 28 29 30 |
# File 'lib/increase/resources/check_deposits.rb', line 23 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/check_deposits" req[:body] = params req[:model] = Increase::Models::CheckDeposit @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CheckDeposit>
List Check Deposits
62 63 64 65 66 67 68 69 70 |
# File 'lib/increase/resources/check_deposits.rb', line 62 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/check_deposits" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::CheckDeposit @client.request(req, opts) end |
#retrieve(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Retrieve a Check Deposit
38 39 40 41 42 43 44 |
# File 'lib/increase/resources/check_deposits.rb', line 38 def retrieve(check_deposit_id, opts = {}) req = {} req[:method] = :get req[:path] = "/check_deposits/#{check_deposit_id}" req[:model] = Increase::Models::CheckDeposit @client.request(req, opts) end |