Sha256: 3acd818087b9c7129ba268ac59336b12299cb2e8bc695121fe4c6810c16f21a8
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 Bytes
Contents
require 'peddler/request' require 'mws/orders/parsers/orders' module MWS module Orders module Requests class Orders < ::Peddler::Request def get(*amazon_order_ids) parameters(:get_order) .update(amazon_order_id: amazon_order_ids) .format_structured_lists! .camelize_keys! execute end def list(options) options[:marketplace_id] ||= client.marketplace_id parameters(:list_orders) .update(options) .timestamp! .format_structured_lists! .camelize_keys! execute end def list_by_next_token(token = next_token) return unless token parameters(:list_orders_by_next_token) .update(next_token: token) .camelize_keys! execute end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.6.5 | lib/mws/orders/requests/orders.rb |
peddler-0.6.4 | lib/mws/orders/requests/orders.rb |