require 'integration_helper' require 'mws/orders' class OrdersTest < IntegrationTest self.api = MWS::Orders def test_lists_and_gets_orders @clients.each do |client| amazon_order_ids = [] orders = client.list_orders(created_after: Date.today - 365) amazon_order_ids << orders.to_a.sample.amazon_order_id orders = client.list_orders_by_next_token amazon_order_ids << orders.to_a.sample.amazon_order_id orders = client.get_order(*amazon_order_ids) assert orders end end end