Class: InvoiceHistoryClient
- Inherits:
-
Object
- Object
- InvoiceHistoryClient
- Defined in:
- lib/lockstep_sdk/clients/invoice_history.rb
Instance Method Summary collapse
-
#initialize(lockstepsdk) ⇒ InvoiceHistoryClient
constructor
Initialize the InvoiceHistoryClient class with a lockstepsdk instance.
-
#query_invoice_history(filter:, include_param:, order:, pageSize:, pageNumber:) ⇒ Object
Queries Invoice History for this account using the specified filtering, sorting, and pagination rules requested.
-
#retrieve_invoice_history(id:) ⇒ Object
Retrieves the history of the Invoice specified by this unique identifier.
Constructor Details
#initialize(lockstepsdk) ⇒ InvoiceHistoryClient
Initialize the InvoiceHistoryClient class with a lockstepsdk instance.
22 23 24 |
# File 'lib/lockstep_sdk/clients/invoice_history.rb', line 22 def initialize(lockstepsdk) @lockstepsdk = lockstepsdk end |
Instance Method Details
#query_invoice_history(filter:, include_param:, order:, pageSize:, pageNumber:) ⇒ Object
Queries Invoice History for this account using the specified filtering, sorting, and pagination rules requested.
An Invoice represents a bill sent from one company to another. The Lockstep Platform tracks changes to each Invoice so that you can observe the changes over time. You can view the InvoiceHistory list to monitor and observe the changes of this Invoice and track the dates when changes occurred.
47 48 49 50 51 |
# File 'lib/lockstep_sdk/clients/invoice_history.rb', line 47 def query_invoice_history(filter:, include_param:, order:, pageSize:, pageNumber:) path = "/api/v1/InvoiceHistory/query" params = {:filter => filter, :include => include_param, :order => order, :pageSize => pageSize, :pageNumber => pageNumber} @lockstepsdk.request(:get, path, nil, params) end |
#retrieve_invoice_history(id:) ⇒ Object
Retrieves the history of the Invoice specified by this unique identifier.
An Invoice represents a bill sent from one company to another. The Lockstep Platform tracks changes to each Invoice so that you can observe the changes over time. You can view the InvoiceHistory list to monitor and observe the changes of this Invoice and track the dates when changes occurred.
32 33 34 35 36 |
# File 'lib/lockstep_sdk/clients/invoice_history.rb', line 32 def retrieve_invoice_history(id:) path = "/api/v1/InvoiceHistory/#{id}" params = {} @lockstepsdk.request(:get, path, nil, params) end |