lib/ruby-mws/api/order.rb in ruby-mws-0.0.3 vs lib/ruby-mws/api/order.rb in ruby-mws-0.0.4

- old
+ new

@@ -1,16 +1,17 @@ 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} + 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', \ No newline at end of file