Sha256: 59c189736c7c2f02f044c8ab67129b340104ff0e9fb2dded71cc1f25fca8f542

Contents?: true

Size: 525 Bytes

Versions: 95

Compression:

Stored size: 525 Bytes

Contents

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

      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
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
rock_rms-8.17.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.16.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.15.2 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.15.1 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.15.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.14.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.13.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.12.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.11.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.10.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.9.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.8.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.7.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.6.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.5.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.4.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.3.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.2.1 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.2.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.1.0 lib/rock_rms/resources/refund_reason.rb