@amazon-sp-api-release/amazon-sp-api-sdk-js 1.1.0 → 1.3.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 +14 -1
- package/index.js +2 -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_2024_06_19/ApiClient.js +827 -0
- package/src/finances_2024_06_19/api/DefaultApi.js +125 -0
- package/src/finances_2024_06_19/index.js +168 -0
- package/src/finances_2024_06_19/model/AmazonPayContext.js +76 -0
- package/src/finances_2024_06_19/model/Breakdown.js +76 -0
- package/src/finances_2024_06_19/model/BusinessContext.js +76 -0
- package/src/finances_2024_06_19/model/Context.js +308 -0
- package/src/finances_2024_06_19/model/Currency.js +69 -0
- package/src/finances_2024_06_19/model/DeferredContext.js +69 -0
- package/src/finances_2024_06_19/model/Error.js +80 -0
- package/src/finances_2024_06_19/model/ErrorList.js +65 -0
- package/src/finances_2024_06_19/model/Item.js +93 -0
- package/src/finances_2024_06_19/model/ItemRelatedIdentifier.js +101 -0
- package/src/finances_2024_06_19/model/ListTransactionsResponse.js +62 -0
- package/src/finances_2024_06_19/model/MarketplaceDetails.js +69 -0
- package/src/finances_2024_06_19/model/PaymentsContext.js +83 -0
- package/src/finances_2024_06_19/model/ProductContext.js +83 -0
- package/src/finances_2024_06_19/model/RelatedIdentifier.js +137 -0
- package/src/finances_2024_06_19/model/SellingPartnerMetadata.js +76 -0
- package/src/finances_2024_06_19/model/TimeRangeContext.js +69 -0
- package/src/finances_2024_06_19/model/Transaction.js +143 -0
- package/src/finances_2024_06_19/model/TransactionsPayload.js +70 -0
- 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
|
@@ -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
|
/**
|
|
@@ -188,7 +188,7 @@ export class VendorShippingApi {
|
|
|
188
188
|
* @param {Object} opts Optional parameters
|
|
189
189
|
* @param {Number} opts.limit The limit to the number of records returned. Default value is 50 records.
|
|
190
190
|
* @param {module:vendorshipments_v1/model/String} opts.sortOrder Sort the list by shipment label creation date in ascending or descending order.
|
|
191
|
-
* @param {String} opts.nextToken A token that
|
|
191
|
+
* @param {String} opts.nextToken A token that you use to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
192
192
|
* @param {Date} opts.labelCreatedAfter Shipment labels created after this time will be included in the result. This field must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format.
|
|
193
193
|
* @param {Date} opts.labelCreatedBefore Shipment labels created before this time will be included in the result. This field must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format.
|
|
194
194
|
* @param {String} opts.buyerReferenceNumber Get Shipment labels by passing buyer reference number.
|
|
@@ -233,7 +233,7 @@ export class VendorShippingApi {
|
|
|
233
233
|
* @param {Object} opts Optional parameters
|
|
234
234
|
* @param {Number} opts.limit The limit to the number of records returned. Default value is 50 records.
|
|
235
235
|
* @param {module:vendorshipments_v1/model/String} opts.sortOrder Sort the list by shipment label creation date in ascending or descending order.
|
|
236
|
-
* @param {String} opts.nextToken A token that
|
|
236
|
+
* @param {String} opts.nextToken A token that you use to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
237
237
|
* @param {Date} opts.labelCreatedAfter Shipment labels created after this time will be included in the result. This field must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format.
|
|
238
238
|
* @param {Date} opts.labelCreatedBefore Shipment labels created before this time will be included in the result. This field must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format.
|
|
239
239
|
* @param {String} opts.buyerReferenceNumber Get Shipment labels by passing buyer reference number.
|
|
@@ -33,7 +33,7 @@ export class Shipment {
|
|
|
33
33
|
* @alias module:vendorshipments_v1/model/Shipment
|
|
34
34
|
* @class
|
|
35
35
|
* @param vendorShipmentIdentifier {String} Unique Transportation ID created by Vendor (Should not be used over the last 365 days).
|
|
36
|
-
* @param transactionType {module:vendorshipments_v1/model/Shipment.TransactionTypeEnum} Indicates the type of
|
|
36
|
+
* @param transactionType {module:vendorshipments_v1/model/Shipment.TransactionTypeEnum} Indicates the type of transportation request (for example, `New` or `Cancel`). Each `transactionType` has a unique set of operations and there are corresponding details to be populated for each operation.
|
|
37
37
|
* @param transactionDate {Date} Date on which the transportation request was submitted.
|
|
38
38
|
* @param sellingParty {module:vendorshipments_v1/model/PartyIdentification}
|
|
39
39
|
* @param shipFromParty {module:vendorshipments_v1/model/PartyIdentification}
|
|
@@ -121,7 +121,7 @@ Shipment.TransactionTypeEnum = {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* Indicates the type of
|
|
124
|
+
* Indicates the type of transportation request (for example, `New` or `Cancel`). Each `transactionType` has a unique set of operations and there are corresponding details to be populated for each operation.
|
|
125
125
|
* @member {module:vendorshipments_v1/model/Shipment.TransactionTypeEnum} transactionType
|
|
126
126
|
*/
|
|
127
127
|
Shipment.prototype.transactionType = undefined
|
|
@@ -227,7 +227,7 @@ Shipment.ShipmentFreightTermEnum = {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
230
|
+
* Specifies if payment is Collect (WePay) or Prepaid (TheyPay). Required.
|
|
231
231
|
* @member {module:vendorshipments_v1/model/Shipment.ShipmentFreightTermEnum} shipmentFreightTerm
|
|
232
232
|
*/
|
|
233
233
|
Shipment.prototype.shipmentFreightTerm = 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
|
/**
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Selling Partner API for Orders
|
|
3
|
-
* Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { ApiClient } from '../ApiClient.js'
|
|
15
|
-
import { Money } from './Money.js'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The ExportInfo model module.
|
|
19
|
-
* @module orders_v0/model/ExportInfo
|
|
20
|
-
* @version v0
|
|
21
|
-
*/
|
|
22
|
-
export class ExportInfo {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>ExportInfo</code>.
|
|
25
|
-
* Contains information that is related to the export of an order item.
|
|
26
|
-
* @alias module:orders_v0/model/ExportInfo
|
|
27
|
-
* @class
|
|
28
|
-
*/
|
|
29
|
-
constructor () {
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Constructs a <code>ExportInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
-
* @param {module:orders_v0/model/ExportInfo} obj Optional instance to populate.
|
|
37
|
-
* @return {module:orders_v0/model/ExportInfo} The populated <code>ExportInfo</code> instance.
|
|
38
|
-
*/
|
|
39
|
-
static constructFromObject (data, obj) {
|
|
40
|
-
if (data) {
|
|
41
|
-
switch (typeof data) {
|
|
42
|
-
case 'string':
|
|
43
|
-
obj = String(data)
|
|
44
|
-
break
|
|
45
|
-
case 'number':
|
|
46
|
-
obj = Number(data)
|
|
47
|
-
break
|
|
48
|
-
case 'boolean':
|
|
49
|
-
obj = Boolean(data)
|
|
50
|
-
break
|
|
51
|
-
}
|
|
52
|
-
obj = obj || new ExportInfo()
|
|
53
|
-
if (data.hasOwnProperty('ExportCharge')) { obj.exportCharge = Money.constructFromObject(data.ExportCharge) }
|
|
54
|
-
if (data.hasOwnProperty('ExportChargeModel')) { obj.exportChargeModel = ApiClient.convertToType(data.ExportChargeModel, 'String') }
|
|
55
|
-
}
|
|
56
|
-
return obj
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @member {module:orders_v0/model/Money} exportCharge
|
|
62
|
-
*/
|
|
63
|
-
ExportInfo.prototype.exportCharge = undefined
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Holds the `ExportCharge` collection model that is associated with the specified order item.\\n\\n**Possible values**: `AMAZON_FACILITATED`: Import/export charge is withheld by Amazon and remitted to the customs authority by the carrier on behalf of the buyer/seller.
|
|
67
|
-
* @member {String} exportChargeModel
|
|
68
|
-
*/
|
|
69
|
-
ExportInfo.prototype.exportChargeModel = undefined
|