@amazon-sp-api-release/amazon-sp-api-sdk-js 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/helper/DefaultRateLimitMap.mjs +13 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/apluscontent_v2020_11_01/ApiClient.js +5 -1
- package/src/appintegrations_v2024_04_01/ApiClient.js +5 -1
- package/src/applications_v2023_11_30/ApiClient.js +5 -1
- package/src/awd_v2024_05_09/ApiClient.js +5 -1
- package/src/catalogitems_v2022_04_01/ApiClient.js +5 -1
- package/src/datakiosk_v2023_11_15/ApiClient.js +5 -1
- package/src/easyship_v2022_03_23/ApiClient.js +5 -1
- package/src/fbaeligibility_v1/ApiClient.js +5 -1
- package/src/fbainventory_v1/ApiClient.js +5 -1
- package/src/feeds_v2021_06_30/ApiClient.js +5 -1
- package/src/finances_v0/ApiClient.js +5 -1
- package/src/fulfillmentinbound_v0/ApiClient.js +5 -1
- package/src/fulfillmentinbound_v2024_03_20/ApiClient.js +5 -1
- package/src/fulfillmentoutbound_v2020_07_01/ApiClient.js +5 -1
- package/src/invoices_v2024_06_19/ApiClient.js +5 -1
- package/src/invoicing_v0/ApiClient.js +5 -1
- package/src/listingsitems_v2021_08_01/ApiClient.js +5 -1
- package/src/listingsitems_v2021_08_01/api/ListingsApi.js +6 -6
- package/src/listingsitems_v2021_08_01/model/FulfillmentAvailability.js +2 -2
- package/src/listingsitems_v2021_08_01/model/Issue.js +2 -2
- package/src/listingsitems_v2021_08_01/model/IssueExemption.js +1 -1
- package/src/listingsitems_v2021_08_01/model/ItemRelationship.js +1 -1
- package/src/listingsitems_v2021_08_01/model/ItemSearchResults.js +2 -2
- package/src/listingsitems_v2021_08_01/model/Pagination.js +1 -1
- package/src/listingsitems_v2021_08_01/model/PatchOperation.js +9 -3
- package/src/listingsrestrictions_v2021_08_01/ApiClient.js +5 -1
- package/src/merchantfulfillment_v0/ApiClient.js +5 -1
- package/src/messaging_v1/ApiClient.js +5 -1
- package/src/notifications_v1/ApiClient.js +5 -1
- package/src/orders_v0/ApiClient.js +5 -1
- package/src/orders_v0/api/OrdersV0Api.js +26 -26
- package/src/orders_v0/api/ShipmentApi.js +2 -2
- package/src/orders_v0/index.js +0 -7
- package/src/orders_v0/model/AmazonPrograms.js +3 -3
- package/src/orders_v0/model/OrderItem.js +0 -7
- package/src/orders_v0/model/OrdersList.js +1 -1
- package/src/orders_v0/model/PackageDetail.js +1 -1
- package/src/pricing_v0/ApiClient.js +5 -1
- package/src/pricing_v2022_05_01/ApiClient.js +5 -1
- package/src/pricing_v2022_05_01/model/CompetitiveSummaryRequest.js +2 -2
- package/src/pricing_v2022_05_01/model/CompetitiveSummaryResponseBody.js +2 -2
- package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequest.js +3 -3
- package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams.js +2 -2
- package/src/pricing_v2022_05_01/model/FeaturedOfferSegment.js +7 -1
- package/src/pricing_v2022_05_01/model/LowestPricedOffersInput.js +2 -2
- package/src/pricing_v2022_05_01/model/OfferIdentifier.js +2 -2
- package/src/pricing_v2022_05_01/model/ReferencePrice.js +2 -2
- package/src/productfees_v0/ApiClient.js +5 -1
- package/src/producttypedefinitions_v2020_09_01/ApiClient.js +5 -1
- package/src/replenishment_v2022_11_07/ApiClient.js +5 -1
- package/src/reports_v2021_06_30/ApiClient.js +5 -1
- package/src/sales_v1/ApiClient.js +5 -1
- package/src/sales_v1/api/SalesApi.js +4 -1
- package/src/sellerWallet_2024_03_01/ApiClient.js +827 -0
- package/src/sellerWallet_2024_03_01/api/AccountsApi.js +212 -0
- package/src/sellerWallet_2024_03_01/api/TransactionsApi.js +233 -0
- package/src/sellerWallet_2024_03_01/api/TransferPreviewApi.js +144 -0
- package/src/sellerWallet_2024_03_01/api/TransferScheduleApi.js +347 -0
- package/src/sellerWallet_2024_03_01/index.js +322 -0
- package/src/sellerWallet_2024_03_01/model/AccountHolderAddress.js +114 -0
- package/src/sellerWallet_2024_03_01/model/Balance.js +98 -0
- package/src/sellerWallet_2024_03_01/model/BalanceListing.js +63 -0
- package/src/sellerWallet_2024_03_01/model/BalanceType.js +54 -0
- package/src/sellerWallet_2024_03_01/model/BankAccount.js +148 -0
- package/src/sellerWallet_2024_03_01/model/BankAccountHolderStatus.js +54 -0
- package/src/sellerWallet_2024_03_01/model/BankAccountListing.js +65 -0
- package/src/sellerWallet_2024_03_01/model/BankAccountNumberFormat.js +42 -0
- package/src/sellerWallet_2024_03_01/model/BankAccountOwnershipType.js +48 -0
- package/src/sellerWallet_2024_03_01/model/BankNumberFormat.js +42 -0
- package/src/sellerWallet_2024_03_01/model/Currency.js +69 -0
- package/src/sellerWallet_2024_03_01/model/DeleteTransferSchedule.js +80 -0
- package/src/sellerWallet_2024_03_01/model/Error.js +80 -0
- package/src/sellerWallet_2024_03_01/model/ErrorList.js +65 -0
- package/src/sellerWallet_2024_03_01/model/Fee.js +91 -0
- package/src/sellerWallet_2024_03_01/model/FeeType.js +48 -0
- package/src/sellerWallet_2024_03_01/model/FxRateDetails.js +91 -0
- package/src/sellerWallet_2024_03_01/model/PaymentPreference.js +73 -0
- package/src/sellerWallet_2024_03_01/model/PaymentPreferencePaymentType.js +42 -0
- package/src/sellerWallet_2024_03_01/model/RateDirection.js +42 -0
- package/src/sellerWallet_2024_03_01/model/RecurringFrequency.js +54 -0
- package/src/sellerWallet_2024_03_01/model/ScheduleExpression.js +71 -0
- package/src/sellerWallet_2024_03_01/model/ScheduleExpressionType.js +42 -0
- package/src/sellerWallet_2024_03_01/model/ScheduleTransferType.js +36 -0
- package/src/sellerWallet_2024_03_01/model/Transaction.js +187 -0
- package/src/sellerWallet_2024_03_01/model/TransactionAccount.js +112 -0
- package/src/sellerWallet_2024_03_01/model/TransactionInitiationRequest.js +121 -0
- package/src/sellerWallet_2024_03_01/model/TransactionInstrumentDetails.js +73 -0
- package/src/sellerWallet_2024_03_01/model/TransactionListing.js +72 -0
- package/src/sellerWallet_2024_03_01/model/TransactionStatus.js +66 -0
- package/src/sellerWallet_2024_03_01/model/TransactionType.js +42 -0
- package/src/sellerWallet_2024_03_01/model/TransferRatePreview.js +91 -0
- package/src/sellerWallet_2024_03_01/model/TransferSchedule.js +123 -0
- package/src/sellerWallet_2024_03_01/model/TransferScheduleFailures.js +73 -0
- package/src/sellerWallet_2024_03_01/model/TransferScheduleInformation.js +83 -0
- package/src/sellerWallet_2024_03_01/model/TransferScheduleListing.js +72 -0
- package/src/sellerWallet_2024_03_01/model/TransferScheduleRequest.js +125 -0
- package/src/sellerWallet_2024_03_01/model/TransferScheduleStatus.js +54 -0
- package/src/sellers_v1/ApiClient.js +5 -1
- package/src/services_v1/ApiClient.js +5 -1
- package/src/shipping_v2/ApiClient.js +5 -1
- package/src/solicitations_v1/ApiClient.js +5 -1
- package/src/supplysources_v2020_07_01/ApiClient.js +5 -1
- package/src/tokens_v2021_03_01/ApiClient.js +5 -1
- package/src/transfers_v2024_06_01/ApiClient.js +5 -1
- package/src/uploads_v2020_11_01/ApiClient.js +5 -1
- package/src/vehicles_v2024_11_01/ApiClient.js +5 -1
- package/src/vendordfinventory_v1/ApiClient.js +5 -1
- package/src/vendordforders_v2021_12_28/ApiClient.js +5 -1
- package/src/vendordfpayments_v1/ApiClient.js +5 -1
- package/src/vendordfshipping_v2021_12_28/ApiClient.js +5 -1
- package/src/vendordftransactions_v2021_12_28/ApiClient.js +5 -1
- package/src/vendorinvoices_v1/ApiClient.js +5 -1
- package/src/vendororders_v1/ApiClient.js +5 -1
- package/src/vendorshipments_v1/ApiClient.js +5 -1
- package/src/vendorshipments_v1/api/VendorShippingApi.js +2 -2
- package/src/vendorshipments_v1/model/Shipment.js +3 -3
- package/src/vendortransactionstatus_v1/ApiClient.js +5 -1
- package/src/orders_v0/model/ExportInfo.js +0 -69
|
@@ -29,7 +29,7 @@ export class CompetitiveSummaryResponseBody {
|
|
|
29
29
|
* @alias module:pricing_v2022_05_01/model/CompetitiveSummaryResponseBody
|
|
30
30
|
* @class
|
|
31
31
|
* @param asin {String} The ASIN of the item.
|
|
32
|
-
* @param marketplaceId {String}
|
|
32
|
+
* @param marketplaceId {String} The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
33
33
|
*/
|
|
34
34
|
constructor (asin, marketplaceId) {
|
|
35
35
|
this.asin = asin
|
|
@@ -75,7 +75,7 @@ export class CompetitiveSummaryResponseBody {
|
|
|
75
75
|
CompetitiveSummaryResponseBody.prototype.asin = undefined
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
79
79
|
* @member {String} marketplaceId
|
|
80
80
|
*/
|
|
81
81
|
CompetitiveSummaryResponseBody.prototype.marketplaceId = undefined
|
|
@@ -32,7 +32,7 @@ export class FeaturedOfferExpectedPriceRequest {
|
|
|
32
32
|
* @implements module:pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams
|
|
33
33
|
* @param uri {String} The URI associated with an individual request within a batch. For `FeaturedOfferExpectedPrice`, this is `/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice`.
|
|
34
34
|
* @param method {module:pricing_v2022_05_01/model/HttpMethod}
|
|
35
|
-
* @param marketplaceId {String}
|
|
35
|
+
* @param marketplaceId {String} The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
36
36
|
* @param sku {String} The seller SKU of the item.
|
|
37
37
|
*/
|
|
38
38
|
constructor (uri, method, marketplaceId, sku) {
|
|
@@ -103,7 +103,7 @@ FeaturedOfferExpectedPriceRequest.prototype.body = undefined
|
|
|
103
103
|
FeaturedOfferExpectedPriceRequest.prototype.headers = undefined
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
107
107
|
* @member {String} marketplaceId
|
|
108
108
|
*/
|
|
109
109
|
FeaturedOfferExpectedPriceRequest.prototype.marketplaceId = undefined
|
|
@@ -145,7 +145,7 @@ BatchRequest.prototype.headers = undefined
|
|
|
145
145
|
|
|
146
146
|
// Implement FeaturedOfferExpectedPriceRequestParams interface:
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
149
149
|
* @member {String} marketplaceId
|
|
150
150
|
*/
|
|
151
151
|
FeaturedOfferExpectedPriceRequestParams.prototype.marketplaceId = undefined
|
|
@@ -25,7 +25,7 @@ export class FeaturedOfferExpectedPriceRequestParams {
|
|
|
25
25
|
* The parameters for an individual request.
|
|
26
26
|
* @alias module:pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams
|
|
27
27
|
* @class
|
|
28
|
-
* @param marketplaceId {String}
|
|
28
|
+
* @param marketplaceId {String} The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
29
29
|
* @param sku {String} The seller SKU of the item.
|
|
30
30
|
*/
|
|
31
31
|
constructor (marketplaceId, sku) {
|
|
@@ -63,7 +63,7 @@ export class FeaturedOfferExpectedPriceRequestParams {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
67
67
|
* @member {String} marketplaceId
|
|
68
68
|
*/
|
|
69
69
|
FeaturedOfferExpectedPriceRequestParams.prototype.marketplaceId = undefined
|
|
@@ -25,7 +25,7 @@ export class OfferIdentifier {
|
|
|
25
25
|
* Identifies an offer from a particular seller for a specified ASIN.
|
|
26
26
|
* @alias module:pricing_v2022_05_01/model/OfferIdentifier
|
|
27
27
|
* @class
|
|
28
|
-
* @param marketplaceId {String}
|
|
28
|
+
* @param marketplaceId {String} The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
29
29
|
* @param asin {String} The ASIN of the item.
|
|
30
30
|
*/
|
|
31
31
|
constructor (marketplaceId, asin) {
|
|
@@ -65,7 +65,7 @@ export class OfferIdentifier {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
69
69
|
* @member {String} marketplaceId
|
|
70
70
|
*/
|
|
71
71
|
OfferIdentifier.prototype.marketplaceId = undefined
|
|
@@ -25,7 +25,7 @@ export class ReferencePrice {
|
|
|
25
25
|
* The reference price for the specified ASIN `marketplaceId` combination.
|
|
26
26
|
* @alias module:pricing_v2022_05_01/model/ReferencePrice
|
|
27
27
|
* @class
|
|
28
|
-
* @param name {String}
|
|
28
|
+
* @param name {String} Reference price type (e.g., `CompetitivePriceThreshold`, `WasPrice`, `CompetitivePrice`). For definitions, see the [Product Pricing API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
|
|
29
29
|
* @param price {module:pricing_v2022_05_01/model/MoneyType}
|
|
30
30
|
*/
|
|
31
31
|
constructor (name, price) {
|
|
@@ -62,7 +62,7 @@ export class ReferencePrice {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Reference price type (e.g., `CompetitivePriceThreshold`, `WasPrice`, `CompetitivePrice`). For definitions, see the [Product Pricing API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
|
|
66
66
|
* @member {String} name
|
|
67
67
|
*/
|
|
68
68
|
ReferencePrice.prototype.name = undefined
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import superagent from 'superagent'
|
|
15
15
|
import querystring from 'querystring'
|
|
16
|
+
import { readFileSync } from 'node:fs'
|
|
16
17
|
import { URL } from 'node:url'
|
|
17
18
|
import { RateLimitConfiguration } from '../../helper/RateLimitConfiguration.mjs'
|
|
18
19
|
import { SuperagentRateLimiter } from '../../helper/SuperagentRateLimiter.mjs'
|
|
@@ -214,13 +215,16 @@ export class ApiClient {
|
|
|
214
215
|
this.authentications = {
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
const pkg = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url)))
|
|
219
|
+
const version = pkg.version ? pkg.version : 'undefined'
|
|
220
|
+
|
|
217
221
|
/**
|
|
218
222
|
* The default HTTP headers to be included for all API calls.
|
|
219
223
|
* @type {Array<String>}
|
|
220
224
|
* @default {}
|
|
221
225
|
*/
|
|
222
226
|
this.defaultHeaders = {
|
|
223
|
-
'User-Agent':
|
|
227
|
+
'User-Agent': `amazon-selling-partner-api-sdk/${version}/JavaScript`
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
/**
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import superagent from 'superagent'
|
|
15
15
|
import querystring from 'querystring'
|
|
16
|
+
import { readFileSync } from 'node:fs'
|
|
16
17
|
import { URL } from 'node:url'
|
|
17
18
|
import { RateLimitConfiguration } from '../../helper/RateLimitConfiguration.mjs'
|
|
18
19
|
import { SuperagentRateLimiter } from '../../helper/SuperagentRateLimiter.mjs'
|
|
@@ -214,13 +215,16 @@ export class ApiClient {
|
|
|
214
215
|
this.authentications = {
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
const pkg = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url)))
|
|
219
|
+
const version = pkg.version ? pkg.version : 'undefined'
|
|
220
|
+
|
|
217
221
|
/**
|
|
218
222
|
* The default HTTP headers to be included for all API calls.
|
|
219
223
|
* @type {Array<String>}
|
|
220
224
|
* @default {}
|
|
221
225
|
*/
|
|
222
226
|
this.defaultHeaders = {
|
|
223
|
-
'User-Agent':
|
|
227
|
+
'User-Agent': `amazon-selling-partner-api-sdk/${version}/JavaScript`
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
/**
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import superagent from 'superagent'
|
|
15
15
|
import querystring from 'querystring'
|
|
16
|
+
import { readFileSync } from 'node:fs'
|
|
16
17
|
import { URL } from 'node:url'
|
|
17
18
|
import { RateLimitConfiguration } from '../../helper/RateLimitConfiguration.mjs'
|
|
18
19
|
import { SuperagentRateLimiter } from '../../helper/SuperagentRateLimiter.mjs'
|
|
@@ -214,13 +215,16 @@ export class ApiClient {
|
|
|
214
215
|
this.authentications = {
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
const pkg = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url)))
|
|
219
|
+
const version = pkg.version ? pkg.version : 'undefined'
|
|
220
|
+
|
|
217
221
|
/**
|
|
218
222
|
* The default HTTP headers to be included for all API calls.
|
|
219
223
|
* @type {Array<String>}
|
|
220
224
|
* @default {}
|
|
221
225
|
*/
|
|
222
226
|
this.defaultHeaders = {
|
|
223
|
-
'User-Agent':
|
|
227
|
+
'User-Agent': `amazon-selling-partner-api-sdk/${version}/JavaScript`
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
/**
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import superagent from 'superagent'
|
|
15
15
|
import querystring from 'querystring'
|
|
16
|
+
import { readFileSync } from 'node:fs'
|
|
16
17
|
import { URL } from 'node:url'
|
|
17
18
|
import { RateLimitConfiguration } from '../../helper/RateLimitConfiguration.mjs'
|
|
18
19
|
import { SuperagentRateLimiter } from '../../helper/SuperagentRateLimiter.mjs'
|
|
@@ -214,13 +215,16 @@ export class ApiClient {
|
|
|
214
215
|
this.authentications = {
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
const pkg = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url)))
|
|
219
|
+
const version = pkg.version ? pkg.version : 'undefined'
|
|
220
|
+
|
|
217
221
|
/**
|
|
218
222
|
* The default HTTP headers to be included for all API calls.
|
|
219
223
|
* @type {Array<String>}
|
|
220
224
|
* @default {}
|
|
221
225
|
*/
|
|
222
226
|
this.defaultHeaders = {
|
|
223
|
-
'User-Agent':
|
|
227
|
+
'User-Agent': `amazon-selling-partner-api-sdk/${version}/JavaScript`
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
/**
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import superagent from 'superagent'
|
|
15
15
|
import querystring from 'querystring'
|
|
16
|
+
import { readFileSync } from 'node:fs'
|
|
16
17
|
import { URL } from 'node:url'
|
|
17
18
|
import { RateLimitConfiguration } from '../../helper/RateLimitConfiguration.mjs'
|
|
18
19
|
import { SuperagentRateLimiter } from '../../helper/SuperagentRateLimiter.mjs'
|
|
@@ -214,13 +215,16 @@ export class ApiClient {
|
|
|
214
215
|
this.authentications = {
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
const pkg = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url)))
|
|
219
|
+
const version = pkg.version ? pkg.version : 'undefined'
|
|
220
|
+
|
|
217
221
|
/**
|
|
218
222
|
* The default HTTP headers to be included for all API calls.
|
|
219
223
|
* @type {Array<String>}
|
|
220
224
|
* @default {}
|
|
221
225
|
*/
|
|
222
226
|
this.defaultHeaders = {
|
|
223
|
-
'User-Agent':
|
|
227
|
+
'User-Agent': `amazon-selling-partner-api-sdk/${version}/JavaScript`
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
/**
|
|
@@ -73,6 +73,7 @@ export class SalesApi {
|
|
|
73
73
|
* @param {module:sales_v1/model/String} opts.firstDayOfWeek Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (default to 'Monday')
|
|
74
74
|
* @param {String} opts.asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN.
|
|
75
75
|
* @param {String} opts.sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU.
|
|
76
|
+
* @param {module:sales_v1/model/String} opts.amazonProgram Filters the results by the Amazon program that you specify. Do not include this filter if you want the response to include order metrics for all programs. **Example:** `AmazonHaul` returns order metrics for the Amazon Haul program only.
|
|
76
77
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:sales_v1/model/GetOrderMetricsResponse} and HTTP response
|
|
77
78
|
*/
|
|
78
79
|
getOrderMetricsWithHttpInfo (marketplaceIds, interval, granularity, opts) {
|
|
@@ -105,7 +106,8 @@ export class SalesApi {
|
|
|
105
106
|
fulfillmentNetwork: opts.fulfillmentNetwork,
|
|
106
107
|
firstDayOfWeek: opts.firstDayOfWeek,
|
|
107
108
|
asin: opts.asin,
|
|
108
|
-
sku: opts.sku
|
|
109
|
+
sku: opts.sku,
|
|
110
|
+
amazonProgram: opts.amazonProgram
|
|
109
111
|
}
|
|
110
112
|
const headerParams = {
|
|
111
113
|
}
|
|
@@ -135,6 +137,7 @@ export class SalesApi {
|
|
|
135
137
|
* @param {module:sales_v1/model/String} opts.firstDayOfWeek Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (default to 'Monday')
|
|
136
138
|
* @param {String} opts.asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN.
|
|
137
139
|
* @param {String} opts.sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU.
|
|
140
|
+
* @param {module:sales_v1/model/String} opts.amazonProgram Filters the results by the Amazon program that you specify. Do not include this filter if you want the response to include order metrics for all programs. **Example:** `AmazonHaul` returns order metrics for the Amazon Haul program only.
|
|
138
141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:sales_v1/model/GetOrderMetricsResponse}
|
|
139
142
|
*/
|
|
140
143
|
getOrderMetrics (marketplaceIds, interval, granularity, opts) {
|