Module: RockRMS::Client::RefundReason

Included in:
RockRMS::Client
Defined in:
lib/rock_rms/resources/refund_reason.rb

Instance Method Summary collapse

Instance Method Details

#create_refund_reason(value:, description:, order: nil, active: false) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/rock_rms/resources/refund_reason.rb', line 9

def create_refund_reason(value:, description:, order: nil, active: false)
  create_defined_value(
    value: value,
    description: description,
    order: order,
    active: active,
    defined_type_id: 37
  )
end

#list_refund_reasons(options = {}) ⇒ Object



4
5
6
7
# File 'lib/rock_rms/resources/refund_reason.rb', line 4

def list_refund_reasons(options = {})
  options['$filter'] = 'DefinedTypeId eq 37' unless options.keys.include?('$filter')
  list_defined_values(options)
end