Module: RockRMS::Client::RefundReason
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/refund_reason.rb
Instance Method Summary collapse
- #create_refund_reason(value:, description:, order: nil, active: false) ⇒ Object
- #list_refund_reasons(options = {}) ⇒ Object
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( = {}) ['$filter'] = 'DefinedTypeId eq 37' unless .keys.include?('$filter') list_defined_values() end |