Method: PaymentsClient#delete_payment

Defined in:
lib/lockstep_sdk/clients/payments_client.rb

#delete_payment(id:) ⇒ Object

Deletes the Payment referred to by this unique identifier.

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.

Parameters:

  • id (uuid)

    The unique Lockstep Platform ID number of the Payment to delete; NOT the customer’s ERP key



60
61
62
63
# File 'lib/lockstep_sdk/clients/payments_client.rb', line 60

def delete_payment(id:)
    path = "/api/v1/Payments/#{id}"
    @connection.request(:delete, path, nil, nil)
end