Sha256: ec052a31e556c43b329f3a6096d8ee130b550cb56da2655e2362ef4eb2707268

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 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, doc[:_currency])
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gillbus-0.17.6 lib/gillbus/structs/return_cause.rb
gillbus-0.17.5 lib/gillbus/structs/return_cause.rb
gillbus-0.17.4 lib/gillbus/structs/return_cause.rb
gillbus-0.17.3 lib/gillbus/structs/return_cause.rb
gillbus-0.17.2 lib/gillbus/structs/return_cause.rb
gillbus-0.17.1 lib/gillbus/structs/return_cause.rb
gillbus-0.16.10 lib/gillbus/structs/return_cause.rb
gillbus-0.16.9 lib/gillbus/structs/return_cause.rb
gillbus-0.16.8 lib/gillbus/structs/return_cause.rb