Sha256: 4ddb30e17addf6efba41158c47fa70e53c6a9128691f62caa43ece0d5434497d

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

module Amazon
  module MWS

    class Order < Response

      xml_name "Order"

      xml_reader :amazon_order_id
      xml_reader :seller_order_id
      xml_reader :purchase_date, :as => DateTime
      xml_reader :last_update_date, :as => DateTime
      xml_reader :order_status
      xml_reader :fulfillment_channel
      xml_reader :sales_channel
      xml_reader :order_channel
      xml_reader :ship_service_level

      xml_reader :amount, :in => "xmlns:OrderTotal", :as => Float
      xml_reader :currency_code, :in => "xmlns:OrderTotal"

      xml_reader :name, :in => "xmlns:ShippingAddress"
      xml_reader :address_line_1, :in => "xmlns:ShippingAddress"
      xml_reader :address_line_2, :in => "xmlns:ShippingAddress"
      xml_reader :address_line_3, :in => "xmlns:ShippingAddress"
      xml_reader :city, :in => "xmlns:ShippingAddress"
      xml_reader :county, :in => "xmlns:ShippingAddress"
      xml_reader :district, :in => "xmlns:ShippingAddress"
      xml_reader :state_or_region, :in => "xmlns:ShippingAddress"
      xml_reader :postal_code, :in => "xmlns:ShippingAddress"
      xml_reader :country_code, :in => "xmlns:ShippingAddress"
      xml_reader :phone, :in => "xmlns:ShippingAddress"

      xml_reader :number_of_items_shipped, :as => Integer
      xml_reader :number_of_items_unshipped, :as => Integer
      xml_reader :marketplace_id
      xml_reader :buyer_name
      xml_reader :buyer_email
      xml_reader :shipment_service_level_category

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amazon-mws-plus-0.1.3 lib/amazon/mws/response/order/models/order.rb