class

Zazu::Resources::Accounts

Inherits Zazu::Resources::Base < Reference < Object

Accounts and their transactions.

Instance methods

get(id : String) : Response

GET /api/accounts/:id

Source
get_transaction(account_id : String, transaction_id : String) : Response

GET /api/accounts/:account_id/transactions/:id

Source
list(status : String | Nil = nil, currency_code : String | Nil = nil, limit : Int32 = MAX_PER_PAGE, cursor : String | Nil = nil) : Page

GET /api/accounts

Source
list_transactions(account_id : String, operation : String | Nil = nil, posted_after : String | Time | Nil = nil, posted_before : String | Time | Nil = nil, limit : Int32 = MAX_PER_PAGE, cursor : String | Nil = nil) : Page

GET /api/accounts/:account_id/transactions

posted_after / posted_before are ISO-8601 timestamps; Time values are serialized for you.

Source