Sha256: 2f0dfb48b40b32adf9fcfb59c7561be3a01111171ebbeb14d761943bb0b97ed9
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
module MuffinMan module Orders class V0 < SpApiClient GET_ORDERS_PARAMS = %w[ CreatedAfter CreatedBefore LastUpdatedAfter LastUpdatedBefore OrderStatuses FulfillmentChannels PaymentMethods BuyerEmail SellerOrderId MaxResultsPerPage EasyShipShipmentStatuses NextToken AmazonOrderIds ActualFulfillmentSupplySourceId IsISPU StoreChainStoreId ].freeze GET_ORDER_ITEMS_PARAMS = %w[ NextToken ].freeze def get_orders(marketplace_ids, params = {}) @local_var_path = "/orders/v0/orders" @query_params = params.slice(*GET_ORDERS_PARAMS) @query_params["MarketplaceIds"] = marketplace_ids @request_type = "GET" call_api end def get_order_items(order_id, params = {}) @query_params = params.slice(*GET_ORDER_ITEMS_PARAMS) @local_var_path = "/orders/v0/orders/#{order_id}/orderItems" @request_type = "GET" call_api end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
muffin_man-1.4.2 | lib/muffin_man/orders/v0.rb |