lib/mws/orders/requests/order_items.rb in peddler-0.6.3 vs lib/mws/orders/requests/order_items.rb in peddler-0.6.4
- old
+ new
@@ -11,12 +11,14 @@
.camelize_keys!
execute
end
- def list_by_next_token
+ def list_by_next_token(token = next_token)
+ return unless token
+
parameters(:list_order_items_by_next_token)
- .update(next_token: next_token)
+ .update(next_token: token)
.camelize_keys!
execute
end
end