@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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon Seller Wallet Open Banking API
|
|
3
|
+
* The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller's Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-03-01
|
|
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 { ScheduleExpression } from './ScheduleExpression.js'
|
|
16
|
+
import { ScheduleTransferType } from './ScheduleTransferType.js'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The TransferScheduleInformation model module.
|
|
20
|
+
* @module sellerWallet_2024_03_01/model/TransferScheduleInformation
|
|
21
|
+
* @version 2024-03-01
|
|
22
|
+
*/
|
|
23
|
+
export class TransferScheduleInformation {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>TransferScheduleInformation</code>.
|
|
26
|
+
* Mandatory information for initiating a schedule transfer.
|
|
27
|
+
* @alias module:sellerWallet_2024_03_01/model/TransferScheduleInformation
|
|
28
|
+
* @class
|
|
29
|
+
*/
|
|
30
|
+
constructor () {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a <code>TransferScheduleInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
35
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
36
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
37
|
+
* @param {module:sellerWallet_2024_03_01/model/TransferScheduleInformation} obj Optional instance to populate.
|
|
38
|
+
* @return {module:sellerWallet_2024_03_01/model/TransferScheduleInformation} The populated <code>TransferScheduleInformation</code> instance.
|
|
39
|
+
*/
|
|
40
|
+
static constructFromObject (data, obj) {
|
|
41
|
+
if (data) {
|
|
42
|
+
switch (typeof data) {
|
|
43
|
+
case 'string':
|
|
44
|
+
obj = String(data)
|
|
45
|
+
break
|
|
46
|
+
case 'number':
|
|
47
|
+
obj = Number(data)
|
|
48
|
+
break
|
|
49
|
+
case 'boolean':
|
|
50
|
+
obj = Boolean(data)
|
|
51
|
+
break
|
|
52
|
+
}
|
|
53
|
+
obj = obj || new TransferScheduleInformation()
|
|
54
|
+
if (data.hasOwnProperty('scheduleStartDate')) { obj.scheduleStartDate = ApiClient.convertToType(data.scheduleStartDate, 'Date') }
|
|
55
|
+
if (data.hasOwnProperty('scheduleEndDate')) { obj.scheduleEndDate = ApiClient.convertToType(data.scheduleEndDate, 'Date') }
|
|
56
|
+
if (data.hasOwnProperty('scheduleExpression')) { obj.scheduleExpression = ScheduleExpression.constructFromObject(data.scheduleExpression) }
|
|
57
|
+
if (data.hasOwnProperty('scheduleType')) { obj.scheduleType = ScheduleTransferType.constructFromObject(data.scheduleType) }
|
|
58
|
+
}
|
|
59
|
+
return obj
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The start date of the scheduled transfer.
|
|
65
|
+
* @member {Date} scheduleStartDate
|
|
66
|
+
*/
|
|
67
|
+
TransferScheduleInformation.prototype.scheduleStartDate = undefined
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The end date of the scheduled transfer.
|
|
71
|
+
* @member {Date} scheduleEndDate
|
|
72
|
+
*/
|
|
73
|
+
TransferScheduleInformation.prototype.scheduleEndDate = undefined
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @member {module:sellerWallet_2024_03_01/model/ScheduleExpression} scheduleExpression
|
|
77
|
+
*/
|
|
78
|
+
TransferScheduleInformation.prototype.scheduleExpression = undefined
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @member {module:sellerWallet_2024_03_01/model/ScheduleTransferType} scheduleType
|
|
82
|
+
*/
|
|
83
|
+
TransferScheduleInformation.prototype.scheduleType = undefined
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon Seller Wallet Open Banking API
|
|
3
|
+
* The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller's Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-03-01
|
|
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 { TransferSchedule } from './TransferSchedule.js'
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The TransferScheduleListing model module.
|
|
19
|
+
* @module sellerWallet_2024_03_01/model/TransferScheduleListing
|
|
20
|
+
* @version 2024-03-01
|
|
21
|
+
*/
|
|
22
|
+
export class TransferScheduleListing {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>TransferScheduleListing</code>.
|
|
25
|
+
* A list of transfer schedules.
|
|
26
|
+
* @alias module:sellerWallet_2024_03_01/model/TransferScheduleListing
|
|
27
|
+
* @class
|
|
28
|
+
* @param transferSchedules {Array.<module:sellerWallet_2024_03_01/model/TransferSchedule>} A list of transfer schedules.
|
|
29
|
+
*/
|
|
30
|
+
constructor (transferSchedules) {
|
|
31
|
+
this.transferSchedules = transferSchedules
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a <code>TransferScheduleListing</code> from a plain JavaScript object, optionally creating a new instance.
|
|
36
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
37
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
38
|
+
* @param {module:sellerWallet_2024_03_01/model/TransferScheduleListing} obj Optional instance to populate.
|
|
39
|
+
* @return {module:sellerWallet_2024_03_01/model/TransferScheduleListing} The populated <code>TransferScheduleListing</code> instance.
|
|
40
|
+
*/
|
|
41
|
+
static constructFromObject (data, obj) {
|
|
42
|
+
if (data) {
|
|
43
|
+
switch (typeof data) {
|
|
44
|
+
case 'string':
|
|
45
|
+
obj = String(data)
|
|
46
|
+
break
|
|
47
|
+
case 'number':
|
|
48
|
+
obj = Number(data)
|
|
49
|
+
break
|
|
50
|
+
case 'boolean':
|
|
51
|
+
obj = Boolean(data)
|
|
52
|
+
break
|
|
53
|
+
}
|
|
54
|
+
obj = obj || new TransferScheduleListing()
|
|
55
|
+
if (data.hasOwnProperty('nextPageToken')) { obj.nextPageToken = ApiClient.convertToType(data.nextPageToken, 'String') }
|
|
56
|
+
if (data.hasOwnProperty('transferSchedules')) { obj.transferSchedules = ApiClient.convertToType(data.transferSchedules, [TransferSchedule]) }
|
|
57
|
+
}
|
|
58
|
+
return obj
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* A token that you use to retrieve the next page of results. The response includes `nextPageToken` when the number of results exceeds 100. 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 `nextPageToken` is null. Note that this operation can return empty pages.
|
|
64
|
+
* @member {String} nextPageToken
|
|
65
|
+
*/
|
|
66
|
+
TransferScheduleListing.prototype.nextPageToken = undefined
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* A list of transfer schedules.
|
|
70
|
+
* @member {Array.<module:sellerWallet_2024_03_01/model/TransferSchedule>} transferSchedules
|
|
71
|
+
*/
|
|
72
|
+
TransferScheduleListing.prototype.transferSchedules = undefined
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon Seller Wallet Open Banking API
|
|
3
|
+
* The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller's Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-03-01
|
|
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 { PaymentPreference } from './PaymentPreference.js'
|
|
16
|
+
import { TransactionInstrumentDetails } from './TransactionInstrumentDetails.js'
|
|
17
|
+
import { TransactionType } from './TransactionType.js'
|
|
18
|
+
import { TransferScheduleInformation } from './TransferScheduleInformation.js'
|
|
19
|
+
import { TransferScheduleStatus } from './TransferScheduleStatus.js'
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The TransferScheduleRequest model module.
|
|
23
|
+
* @module sellerWallet_2024_03_01/model/TransferScheduleRequest
|
|
24
|
+
* @version 2024-03-01
|
|
25
|
+
*/
|
|
26
|
+
export class TransferScheduleRequest {
|
|
27
|
+
/**
|
|
28
|
+
* Constructs a new <code>TransferScheduleRequest</code>.
|
|
29
|
+
* Request body to initiate a scheduled transfer from a Seller Wallet bank account to another customer-defined bank account.
|
|
30
|
+
* @alias module:sellerWallet_2024_03_01/model/TransferScheduleRequest
|
|
31
|
+
* @class
|
|
32
|
+
* @param sourceAccountId {String} The unique identifier of the source Amazon Seller Wallet bank account from which money is debited.
|
|
33
|
+
* @param sourceCurrencyCode {String} The three-letter currency code of the source payment method country, in ISO 4217 format.
|
|
34
|
+
* @param destinationAccountId {String} The unique identifier of the destination bank account where the money is deposited.
|
|
35
|
+
* @param destinationTransactionInstrument {module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails}
|
|
36
|
+
* @param transactionType {module:sellerWallet_2024_03_01/model/TransactionType}
|
|
37
|
+
* @param transferScheduleInformation {module:sellerWallet_2024_03_01/model/TransferScheduleInformation}
|
|
38
|
+
* @param paymentPreference {module:sellerWallet_2024_03_01/model/PaymentPreference}
|
|
39
|
+
*/
|
|
40
|
+
constructor (sourceAccountId, sourceCurrencyCode, destinationAccountId, destinationTransactionInstrument, transactionType, transferScheduleInformation, paymentPreference) {
|
|
41
|
+
this.sourceAccountId = sourceAccountId
|
|
42
|
+
this.sourceCurrencyCode = sourceCurrencyCode
|
|
43
|
+
this.destinationAccountId = destinationAccountId
|
|
44
|
+
this.destinationTransactionInstrument = destinationTransactionInstrument
|
|
45
|
+
this.transactionType = transactionType
|
|
46
|
+
this.transferScheduleInformation = transferScheduleInformation
|
|
47
|
+
this.paymentPreference = paymentPreference
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>TransferScheduleRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:sellerWallet_2024_03_01/model/TransferScheduleRequest} obj Optional instance to populate.
|
|
55
|
+
* @return {module:sellerWallet_2024_03_01/model/TransferScheduleRequest} The populated <code>TransferScheduleRequest</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
static constructFromObject (data, obj) {
|
|
58
|
+
if (data) {
|
|
59
|
+
switch (typeof data) {
|
|
60
|
+
case 'string':
|
|
61
|
+
obj = String(data)
|
|
62
|
+
break
|
|
63
|
+
case 'number':
|
|
64
|
+
obj = Number(data)
|
|
65
|
+
break
|
|
66
|
+
case 'boolean':
|
|
67
|
+
obj = Boolean(data)
|
|
68
|
+
break
|
|
69
|
+
}
|
|
70
|
+
obj = obj || new TransferScheduleRequest()
|
|
71
|
+
if (data.hasOwnProperty('sourceAccountId')) { obj.sourceAccountId = ApiClient.convertToType(data.sourceAccountId, 'String') }
|
|
72
|
+
if (data.hasOwnProperty('sourceCurrencyCode')) { obj.sourceCurrencyCode = ApiClient.convertToType(data.sourceCurrencyCode, 'String') }
|
|
73
|
+
if (data.hasOwnProperty('destinationAccountId')) { obj.destinationAccountId = ApiClient.convertToType(data.destinationAccountId, 'String') }
|
|
74
|
+
if (data.hasOwnProperty('destinationTransactionInstrument')) { obj.destinationTransactionInstrument = TransactionInstrumentDetails.constructFromObject(data.destinationTransactionInstrument) }
|
|
75
|
+
if (data.hasOwnProperty('transactionType')) { obj.transactionType = TransactionType.constructFromObject(data.transactionType) }
|
|
76
|
+
if (data.hasOwnProperty('transferScheduleInformation')) { obj.transferScheduleInformation = TransferScheduleInformation.constructFromObject(data.transferScheduleInformation) }
|
|
77
|
+
if (data.hasOwnProperty('paymentPreference')) { obj.paymentPreference = PaymentPreference.constructFromObject(data.paymentPreference) }
|
|
78
|
+
if (data.hasOwnProperty('transferScheduleStatus')) { obj.transferScheduleStatus = TransferScheduleStatus.constructFromObject(data.transferScheduleStatus) }
|
|
79
|
+
}
|
|
80
|
+
return obj
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The unique identifier of the source Amazon Seller Wallet bank account from which money is debited.
|
|
86
|
+
* @member {String} sourceAccountId
|
|
87
|
+
*/
|
|
88
|
+
TransferScheduleRequest.prototype.sourceAccountId = undefined
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The three-letter currency code of the source payment method country, in ISO 4217 format.
|
|
92
|
+
* @member {String} sourceCurrencyCode
|
|
93
|
+
*/
|
|
94
|
+
TransferScheduleRequest.prototype.sourceCurrencyCode = undefined
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The unique identifier of the destination bank account where the money is deposited.
|
|
98
|
+
* @member {String} destinationAccountId
|
|
99
|
+
*/
|
|
100
|
+
TransferScheduleRequest.prototype.destinationAccountId = undefined
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @member {module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails} destinationTransactionInstrument
|
|
104
|
+
*/
|
|
105
|
+
TransferScheduleRequest.prototype.destinationTransactionInstrument = undefined
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @member {module:sellerWallet_2024_03_01/model/TransactionType} transactionType
|
|
109
|
+
*/
|
|
110
|
+
TransferScheduleRequest.prototype.transactionType = undefined
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @member {module:sellerWallet_2024_03_01/model/TransferScheduleInformation} transferScheduleInformation
|
|
114
|
+
*/
|
|
115
|
+
TransferScheduleRequest.prototype.transferScheduleInformation = undefined
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @member {module:sellerWallet_2024_03_01/model/PaymentPreference} paymentPreference
|
|
119
|
+
*/
|
|
120
|
+
TransferScheduleRequest.prototype.paymentPreference = undefined
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @member {module:sellerWallet_2024_03_01/model/TransferScheduleStatus} transferScheduleStatus
|
|
124
|
+
*/
|
|
125
|
+
TransferScheduleRequest.prototype.transferScheduleStatus = undefined
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon Seller Wallet Open Banking API
|
|
3
|
+
* The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller's Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-03-01
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Enum class TransferScheduleStatus.
|
|
18
|
+
* @enum {}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
export class TransferScheduleStatus {
|
|
22
|
+
/**
|
|
23
|
+
* value: "ENABLED"
|
|
24
|
+
* @const
|
|
25
|
+
*/
|
|
26
|
+
'ENABLED' = 'ENABLED'
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* value: "DISABLED"
|
|
30
|
+
* @const
|
|
31
|
+
*/
|
|
32
|
+
'DISABLED' = 'DISABLED'
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* value: "EXPIRED"
|
|
36
|
+
* @const
|
|
37
|
+
*/
|
|
38
|
+
'EXPIRED' = 'EXPIRED'
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* value: "DELETED"
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
'DELETED' = 'DELETED'
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns a <code>TransferScheduleStatus</code> enum value from a Javascript object name.
|
|
48
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
49
|
+
* @return {module:sellerWallet_2024_03_01/model/TransferScheduleStatus} The enum <code>TransferScheduleStatus</code> value.
|
|
50
|
+
*/
|
|
51
|
+
static constructFromObject (object) {
|
|
52
|
+
return object
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|