Sha256: 6a637f6ac5f2288485ebf4c03132a44915d94a20518598a7511dba6798eccaab

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

require 'peddler/request'
require 'mws/orders/parsers/order_items'

module MWS
  module Orders
    module Requests
      class OrderItems < ::Peddler::Request
        def list(amazon_order_id)
          parameters(:list_order_items)
            .update(amazon_order_id: amazon_order_id)
            .camelize_keys!

          execute
        end

        def list_by_next_token
          parameters(:list_order_items_by_next_token)
            .update(next_token: next_token)
            .camelize_keys!

          execute
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peddler-0.6.3 lib/mws/orders/requests/order_items.rb
peddler-0.6.2 lib/mws/orders/requests/order_items.rb
peddler-0.6.1 lib/mws/orders/requests/order_items.rb
peddler-0.6.0 lib/mws/orders/requests/order_items.rb