mws-sdk-promises
Advanced tools
Comparing version 0.9.9 to 0.9.10
@@ -45,4 +45,4 @@ /** | ||
* own custom complex parameters by making an object with an appendTo function that takes | ||
* an object as input and directly sets all of the associated values manually. | ||
* | ||
* an object as input and directly sets all of the associated values manually. | ||
* | ||
* @type {Object} | ||
@@ -63,3 +63,3 @@ */ | ||
}, | ||
/** | ||
@@ -84,7 +84,7 @@ * Complex List used for CreateInboundShipmentPlan request | ||
obj.members.push({ | ||
'DisplayableComment': comment, | ||
'GiftMessage': giftMessage, | ||
'DisplayableComment': comment, | ||
'GiftMessage': giftMessage, | ||
'PerUnitDeclaredValue.Value': decUnitValue, | ||
'PerUnitDeclaredValue.CurrencyCode': decValueCurrency, | ||
'Quantity': quantity, | ||
'PerUnitDeclaredValue.CurrencyCode': decValueCurrency, | ||
'Quantity': quantity, | ||
'SellerFulfillmentOrderItemId': orderItemId, | ||
@@ -105,3 +105,3 @@ 'SellerSKU': sellerSku | ||
obj.members.push({ | ||
'Quantity': quantity, | ||
'Quantity': quantity, | ||
'SellerFulfillmentOrderItemId': orderItemId, | ||
@@ -125,11 +125,11 @@ 'SellerSKU': sellerSku, | ||
ResponseGroups: function() { | ||
return new mws.Enum(['Basic', 'Detailed']); | ||
ResponseGroups: function() { | ||
return new mws.Enum(['Basic', 'Detailed']); | ||
}, | ||
ShippingSpeedCategories: function() { | ||
ShippingSpeedCategories: function() { | ||
return new mws.Enum(['Standard', 'Expedited', 'Priority']); | ||
}, | ||
FulfillmentPolicies: function() { | ||
FulfillmentPolicies: function() { | ||
return new mws.Enum(['FillOrKill', 'FillAll', 'FillAllAvailable']); | ||
@@ -141,3 +141,3 @@ } | ||
/** | ||
* A collection of currently supported request constructors. Once created and | ||
* A collection of currently supported request constructors. Once created and | ||
* configured, the returned requests can be passed to an mws client `invoke` call | ||
@@ -153,7 +153,7 @@ * @type {Object} | ||
return new FbaInboundRequest('GetServiceStatus', {}); | ||
}, | ||
}, | ||
CreateInboundShipment: function() { | ||
return new FbaInboundRequest('CreateInboundShipment', { | ||
ShipmentId: { name: 'ShipmentId', required: true}, | ||
return new FbaInboundRequest('CreateInboundShipment', { | ||
ShipmentId: { name: 'ShipmentId', required: true}, | ||
Shipmentname: { name: 'InboundShipmentHeader.ShipmentName', required: true }, | ||
@@ -214,3 +214,3 @@ ShipFromName: { name: 'InboundShipmentHeader.ShipFromAddress.Name', required: true }, | ||
ListInboundShipmentsByNextToken: function() { | ||
return new FbaInboundRequest('ListInboundShipmentsByNextToken', { | ||
return new FbaInboundRequest('ListInboundShipmentsByNextToken', { | ||
NextToken: { name: 'NextToken', required: true } | ||
@@ -243,3 +243,3 @@ }); | ||
inventory: { | ||
GetServiceStatus: function() { | ||
@@ -250,3 +250,3 @@ return new FbaInventoryRequest('GetServiceStatus', {}); | ||
ListInventorySupply: function() { | ||
return new FbaInventoryRequest('ListInventorySupply', { | ||
return new FbaInventoryRequest('ListInventorySupply', { | ||
SellerSkus: { name: 'SellerSkus.member', list: true }, | ||
@@ -257,3 +257,3 @@ QueryStartDateTime: { name: 'QueryStartDateTime', type: 'Timestamp' }, | ||
}, | ||
ListInventorySupplyByNextToken: function() { | ||
@@ -330,3 +330,3 @@ return new FbaInventoryRequest('ListInventorySupplyByNextToken', { | ||
QueryStartDateTime: { name: 'QueryStartDateTime', required: true, type: 'Timestamp' }, | ||
FulfillentMethods: { name: 'FulfillmentMethod.member', list: true } | ||
FulfillentMethods: { name: 'FulfillmentMethod.member', list: true } | ||
}); | ||
@@ -333,0 +333,0 @@ }, |
/** | ||
* Feeds API requests and definitions for Amazon's MWS web services. | ||
* For information on using, please see examples folder. | ||
* | ||
* | ||
* @author Robert Saunders | ||
*/ | ||
var mws = require('./mws'); | ||
/** | ||
* Construct a Feeds API request for mws.Client.invoke() | ||
* | ||
* | ||
* @param {String} action Action parameter of request | ||
@@ -38,4 +38,4 @@ * @param {Object} params Schemas for all supported parameters | ||
FeedProcessingStatuses: function() { | ||
return new mws.Enum(['_SUBMITTED_', '_IN_PROGRESS_', '_CANCELLED_', '_DONE_']); | ||
FeedProcessingStatuses: function() { | ||
return new mws.Enum(['_SUBMITTED_', '_IN_PROGRESS_', '_CANCELLED_', '_DONE_']); | ||
}, | ||
@@ -45,7 +45,7 @@ | ||
return new mws.Enum([ | ||
'_POST_PRODUCT_DATA_', '_POST_PRODUCT_RELATIONSHIP_DATA_', '_POST_ITEM_DATA_', '_POST_PRODUCT_OVERRIDES_DATA_', '_POST_PRODUCT_IMAGE_DATA_', | ||
'_POST_PRODUCT_PRICING_DATA_', '_POST_INVENTORY_AVAILABILITY_DATA_', '_POST_ORDER_ACKNOWLEDGEMENT_DATA_', '_POST_ORDER_FULFILLMENT_DATA_', | ||
'_POST_FULFILLMENT_ORDER_REQUEST_DATA_', '_POST_FULFILLMENT_ORDER_CANCELLATION', '_POST_PAYMENT_ADJUSTMENT_DATA_', '_POST_INVOICE_CONFIRMATION_DATA_', | ||
'_POST_FLAT_FILE_LISTINGS_DATA_', '_POST_FLAT_FILE_ORDER_ACKNOWLEDGEMENT_DATA_', '_POST_FLAT_FILE_FULFILLMENT_DATA_', | ||
'_POST_FLAT_FILE_FBA_CREATE_INBOUND_SHIPMENT_', '_POST_FLAT_FILE_FBA_UPDATE_INBOUND_SHIPMENT_', '_POST_FLAT_FILE_PAYMENT_ADJUSTMENT_DATA_', | ||
'_POST_PRODUCT_DATA_', '_POST_PRODUCT_RELATIONSHIP_DATA_', '_POST_ITEM_DATA_', '_POST_PRODUCT_OVERRIDES_DATA_', '_POST_PRODUCT_IMAGE_DATA_', | ||
'_POST_PRODUCT_PRICING_DATA_', '_POST_INVENTORY_AVAILABILITY_DATA_', '_POST_ORDER_ACKNOWLEDGEMENT_DATA_', '_POST_ORDER_FULFILLMENT_DATA_', | ||
'_POST_FULFILLMENT_ORDER_REQUEST_DATA_', '_POST_FULFILLMENT_ORDER_CANCELLATION', '_POST_PAYMENT_ADJUSTMENT_DATA_', '_POST_INVOICE_CONFIRMATION_DATA_', | ||
'_POST_FLAT_FILE_LISTINGS_DATA_', '_POST_FLAT_FILE_ORDER_ACKNOWLEDGEMENT_DATA_', '_POST_FLAT_FILE_FULFILLMENT_DATA_', | ||
'_POST_FLAT_FILE_FBA_CREATE_INBOUND_SHIPMENT_', '_POST_FLAT_FILE_FBA_UPDATE_INBOUND_SHIPMENT_', '_POST_FLAT_FILE_PAYMENT_ADJUSTMENT_DATA_', | ||
'_POST_FLAT_FILE_INVOICE_CONFIRMATION_DATA_', '_POST_FLAT_FILE_INVLOADER_DATA_', '_POST_FLAT_FILE_CONVERGENCE_LISTINGS_DATA_', | ||
@@ -59,3 +59,3 @@ '_POST_FLAT_FILE_BOOKLOADER_DATA_', '_POST_FLAT_FILE_LISTINGS_DATA_', '_POST_FLAT_FILE_PRICEANDQUANTITYONLY', '_POST_UIEE_BOOKLOADER_DATA_' | ||
/** | ||
* A collection of currently supported request constructors. Once created and | ||
* A collection of currently supported request constructors. Once created and | ||
* configured, the returned requests can be passed to an mws client `invoke` call | ||
@@ -108,12 +108,12 @@ * @type {Object} | ||
SubmitFeed: function() { | ||
return new FeedsRequest('SubmitFeed', | ||
// schema: | ||
{ | ||
FeedContents: { name: '_BODY_', required: true }, | ||
FeedType: { name: 'FeedType', required: true}, | ||
MarketplaceIds: { name: 'MarketplaceIdList.Id', list: true, required: false }, | ||
PurgeAndReplace: { name: 'PurgeAndReplace', required: false, type: 'Boolean' } | ||
}, true); | ||
return new FeedsRequest('SubmitFeed', | ||
// schema: | ||
{ | ||
FeedContents: { name: '_BODY_', required: true }, | ||
FeedType: { name: 'FeedType', required: true}, | ||
MarketplaceIds: { name: 'MarketplaceIdList.Id', list: true, required: false }, | ||
PurgeAndReplace: { name: 'PurgeAndReplace', required: false, type: 'Boolean' } | ||
}, true); | ||
} | ||
}; |
@@ -12,3 +12,3 @@ 'use strict'; | ||
* various data structures to encapsulate MWS requests, definitions, etc. | ||
* | ||
* | ||
* @param {String} accessKeyId Id for your secret Access Key (required) | ||
@@ -36,7 +36,7 @@ * @param {String} secretAccessKey Secret Access Key provided by Amazon (required) | ||
* when a lower level of control is necessary (custom or new requests, for example). | ||
* | ||
* | ||
* @param {Object} api Settings object unique to each API submodule | ||
* @param {String} action Api `Action`, such as GetServiceStatus or GetOrder | ||
* @param {Object} query Any parameters belonging to the current action | ||
* @return Promise | ||
* @return Promise | ||
*/ | ||
@@ -109,3 +109,3 @@ AmazonMwsClient.prototype.call = function(api, action, query) { | ||
* parameters to the provided query object. | ||
* | ||
* | ||
* @param {String} path Path of API call (used to build the string to sign) | ||
@@ -135,3 +135,3 @@ * @param {Object} query Any non-signature parameters that will be sent | ||
* Suggested method for invoking a pre-defined mws request object. | ||
* | ||
* | ||
* @param {Object} request An instance of AmazonMwsRequest with params, etc. | ||
@@ -150,3 +150,3 @@ * @return Promise | ||
* things DRY, yet familiar despite whichever api is being implemented. | ||
* | ||
* | ||
* @param {Object} options Settings to apply to new request instance. | ||
@@ -163,2 +163,10 @@ */ | ||
this.params = options.params || {}; | ||
if(Object.keys(this.params).length > 0){ | ||
for( var name in this.params){ | ||
var realName = this.params[name].name; | ||
if(name!== this.params[name].name){ | ||
this.paramsMap[name] = realName; | ||
} | ||
} | ||
} | ||
} | ||
@@ -168,6 +176,6 @@ | ||
* Handles the casting, renaming, and setting of individual request params. | ||
* | ||
* | ||
* @param {String} param Key of parameter (not ALWAYS the same as the param name!) | ||
* @param {Mixed} value Value to assign to parameter | ||
* @return {Object} Current instance to allow function chaining | ||
* @return {Object} Current instance to allow function chaining | ||
*/ | ||
@@ -179,2 +187,7 @@ AmazonMwsRequest.prototype.set = function(param, value) { | ||
var self = this; | ||
if(this.paramsMap.hasOwnProperty(param)){ | ||
param = this.paramsMap[param]; | ||
} | ||
var p = this.params[param], | ||
@@ -239,3 +252,3 @@ v = p.value = {}; | ||
* Builds a query object and checks for required parameters. | ||
* | ||
* | ||
* @return {Object} KvP's of all provided parameters (used by invoke()) | ||
@@ -279,3 +292,3 @@ */ | ||
* wish to encapsulate enum states in a handy, re-usable variable. | ||
* | ||
* | ||
* @param {Array} choices An array of any possible values (choices) | ||
@@ -333,3 +346,3 @@ */ | ||
* Return all enabled choices as an array (used to set list params, usually) | ||
* @return {Array} Choice values for each choice set to true | ||
* @return {Array} Choice values for each choice set to true | ||
*/ | ||
@@ -373,3 +386,3 @@ EnumType.prototype.values = function() { | ||
* an add(args) method which pushes a new complex object to members. | ||
* | ||
* | ||
* @param {String} name Name of Complex Type (including .member or subtype) | ||
@@ -405,2 +418,2 @@ */ | ||
exports.Products = require('./products'); | ||
exports.Reports = require('./reports'); | ||
exports.Reports = require('./reports'); |
/** | ||
* Orders API requests and definitions for Amazon's MWS web services. | ||
* For information on using, please see examples folder. | ||
* | ||
* | ||
* @author Robert Saunders | ||
@@ -11,3 +11,3 @@ */ | ||
* Construct an Orders API request for mws.Client.invoke() | ||
* | ||
* | ||
* @param {String} action Action parameter of request | ||
@@ -35,11 +35,11 @@ * @param {Object} params Schemas for all supported parameters | ||
FulfillmentChannels: function() { | ||
return new mws.Enum(['AFN', 'MFN']); | ||
FulfillmentChannels: function() { | ||
return new mws.Enum(['AFN', 'MFN']); | ||
}, | ||
OrderStatuses: function() { | ||
OrderStatuses: function() { | ||
return new mws.Enum(['Pending', 'Unshipped', 'PartiallyShipped', 'Shipped', 'Canceled', 'Unfulfillable']); | ||
}, | ||
PaymentMethods: function() { | ||
PaymentMethods: function() { | ||
return new mws.Enum(['COD', 'CVS', 'Other']); | ||
@@ -58,10 +58,10 @@ } | ||
FulfillmentChannel: { | ||
'AFN':'Amazon Fulfillment Network', | ||
'AFN':'Amazon Fulfillment Network', | ||
'MFN':'Merchant\'s Fulfillment Network' }, | ||
OrderStatus: { | ||
'Pending':'Order placed but payment not yet authorized. Not ready for shipment.', | ||
'Unshipped':'Payment has been authorized. Order ready for shipment, but no items shipped yet. Implies PartiallyShipped.', | ||
'Pending':'Order placed but payment not yet authorized. Not ready for shipment.', | ||
'Unshipped':'Payment has been authorized. Order ready for shipment, but no items shipped yet. Implies PartiallyShipped.', | ||
'PartiallyShipped':'One or more (but not all) items have been shipped. Implies Unshipped.', | ||
'Shipped':'All items in the order have been shipped.', | ||
'Shipped':'All items in the order have been shipped.', | ||
'Canceled':'The order was canceled.', | ||
@@ -90,3 +90,3 @@ 'Unfulfillable':'The order cannot be fulfilled. Applies only to Amazon-fulfilled orders not placed on Amazon.' }, | ||
/** | ||
* A collection of currently supported request constructors. Once created and | ||
* A collection of currently supported request constructors. Once created and | ||
* configured, the returned requests can be passed to an mws client `invoke` call | ||
@@ -108,3 +108,3 @@ * @type {Object} | ||
ListOrders: function() { | ||
return new OrdersRequest('ListOrders', { | ||
return new OrdersRequest('ListOrders', { | ||
CreatedAfter: { name: 'CreatedAfter', type: 'Timestamp' }, | ||
@@ -128,4 +128,4 @@ CreatedBefore: { name: 'CreatedBefore', type: 'Timestamp' }, | ||
ListOrdersByNextToken: function() { | ||
return new OrdersRequest('ListOrdersByNextToken', { | ||
NextToken: { name: 'NextToken', required: true } | ||
return new OrdersRequest('ListOrdersByNextToken', { | ||
NextToken: { name: 'NextToken', required: true } | ||
}); | ||
@@ -138,4 +138,4 @@ }, | ||
GetOrder: function() { | ||
return new OrdersRequest('GetOrder', { | ||
AmazonOrderId: { name: 'AmazonOrderId.Id', required: true, list: true } | ||
return new OrdersRequest('GetOrder', { | ||
AmazonOrderId: { name: 'AmazonOrderId.Id', required: true, list: true } | ||
}); | ||
@@ -156,7 +156,7 @@ }, | ||
ListOrderItemsByNextToken: function() { | ||
return new OrdersRequest('ListOrderItemsByNextToken', { | ||
NextToken: { name: 'NextToken', required: true } | ||
return new OrdersRequest('ListOrderItemsByNextToken', { | ||
NextToken: { name: 'NextToken', required: true } | ||
}); | ||
} | ||
}; | ||
}; |
/** | ||
* Products API requests and definitions for Amazon's MWS web services. | ||
* For information on using, please see examples folder. | ||
* | ||
* | ||
* @author Robert Saunders | ||
@@ -11,3 +11,3 @@ */ | ||
* Construct a Products API request for using with mws.Client.invoke() | ||
* | ||
* | ||
* @param {String} action Action parameter of request | ||
@@ -35,4 +35,4 @@ * @param {Object} params Schemas for all supported parameters | ||
ItemConditions: function() { | ||
return new mws.Enum([ 'New', 'Used', 'Collectible', 'Refurbished', 'Club' ]); | ||
ItemConditions: function() { | ||
return new mws.Enum([ 'New', 'Used', 'Collectible', 'Refurbished', 'Club' ]); | ||
} | ||
@@ -50,3 +50,3 @@ | ||
CompetitivePriceId: { | ||
'1':'New Buy Box Price', | ||
'1':'New Buy Box Price', | ||
'2':'Used Buy Box Price' }, | ||
@@ -63,3 +63,3 @@ | ||
/** | ||
* A collection of currently supported request constructors. Once created and | ||
* A collection of currently supported request constructors. Once created and | ||
* configured, the returned requests can be passed to an mws client `invoke` call | ||
@@ -75,13 +75,13 @@ * @type {Object} | ||
return new ProductsRequest('GetServiceStatus', {}); | ||
}, | ||
}, | ||
/** | ||
* Returns a list of products and their attributes, ordered by relevancy, | ||
* Returns a list of products and their attributes, ordered by relevancy, | ||
* based on a search query that you specify | ||
*/ | ||
ListMatchingProducts: function() { | ||
return new ProductsRequest('ListMatchingProducts', { | ||
return new ProductsRequest('ListMatchingProducts', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
Query: { name: 'Query', required: true}, | ||
QueryContextId: { name: 'QueryContextId'} | ||
QueryContextId: { name: 'QueryContextId'} | ||
}); | ||
@@ -91,7 +91,7 @@ }, | ||
/** | ||
* Returns a list of products and their attributes, | ||
* Returns a list of products and their attributes, | ||
* based on a list of ASIN values that you specify | ||
*/ | ||
GetMatchingProduct: function() { | ||
return new ProductsRequest('GetMatchingProduct', { | ||
return new ProductsRequest('GetMatchingProduct', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
@@ -103,10 +103,10 @@ ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
/** | ||
* Returns a list of products and their attributes, | ||
* Returns a list of products and their attributes, | ||
* based on a list of specified ID values that you specify | ||
*/ | ||
GetMatchingProductForId: function() { | ||
return new ProductsRequest('GetMatchingProductForId', { | ||
return new ProductsRequest('GetMatchingProductForId', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
IdType: { name: 'IdType', required: true}, | ||
IdList: { name: 'IdList.Id', list: true, required: true} | ||
IdList: { name: 'IdList.Id', list: true, required: true} | ||
}); | ||
@@ -116,9 +116,9 @@ }, | ||
/** | ||
* Returns the current competitive pricing of a product, | ||
* Returns the current competitive pricing of a product, | ||
* based on the SellerSKU and MarketplaceId that you specify | ||
*/ | ||
GetCompetitivePricingForSKU: function() { | ||
return new ProductsRequest('GetCompetitivePricingForSKU', { | ||
return new ProductsRequest('GetCompetitivePricingForSKU', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
SellerSKUList: { name: 'SellerSKUList.SellerSKU', list: true, required: true} | ||
SellerSKUList: { name: 'SellerSKUList.SellerSKU', list: true, required: true} | ||
}); | ||
@@ -128,9 +128,9 @@ }, | ||
/** | ||
* Same as above, except that it uses a MarketplaceId and an ASIN to uniquely | ||
* Same as above, except that it uses a MarketplaceId and an ASIN to uniquely | ||
* identify a product, and it does not return the SKUIdentifier element | ||
*/ | ||
GetCompetitivePricingForASIN: function() { | ||
return new ProductsRequest('GetCompetitivePricingForASIN', { | ||
return new ProductsRequest('GetCompetitivePricingForASIN', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
}); | ||
@@ -143,7 +143,7 @@ }, | ||
GetLowestOfferListingsForSKU: function() { | ||
return new ProductsRequest('GetLowestOfferListingsForSKU', { | ||
return new ProductsRequest('GetLowestOfferListingsForSKU', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
ItemCondition: { name: 'ItemCondition'}, | ||
SellerSKUList: { name: 'SellerSKUList.SellerSKU', list: true, required: true } | ||
}); | ||
}); | ||
}, | ||
@@ -155,6 +155,6 @@ | ||
GetLowestOfferListingsForASIN: function() { | ||
return new ProductsRequest('GetLowestOfferListingsForASIN', { | ||
return new ProductsRequest('GetLowestOfferListingsForASIN', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
ItemCondition: { name: 'ItemCondition'}, | ||
ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
}); | ||
@@ -164,9 +164,9 @@ }, | ||
/** | ||
* Returns the product categories that a product belongs to, | ||
* Returns the product categories that a product belongs to, | ||
* including parent categories back to the root for the marketplace | ||
*/ | ||
GetProductCategoriesForSKU: function() { | ||
return new ProductsRequest('GetProductCategoriesForSKU', { | ||
return new ProductsRequest('GetProductCategoriesForSKU', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
SellerSKU: { name: 'SellerSKU', required: true} | ||
SellerSKU: { name: 'SellerSKU', required: true} | ||
}); | ||
@@ -180,5 +180,5 @@ }, | ||
GetProductCategoriesForASIN: function() { | ||
return new ProductsRequest('GetProductCategoriesForASIN', { | ||
return new ProductsRequest('GetProductCategoriesForASIN', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
ASIN: { name: 'ASIN', required: true} | ||
ASIN: { name: 'ASIN', required: true} | ||
}); | ||
@@ -189,11 +189,11 @@ }, | ||
* Returns pricing information for your own offer listings, based on ASIN. | ||
* | ||
* | ||
*/ | ||
GetMyPriceForASIN: function() { | ||
return new ProductsRequest('GetMyPriceForASIN', { | ||
return new ProductsRequest('GetMyPriceForASIN', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
ASINList: { name: 'ASINList.ASIN', list: true, required: true} | ||
}); | ||
}, | ||
/** | ||
@@ -204,7 +204,7 @@ * Returns pricing information for your own offer listings, | ||
GetMyPriceForSKU: function() { | ||
return new ProductsRequest('GetMyPriceForSKU', { | ||
return new ProductsRequest('GetMyPriceForSKU', { | ||
MarketplaceId: { name: 'MarketplaceId', required: true}, | ||
SellerSKUList: { name: 'SellerSKUList.SellerSKU', list: true, required: true} | ||
SellerSKUList: { name: 'SellerSKUList.SellerSKU', list: true, required: true} | ||
}); | ||
}, | ||
}; |
/** | ||
* Reports API requests and definitions for Amazon's MWS web services. | ||
* For information on using, please see examples folder. | ||
* | ||
* | ||
* @author Robert Saunders | ||
@@ -11,3 +11,3 @@ */ | ||
* Construct a Reports API request for mws.Client.invoke() | ||
* | ||
* | ||
* @param {String} action Action parameter of request | ||
@@ -35,11 +35,11 @@ * @param {Object} params Schemas for all supported parameters | ||
Schedules: function() { | ||
return new mws.Enum(['_15_MINUTES_', '_30_MINUTES_', '_1_HOUR_', '_2_HOURS_', '_4_HOURS_', '_8_HOURS_', '_12_HOURS_', '_72_HOURS_', '_1_DAY_', '_2_DAYS_', '_7_DAYS_', '_14_DAYS_', '_15_DAYS_', '_30_DAYS_', '_NEVER_']); | ||
Schedules: function() { | ||
return new mws.Enum(['_15_MINUTES_', '_30_MINUTES_', '_1_HOUR_', '_2_HOURS_', '_4_HOURS_', '_8_HOURS_', '_12_HOURS_', '_72_HOURS_', '_1_DAY_', '_2_DAYS_', '_7_DAYS_', '_14_DAYS_', '_15_DAYS_', '_30_DAYS_', '_NEVER_']); | ||
}, | ||
ReportProcessingStatuses: function() { | ||
ReportProcessingStatuses: function() { | ||
return new mws.Enum(['_SUBMITTED_', '_IN_PROGRESS_', '_CANCELLED_', '_DONE_', '_DONE_NO_DATA_']); | ||
}, | ||
ReportOptions: function() { | ||
ReportOptions: function() { | ||
return new mws.Enum(['ShowSalesChannel=true']); | ||
@@ -51,3 +51,3 @@ } | ||
/** | ||
* A collection of currently supported request constructors. Once created and | ||
* A collection of currently supported request constructors. Once created and | ||
* configured, the returned requests can be passed to an mws client `invoke` call | ||
@@ -63,3 +63,3 @@ * @type {Object} | ||
}, | ||
GetReportCount: function() { | ||
@@ -92,3 +92,3 @@ return new ReportsRequest('GetReportCount', { | ||
GetReportRequestCount: function() { | ||
return new ReportsRequest('GetReportRequestCount', { | ||
return new ReportsRequest('GetReportRequestCount', { | ||
RequestedFromDate: { name: 'RequestedFromDate', type: 'Timestamp' }, | ||
@@ -115,5 +115,5 @@ RequestedToDate: { name: 'RequestedToDate', type: 'Timestamp' }, | ||
NextToken: { name: 'NextToken', required: true } | ||
}); | ||
}); | ||
}, | ||
CancelReportRequests: function() { | ||
@@ -127,3 +127,3 @@ return new ReportsRequest('CancelReportRequests', { | ||
}); | ||
}, | ||
}, | ||
@@ -153,3 +153,3 @@ RequestReport: function() { | ||
}, | ||
GetReportScheduleListByNextToken: function() { | ||
@@ -174,2 +174,2 @@ return new ReportsRequest('GetReportScheduleListByNextToken', { | ||
}; | ||
}; |
/** | ||
* Sellers API requests and definitions for Amazon's MWS web services. | ||
* For information on using, please see examples folder. | ||
* | ||
* | ||
* @author Robert Saunders | ||
@@ -11,3 +11,3 @@ */ | ||
* Construct a Sellers API request for mws.Client.invoke() | ||
* | ||
* | ||
* @param {String} action Action parameter of request | ||
@@ -45,3 +45,3 @@ * @param {Object} params Schemas for all supported parameters | ||
/** | ||
* A collection of currently supported request constructors. Once created and | ||
* A collection of currently supported request constructors. Once created and | ||
* configured, the returned requests can be passed to an mws client `invoke` call | ||
@@ -69,2 +69,2 @@ * @type {Object} | ||
}; | ||
}; |
@@ -12,3 +12,3 @@ { | ||
"homepage": "http://_", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"author": { | ||
@@ -19,16 +19,12 @@ "name": "Eibbor Srenduas", | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Adrian Sanchezdelc", | ||
"email": "adrian@ticadia.com" | ||
}, | ||
{ | ||
"name": "David F. Sklar", | ||
"email": "dfsklar@gmail.com" | ||
}, | ||
{ | ||
"name": "Alex I. Vedmedenko", | ||
"email": "vedmalex@gmail.com" | ||
} | ||
], | ||
"contributors": [{ | ||
"name": "Adrian Sanchezdelc", | ||
"email": "adrian@ticadia.com" | ||
}, { | ||
"name": "David F. Sklar", | ||
"email": "dfsklar@gmail.com" | ||
}, { | ||
"name": "Alex I. Vedmedenko", | ||
"email": "vedmalex@gmail.com" | ||
}], | ||
"main": "./lib/mws", | ||
@@ -35,0 +31,0 @@ "directories": { |
1304
56172