Sha256: 3eddd155b1a99909452581b6ea1af720471c923c741fc8ad0549ee5db5dc0469

Contents?: true

Size: 378 Bytes

Versions: 37

Compression:

Stored size: 378 Bytes

Contents

class Gillbus
  class ReturnCause
    extend Fields
    include UpdateAttrs

    # The return condition ID
    field :id

    # Approx. return amount in sale currency
    field :approximate_amount, :money

    # The return reason’s description.
    field :cause

    parser do
      def money(val)
        Monetize.parse(val, parent.sale_cur_code)
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
gillbus-0.23.0 lib/gillbus/structs/return_cause.rb
gillbus-0.22.9 lib/gillbus/structs/return_cause.rb
gillbus-0.22.8 lib/gillbus/structs/return_cause.rb
gillbus-0.22.7 lib/gillbus/structs/return_cause.rb
gillbus-0.22.6 lib/gillbus/structs/return_cause.rb
gillbus-0.22.5 lib/gillbus/structs/return_cause.rb
gillbus-0.22.4 lib/gillbus/structs/return_cause.rb
gillbus-0.22.3 lib/gillbus/structs/return_cause.rb
gillbus-0.22.2 lib/gillbus/structs/return_cause.rb
gillbus-0.22.1 lib/gillbus/structs/return_cause.rb
gillbus-0.22.0 lib/gillbus/structs/return_cause.rb
gillbus-0.21.0 lib/gillbus/structs/return_cause.rb
gillbus-0.20.9 lib/gillbus/structs/return_cause.rb
gillbus-0.20.8 lib/gillbus/structs/return_cause.rb
gillbus-0.20.7 lib/gillbus/structs/return_cause.rb
gillbus-0.20.6 lib/gillbus/structs/return_cause.rb
gillbus-0.20.5 lib/gillbus/structs/return_cause.rb
gillbus-0.20.4 lib/gillbus/structs/return_cause.rb
gillbus-0.20.3 lib/gillbus/structs/return_cause.rb
gillbus-0.20.2 lib/gillbus/structs/return_cause.rb