Sha256: 8d8cc6e6aba8fd1b4a0264d7ebcc8a8bb067e8c358d2d9151099abb7530ee4e0

Contents?: true

Size: 1 KB

Versions: 10

Compression:

Stored size: 1 KB

Contents

# coding: utf-8

module ONIX
  class Price
    include ROXML
    include ONIX::Common

    xml_name "Price"

    xml_accessor :price_type_code, :from => "PriceTypeCode", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit
    xml_accessor :price_type_qualifier, :from => "PriceTypeQualifier", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit
    xml_accessor :price_type_description, :from => "PriceTypeDescription"
    xml_accessor :price_per, :from => "PricePer", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit
    xml_accessor :minimum_order_qty, :from => "MinimumOrderQuantity", :as => Fixnum
    xml_accessor :class_of_trade, :from => "ClassOfTrade"
    xml_accessor :bic_discount_group_code, :from => "BICDiscountGroupCode"
    xml_accessor :price_status, :from => "PriceStatus", :as => Fixnum, :to_xml => ONIX::Formatters.two_digit
    xml_accessor :price_amount, :from => "PriceAmount", :as => BigDecimal, :to_xml => ONIX::Formatters.decimal
    xml_accessor :currency_code, :from => "CurrencyCode"
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
milkfarm-onix-0.7.7 lib/onix/price.rb
onix-0.7.8 lib/onix/price.rb
onix-0.7.7 lib/onix/price.rb
onix-0.7.6 lib/onix/price.rb
onix-0.7.5 lib/onix/price.rb
onix-0.7.4 lib/onix/price.rb
onix-0.7.2 lib/onix/price.rb
onix-0.7.3 lib/onix/price.rb
onix-0.7.0 lib/onix/price.rb
onix-0.7.1 lib/onix/price.rb