Class: Increase::Resources::BookkeepingEntries
- Inherits:
-
Object
- Object
- Increase::Resources::BookkeepingEntries
- Defined in:
- lib/increase/resources/bookkeeping_entries.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ BookkeepingEntries
constructor
private
A new instance of BookkeepingEntries.
-
#list(account_id: nil, cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::BookkeepingEntry>
Some parameter documentations has been truncated, see Models::BookkeepingEntryListParams for more details.
-
#retrieve(bookkeeping_entry_id, request_options: {}) ⇒ Increase::Models::BookkeepingEntry
Retrieve a Bookkeeping Entry.
Constructor Details
#initialize(client:) ⇒ BookkeepingEntries
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 BookkeepingEntries.
59 60 61 |
# File 'lib/increase/resources/bookkeeping_entries.rb', line 59 def initialize(client:) @client = client end |
Instance Method Details
#list(account_id: nil, cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::BookkeepingEntry>
Some parameter documentations has been truncated, see Models::BookkeepingEntryListParams for more details.
List Bookkeeping Entries
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/increase/resources/bookkeeping_entries.rb', line 44 def list(params = {}) parsed, = Increase::BookkeepingEntryListParams.dump_request(params) @client.request( method: :get, path: "bookkeeping_entries", query: parsed, page: Increase::Internal::Page, model: Increase::BookkeepingEntry, options: ) end |
#retrieve(bookkeeping_entry_id, request_options: {}) ⇒ Increase::Models::BookkeepingEntry
Retrieve a Bookkeeping Entry
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/bookkeeping_entries.rb', line 17 def retrieve(bookkeeping_entry_id, params = {}) @client.request( method: :get, path: ["bookkeeping_entries/%1$s", bookkeeping_entry_id], model: Increase::BookkeepingEntry, options: params[:request_options] ) end |