Sha256: eb76eda171e1006c707e45166b87f7da9feb00b532f4caa4913e75623adcebdb
Contents?: true
Size: 957 Bytes
Versions: 2
Compression:
Stored size: 957 Bytes
Contents
module MWS module API class Order < Base def_request [:list_orders, :list_orders_by_next_token], :verb => :get, :uri => '/Orders/2011-01-01', :version => '2011-01-01', :lists => { :order_status => "OrderStatus.Status" }, :mods => [ lambda {|r| r.orders = r.orders.order if r.orders} ] def_request [:list_order_items, :list_order_items_by_next_token], :verb => :get, :uri => '/Orders/2011-01-01', :version => '2011-01-01', :mods => [ lambda {|r| r.order_items = [r.order_items.order_item].flatten} ] def_request :get_order, :verb => :get, :uri => '/Orders/2011-01-01', :version => '2011-01-01', :lists => { :amazon_order_id => "AmazonOrderId.Id" }, :mods => [ lambda {|r| r.orders = [r.orders.order].flatten} ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-mws-0.1 | lib/ruby-mws/api/order.rb |
ruby-mws-0.0.4 | lib/ruby-mws/api/order.rb |