Module: SageoneSdk::Client::IncomeTypes

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

Overview

Represents types of sale in Sage One. These are the categories a user can make sales against.

Instance Method Summary collapse

Instance Method Details

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

Returns the sales type with the given id.

Returns:

  • (object)

    Returns the sales type with the given id.



14
15
16
# File 'lib/sageone_sdk/client/income_types.rb', line 14

def income_type(id, options = {})
  get "income_types/#{id}", options
end

#income_types(options = {}) ⇒ object

Returns all sales types.

Returns:

  • (object)

    Returns all sales types.



9
10
11
# File 'lib/sageone_sdk/client/income_types.rb', line 9

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