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-9.13.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.12.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.11.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.10.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.9.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.8.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.7.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.6.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.5.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.4.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.3.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.2.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.1.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-9.0.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.23.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.22.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.21.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.20.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.19.0 lib/rock_rms/resources/refund_reason.rb
rock_rms-8.18.0 lib/rock_rms/resources/refund_reason.rb