Module: SellerLedger::Client::Accounts
- Included in:
- SellerLedger::Client
- Defined in:
- lib/seller_ledger/client/accounts.rb
Instance Method Summary collapse
- #get_account(id) ⇒ Object
- #list_account_entries(id, params = {}) ⇒ Object
- #list_account_transactions(id, params = {}) ⇒ Object
- #list_accounts(params = {}) ⇒ Object
Instance Method Details
#get_account(id) ⇒ Object
14 15 16 17 |
# File 'lib/seller_ledger/client/accounts.rb', line 14 def get_account(id) validate(id) get("/v1/accounts/#{id}") end |
#list_account_entries(id, params = {}) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/seller_ledger/client/accounts.rb', line 28 def list_account_entries(id, params = {}) validate(id) paginated_request( "/v1/accounts/#{id}/entries", params, "entries" ) end |
#list_account_transactions(id, params = {}) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/seller_ledger/client/accounts.rb', line 19 def list_account_transactions(id, params = {}) validate(id) paginated_request( "/v1/accounts/#{id}/transactions", params, "transactions" ) end |
#list_accounts(params = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/seller_ledger/client/accounts.rb', line 6 def list_accounts(params = {}) paginated_request( "/v1/accounts", params, "accounts" ) end |