Sha256: 8615352aa6159c32ab08b5380f80f50de248ca82b75052b229a587473e036445

Contents?: true

Size: 945 Bytes

Versions: 1

Compression:

Stored size: 945 Bytes

Contents

require_relative 'models/order'
module Amazon
  module MWS

    class RequestOrdersResponse < Response
      xml_name "ListOrdersResponse"
      result = "ListOrdersResult"
      namespace = "xmlns:"

       xml_reader :next_token, :in => result
       xml_reader :last_updated_before, :in => result, :as => DateTime
       xml_reader :request_id, :in => "ResponseMetadata"
       xml_reader :orders, :as => [Order], :in => namespace + result + "/" + namespace + "Orders"
    end

    class RequestOrdersByNextTokenResponse < Response
      xml_name "ListOrdersByNextTokenResponse"
      result = "ListOrdersByNextTokenResult"
      namespace = "xmlns:"

       xml_reader :next_token, :in => result
       xml_reader :last_updated_before, :in => result, :as => DateTime
       xml_reader :request_id, :in => "ResponseMetadata"
       xml_reader :orders, :as => [Order], :in => namespace + result + "/" + namespace + "Orders"
    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/request_orders_response.rb