Method: PaymentsClient#query_payments
- Defined in:
- lib/lockstep_sdk/clients/payments_client.rb
#query_payments(filter:, include_param:, order:, page_size:, page_number:) ⇒ Object
Queries Payments for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
More information on querying can be found on the [Searchlight Query Language](developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
A Payment represents money sent from one company to another. A single payment may contain payments for one or more invoices; it is also possible for payments to be made in advance of an invoice, for example, as a deposit. The creator of the Payment is identified by the ‘CustomerId` field, and the recipient of the Payment is identified by the `CompanyId` field. Most Payments are uniquely identified both by a Lockstep Platform ID number and a customer ERP “key” that was generated by the system that originated the Payment. Payments that have not been fully applied have a nonzero `UnappliedAmount` value, which represents a deposit that has been paid and not yet applied to an Invoice.
88 89 90 91 92 |
# File 'lib/lockstep_sdk/clients/payments_client.rb', line 88 def query_payments(filter:, include_param:, order:, page_size:, page_number:) path = "/api/v1/Payments/query" params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number} @connection.request(:get, path, nil, params) end |