Module: SageoneSdk::Client::PaymentStatuses

Included in:
SageoneSdk::Client
Defined in:
lib/sageone_sdk/client/payment_statuses.rb

Overview

Represents the payment status of an invoice in Sage One. For example, Paid or Void.

Instance Method Summary collapse

Instance Method Details

#payment_status(id, options = {}) ⇒ object

Returns the payment status with the given id.

Returns:

  • (object)

    Returns the payment status with the given id.



13
14
15
# File 'lib/sageone_sdk/client/payment_statuses.rb', line 13

def payment_status(id, options = {})
  get "payment_statuses/#{id}", options
end

#payment_statuses(options = {}) ⇒ object

Returns all payment statuses.

Returns:

  • (object)

    Returns all payment statuses.



8
9
10
# File 'lib/sageone_sdk/client/payment_statuses.rb', line 8

def payment_statuses(options = {})
  get "payment_statuses", options
end