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