@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.
Files changed (122) hide show
  1. package/README.md +2 -3
  2. package/helper/DefaultRateLimitMap.mjs +13 -1
  3. package/index.js +1 -0
  4. package/package.json +1 -1
  5. package/src/apluscontent_v2020_11_01/ApiClient.js +5 -1
  6. package/src/appintegrations_v2024_04_01/ApiClient.js +5 -1
  7. package/src/applications_v2023_11_30/ApiClient.js +5 -1
  8. package/src/awd_v2024_05_09/ApiClient.js +5 -1
  9. package/src/catalogitems_v2022_04_01/ApiClient.js +5 -1
  10. package/src/datakiosk_v2023_11_15/ApiClient.js +5 -1
  11. package/src/easyship_v2022_03_23/ApiClient.js +5 -1
  12. package/src/fbaeligibility_v1/ApiClient.js +5 -1
  13. package/src/fbainventory_v1/ApiClient.js +5 -1
  14. package/src/feeds_v2021_06_30/ApiClient.js +5 -1
  15. package/src/finances_v0/ApiClient.js +5 -1
  16. package/src/fulfillmentinbound_v0/ApiClient.js +5 -1
  17. package/src/fulfillmentinbound_v2024_03_20/ApiClient.js +5 -1
  18. package/src/fulfillmentoutbound_v2020_07_01/ApiClient.js +5 -1
  19. package/src/invoices_v2024_06_19/ApiClient.js +5 -1
  20. package/src/invoicing_v0/ApiClient.js +5 -1
  21. package/src/listingsitems_v2021_08_01/ApiClient.js +5 -1
  22. package/src/listingsitems_v2021_08_01/api/ListingsApi.js +6 -6
  23. package/src/listingsitems_v2021_08_01/model/FulfillmentAvailability.js +2 -2
  24. package/src/listingsitems_v2021_08_01/model/Issue.js +2 -2
  25. package/src/listingsitems_v2021_08_01/model/IssueExemption.js +1 -1
  26. package/src/listingsitems_v2021_08_01/model/ItemRelationship.js +1 -1
  27. package/src/listingsitems_v2021_08_01/model/ItemSearchResults.js +2 -2
  28. package/src/listingsitems_v2021_08_01/model/Pagination.js +1 -1
  29. package/src/listingsitems_v2021_08_01/model/PatchOperation.js +9 -3
  30. package/src/listingsrestrictions_v2021_08_01/ApiClient.js +5 -1
  31. package/src/merchantfulfillment_v0/ApiClient.js +5 -1
  32. package/src/messaging_v1/ApiClient.js +5 -1
  33. package/src/notifications_v1/ApiClient.js +5 -1
  34. package/src/orders_v0/ApiClient.js +5 -1
  35. package/src/orders_v0/api/OrdersV0Api.js +26 -26
  36. package/src/orders_v0/api/ShipmentApi.js +2 -2
  37. package/src/orders_v0/index.js +0 -7
  38. package/src/orders_v0/model/AmazonPrograms.js +3 -3
  39. package/src/orders_v0/model/OrderItem.js +0 -7
  40. package/src/orders_v0/model/OrdersList.js +1 -1
  41. package/src/orders_v0/model/PackageDetail.js +1 -1
  42. package/src/pricing_v0/ApiClient.js +5 -1
  43. package/src/pricing_v2022_05_01/ApiClient.js +5 -1
  44. package/src/pricing_v2022_05_01/model/CompetitiveSummaryRequest.js +2 -2
  45. package/src/pricing_v2022_05_01/model/CompetitiveSummaryResponseBody.js +2 -2
  46. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequest.js +3 -3
  47. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams.js +2 -2
  48. package/src/pricing_v2022_05_01/model/FeaturedOfferSegment.js +7 -1
  49. package/src/pricing_v2022_05_01/model/LowestPricedOffersInput.js +2 -2
  50. package/src/pricing_v2022_05_01/model/OfferIdentifier.js +2 -2
  51. package/src/pricing_v2022_05_01/model/ReferencePrice.js +2 -2
  52. package/src/productfees_v0/ApiClient.js +5 -1
  53. package/src/producttypedefinitions_v2020_09_01/ApiClient.js +5 -1
  54. package/src/replenishment_v2022_11_07/ApiClient.js +5 -1
  55. package/src/reports_v2021_06_30/ApiClient.js +5 -1
  56. package/src/sales_v1/ApiClient.js +5 -1
  57. package/src/sales_v1/api/SalesApi.js +4 -1
  58. package/src/sellerWallet_2024_03_01/ApiClient.js +827 -0
  59. package/src/sellerWallet_2024_03_01/api/AccountsApi.js +212 -0
  60. package/src/sellerWallet_2024_03_01/api/TransactionsApi.js +233 -0
  61. package/src/sellerWallet_2024_03_01/api/TransferPreviewApi.js +144 -0
  62. package/src/sellerWallet_2024_03_01/api/TransferScheduleApi.js +347 -0
  63. package/src/sellerWallet_2024_03_01/index.js +322 -0
  64. package/src/sellerWallet_2024_03_01/model/AccountHolderAddress.js +114 -0
  65. package/src/sellerWallet_2024_03_01/model/Balance.js +98 -0
  66. package/src/sellerWallet_2024_03_01/model/BalanceListing.js +63 -0
  67. package/src/sellerWallet_2024_03_01/model/BalanceType.js +54 -0
  68. package/src/sellerWallet_2024_03_01/model/BankAccount.js +148 -0
  69. package/src/sellerWallet_2024_03_01/model/BankAccountHolderStatus.js +54 -0
  70. package/src/sellerWallet_2024_03_01/model/BankAccountListing.js +65 -0
  71. package/src/sellerWallet_2024_03_01/model/BankAccountNumberFormat.js +42 -0
  72. package/src/sellerWallet_2024_03_01/model/BankAccountOwnershipType.js +48 -0
  73. package/src/sellerWallet_2024_03_01/model/BankNumberFormat.js +42 -0
  74. package/src/sellerWallet_2024_03_01/model/Currency.js +69 -0
  75. package/src/sellerWallet_2024_03_01/model/DeleteTransferSchedule.js +80 -0
  76. package/src/sellerWallet_2024_03_01/model/Error.js +80 -0
  77. package/src/sellerWallet_2024_03_01/model/ErrorList.js +65 -0
  78. package/src/sellerWallet_2024_03_01/model/Fee.js +91 -0
  79. package/src/sellerWallet_2024_03_01/model/FeeType.js +48 -0
  80. package/src/sellerWallet_2024_03_01/model/FxRateDetails.js +91 -0
  81. package/src/sellerWallet_2024_03_01/model/PaymentPreference.js +73 -0
  82. package/src/sellerWallet_2024_03_01/model/PaymentPreferencePaymentType.js +42 -0
  83. package/src/sellerWallet_2024_03_01/model/RateDirection.js +42 -0
  84. package/src/sellerWallet_2024_03_01/model/RecurringFrequency.js +54 -0
  85. package/src/sellerWallet_2024_03_01/model/ScheduleExpression.js +71 -0
  86. package/src/sellerWallet_2024_03_01/model/ScheduleExpressionType.js +42 -0
  87. package/src/sellerWallet_2024_03_01/model/ScheduleTransferType.js +36 -0
  88. package/src/sellerWallet_2024_03_01/model/Transaction.js +187 -0
  89. package/src/sellerWallet_2024_03_01/model/TransactionAccount.js +112 -0
  90. package/src/sellerWallet_2024_03_01/model/TransactionInitiationRequest.js +121 -0
  91. package/src/sellerWallet_2024_03_01/model/TransactionInstrumentDetails.js +73 -0
  92. package/src/sellerWallet_2024_03_01/model/TransactionListing.js +72 -0
  93. package/src/sellerWallet_2024_03_01/model/TransactionStatus.js +66 -0
  94. package/src/sellerWallet_2024_03_01/model/TransactionType.js +42 -0
  95. package/src/sellerWallet_2024_03_01/model/TransferRatePreview.js +91 -0
  96. package/src/sellerWallet_2024_03_01/model/TransferSchedule.js +123 -0
  97. package/src/sellerWallet_2024_03_01/model/TransferScheduleFailures.js +73 -0
  98. package/src/sellerWallet_2024_03_01/model/TransferScheduleInformation.js +83 -0
  99. package/src/sellerWallet_2024_03_01/model/TransferScheduleListing.js +72 -0
  100. package/src/sellerWallet_2024_03_01/model/TransferScheduleRequest.js +125 -0
  101. package/src/sellerWallet_2024_03_01/model/TransferScheduleStatus.js +54 -0
  102. package/src/sellers_v1/ApiClient.js +5 -1
  103. package/src/services_v1/ApiClient.js +5 -1
  104. package/src/shipping_v2/ApiClient.js +5 -1
  105. package/src/solicitations_v1/ApiClient.js +5 -1
  106. package/src/supplysources_v2020_07_01/ApiClient.js +5 -1
  107. package/src/tokens_v2021_03_01/ApiClient.js +5 -1
  108. package/src/transfers_v2024_06_01/ApiClient.js +5 -1
  109. package/src/uploads_v2020_11_01/ApiClient.js +5 -1
  110. package/src/vehicles_v2024_11_01/ApiClient.js +5 -1
  111. package/src/vendordfinventory_v1/ApiClient.js +5 -1
  112. package/src/vendordforders_v2021_12_28/ApiClient.js +5 -1
  113. package/src/vendordfpayments_v1/ApiClient.js +5 -1
  114. package/src/vendordfshipping_v2021_12_28/ApiClient.js +5 -1
  115. package/src/vendordftransactions_v2021_12_28/ApiClient.js +5 -1
  116. package/src/vendorinvoices_v1/ApiClient.js +5 -1
  117. package/src/vendororders_v1/ApiClient.js +5 -1
  118. package/src/vendorshipments_v1/ApiClient.js +5 -1
  119. package/src/vendorshipments_v1/api/VendorShippingApi.js +2 -2
  120. package/src/vendorshipments_v1/model/Shipment.js +3 -3
  121. package/src/vendortransactionstatus_v1/ApiClient.js +5 -1
  122. 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} A marketplace identifier. Specifies the marketplace for which data is returned.
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
- * A marketplace identifier. Specifies the marketplace for which data is returned.
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} A marketplace identifier. Specifies the marketplace for which data is returned.
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
- * A marketplace identifier. Specifies the marketplace for which data is returned.
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
- * A marketplace identifier. Specifies the marketplace for which data is returned.
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} A marketplace identifier. Specifies the marketplace for which data is returned.
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
- * A marketplace identifier. Specifies the marketplace for which data is returned.
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
@@ -78,7 +78,13 @@ FeaturedOfferSegment.CustomerMembershipEnum = {
78
78
  * value: "NON_PRIME"
79
79
  * @const
80
80
  */
81
- NON_PRIME: 'NON_PRIME'
81
+ NON_PRIME: 'NON_PRIME',
82
+
83
+ /**
84
+ * value: "DEFAULT"
85
+ * @const
86
+ */
87
+ DEFAULT: 'DEFAULT'
82
88
  }
83
89
 
84
90
  /**
@@ -74,10 +74,10 @@ LowestPricedOffersInput.prototype.itemCondition = undefined
74
74
  LowestPricedOffersInput.OfferTypeEnum = {
75
75
 
76
76
  /**
77
- * value: "CONSUMER"
77
+ * value: "Consumer"
78
78
  * @const
79
79
  */
80
- CONSUMER: 'CONSUMER'
80
+ Consumer: 'Consumer'
81
81
  }
82
82
 
83
83
  /**
@@ -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} A marketplace identifier. Specifies the marketplace for which data is returned.
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
- * A marketplace identifier. Specifies the marketplace for which data is returned.
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} The name of the reference price, such as `CompetitivePriceThreshold` and `WasPrice`. For reference price definitions, refer to the [Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
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
- * The name of the reference price, such as `CompetitivePriceThreshold` and `WasPrice`. For reference price definitions, refer to the [Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
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': 'amazon-selling-partner-api-sdk/1.0.0/JavaScript'
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': 'amazon-selling-partner-api-sdk/1.0.0/JavaScript'
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': 'amazon-selling-partner-api-sdk/1.0.0/JavaScript'
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': 'amazon-selling-partner-api-sdk/1.0.0/JavaScript'
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': 'amazon-selling-partner-api-sdk/1.0.0/JavaScript'
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&#x3D;Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (default to &#39;Monday&#39;)
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:** &#x60;AmazonHaul&#x60; 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&#x3D;Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (default to &#39;Monday&#39;)
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:** &#x60;AmazonHaul&#x60; 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) {