@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
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
* The AccountHolderAddress model module.
|
|
18
|
+
* @module sellerWallet_2024_03_01/model/AccountHolderAddress
|
|
19
|
+
* @version 2024-03-01
|
|
20
|
+
*/
|
|
21
|
+
export class AccountHolderAddress {
|
|
22
|
+
/**
|
|
23
|
+
* Constructs a new <code>AccountHolderAddress</code>.
|
|
24
|
+
* The Address used to verify the bank account of the payee. This can be a person or business mailing address.
|
|
25
|
+
* @alias module:sellerWallet_2024_03_01/model/AccountHolderAddress
|
|
26
|
+
* @class
|
|
27
|
+
* @param addressLine1 {String} Address Line 1 of the public address.
|
|
28
|
+
* @param city {String} City name of the public address.
|
|
29
|
+
* @param state {String} State name of the public address. This will be state or region for CN (China) based addresses.
|
|
30
|
+
* @param postalCode {String} Postal code of the public address.
|
|
31
|
+
* @param countryCode {String} The two digit country code, in ISO 3166 format.
|
|
32
|
+
*/
|
|
33
|
+
constructor (addressLine1, city, state, postalCode, countryCode) {
|
|
34
|
+
this.addressLine1 = addressLine1
|
|
35
|
+
this.city = city
|
|
36
|
+
this.state = state
|
|
37
|
+
this.postalCode = postalCode
|
|
38
|
+
this.countryCode = countryCode
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Constructs a <code>AccountHolderAddress</code> from a plain JavaScript object, optionally creating a new instance.
|
|
43
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
44
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
45
|
+
* @param {module:sellerWallet_2024_03_01/model/AccountHolderAddress} obj Optional instance to populate.
|
|
46
|
+
* @return {module:sellerWallet_2024_03_01/model/AccountHolderAddress} The populated <code>AccountHolderAddress</code> instance.
|
|
47
|
+
*/
|
|
48
|
+
static constructFromObject (data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
switch (typeof data) {
|
|
51
|
+
case 'string':
|
|
52
|
+
obj = String(data)
|
|
53
|
+
break
|
|
54
|
+
case 'number':
|
|
55
|
+
obj = Number(data)
|
|
56
|
+
break
|
|
57
|
+
case 'boolean':
|
|
58
|
+
obj = Boolean(data)
|
|
59
|
+
break
|
|
60
|
+
}
|
|
61
|
+
obj = obj || new AccountHolderAddress()
|
|
62
|
+
if (data.hasOwnProperty('addressLine1')) { obj.addressLine1 = ApiClient.convertToType(data.addressLine1, 'String') }
|
|
63
|
+
if (data.hasOwnProperty('addressLine2')) { obj.addressLine2 = ApiClient.convertToType(data.addressLine2, 'String') }
|
|
64
|
+
if (data.hasOwnProperty('city')) { obj.city = ApiClient.convertToType(data.city, 'String') }
|
|
65
|
+
if (data.hasOwnProperty('state')) { obj.state = ApiClient.convertToType(data.state, 'String') }
|
|
66
|
+
if (data.hasOwnProperty('postalCode')) { obj.postalCode = ApiClient.convertToType(data.postalCode, 'String') }
|
|
67
|
+
if (data.hasOwnProperty('country')) { obj.country = ApiClient.convertToType(data.country, 'String') }
|
|
68
|
+
if (data.hasOwnProperty('countryCode')) { obj.countryCode = ApiClient.convertToType(data.countryCode, 'String') }
|
|
69
|
+
}
|
|
70
|
+
return obj
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Address Line 1 of the public address.
|
|
76
|
+
* @member {String} addressLine1
|
|
77
|
+
*/
|
|
78
|
+
AccountHolderAddress.prototype.addressLine1 = undefined
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Address Line 2 of the public address.
|
|
82
|
+
* @member {String} addressLine2
|
|
83
|
+
*/
|
|
84
|
+
AccountHolderAddress.prototype.addressLine2 = undefined
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* City name of the public address.
|
|
88
|
+
* @member {String} city
|
|
89
|
+
*/
|
|
90
|
+
AccountHolderAddress.prototype.city = undefined
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* State name of the public address. This will be state or region for CN (China) based addresses.
|
|
94
|
+
* @member {String} state
|
|
95
|
+
*/
|
|
96
|
+
AccountHolderAddress.prototype.state = undefined
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Postal code of the public address.
|
|
100
|
+
* @member {String} postalCode
|
|
101
|
+
*/
|
|
102
|
+
AccountHolderAddress.prototype.postalCode = undefined
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Country name of the public address.
|
|
106
|
+
* @member {String} country
|
|
107
|
+
*/
|
|
108
|
+
AccountHolderAddress.prototype.country = undefined
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The two digit country code, in ISO 3166 format.
|
|
112
|
+
* @member {String} countryCode
|
|
113
|
+
*/
|
|
114
|
+
AccountHolderAddress.prototype.countryCode = undefined
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { BalanceType } from './BalanceType.js'
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The Balance model module.
|
|
19
|
+
* @module sellerWallet_2024_03_01/model/Balance
|
|
20
|
+
* @version 2024-03-01
|
|
21
|
+
*/
|
|
22
|
+
export class Balance {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>Balance</code>.
|
|
25
|
+
* The balance amount in the Amazon Seller Wallet bank account.
|
|
26
|
+
* @alias module:sellerWallet_2024_03_01/model/Balance
|
|
27
|
+
* @class
|
|
28
|
+
* @param accountId {String} The unique identifier provided by Amazon to identify the account.
|
|
29
|
+
* @param balanceAmount {Number} A decimal number, such as an amount or FX rate.
|
|
30
|
+
* @param balanceCurrency {String} The Amazon Seller Wallet bank account currency code in ISO 4217 format.
|
|
31
|
+
* @param lastUpdateDate {Date} The date of the most recent account balance update.
|
|
32
|
+
*/
|
|
33
|
+
constructor (accountId, balanceAmount, balanceCurrency, lastUpdateDate) {
|
|
34
|
+
this.accountId = accountId
|
|
35
|
+
this.balanceAmount = balanceAmount
|
|
36
|
+
this.balanceCurrency = balanceCurrency
|
|
37
|
+
this.lastUpdateDate = lastUpdateDate
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a <code>Balance</code> from a plain JavaScript object, optionally creating a new instance.
|
|
42
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
43
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
44
|
+
* @param {module:sellerWallet_2024_03_01/model/Balance} obj Optional instance to populate.
|
|
45
|
+
* @return {module:sellerWallet_2024_03_01/model/Balance} The populated <code>Balance</code> instance.
|
|
46
|
+
*/
|
|
47
|
+
static constructFromObject (data, obj) {
|
|
48
|
+
if (data) {
|
|
49
|
+
switch (typeof data) {
|
|
50
|
+
case 'string':
|
|
51
|
+
obj = String(data)
|
|
52
|
+
break
|
|
53
|
+
case 'number':
|
|
54
|
+
obj = Number(data)
|
|
55
|
+
break
|
|
56
|
+
case 'boolean':
|
|
57
|
+
obj = Boolean(data)
|
|
58
|
+
break
|
|
59
|
+
}
|
|
60
|
+
obj = obj || new Balance()
|
|
61
|
+
if (data.hasOwnProperty('accountId')) { obj.accountId = ApiClient.convertToType(data.accountId, 'String') }
|
|
62
|
+
if (data.hasOwnProperty('balanceType')) { obj.balanceType = BalanceType.constructFromObject(data.balanceType) }
|
|
63
|
+
if (data.hasOwnProperty('balanceAmount')) { obj.balanceAmount = ApiClient.convertToType(data.balanceAmount, 'Number') }
|
|
64
|
+
if (data.hasOwnProperty('balanceCurrency')) { obj.balanceCurrency = ApiClient.convertToType(data.balanceCurrency, 'String') }
|
|
65
|
+
if (data.hasOwnProperty('lastUpdateDate')) { obj.lastUpdateDate = ApiClient.convertToType(data.lastUpdateDate, 'Date') }
|
|
66
|
+
}
|
|
67
|
+
return obj
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The unique identifier provided by Amazon to identify the account.
|
|
73
|
+
* @member {String} accountId
|
|
74
|
+
*/
|
|
75
|
+
Balance.prototype.accountId = undefined
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @member {module:sellerWallet_2024_03_01/model/BalanceType} balanceType
|
|
79
|
+
*/
|
|
80
|
+
Balance.prototype.balanceType = undefined
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A decimal number, such as an amount or FX rate.
|
|
84
|
+
* @member {Number} balanceAmount
|
|
85
|
+
*/
|
|
86
|
+
Balance.prototype.balanceAmount = undefined
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The Amazon Seller Wallet bank account currency code in ISO 4217 format.
|
|
90
|
+
* @member {String} balanceCurrency
|
|
91
|
+
*/
|
|
92
|
+
Balance.prototype.balanceCurrency = undefined
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The date of the most recent account balance update.
|
|
96
|
+
* @member {Date} lastUpdateDate
|
|
97
|
+
*/
|
|
98
|
+
Balance.prototype.lastUpdateDate = undefined
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { Balance } from './Balance.js'
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The BalanceListing model module.
|
|
19
|
+
* @module sellerWallet_2024_03_01/model/BalanceListing
|
|
20
|
+
* @version 2024-03-01
|
|
21
|
+
*/
|
|
22
|
+
export class BalanceListing {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>BalanceListing</code>.
|
|
25
|
+
* A list of balances in the seller account.
|
|
26
|
+
* @alias module:sellerWallet_2024_03_01/model/BalanceListing
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor () {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>BalanceListing</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:sellerWallet_2024_03_01/model/BalanceListing} obj Optional instance to populate.
|
|
37
|
+
* @return {module:sellerWallet_2024_03_01/model/BalanceListing} The populated <code>BalanceListing</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 BalanceListing()
|
|
53
|
+
if (data.hasOwnProperty('balances')) { obj.balances = ApiClient.convertToType(data.balances, [Balance]) }
|
|
54
|
+
}
|
|
55
|
+
return obj
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* A list of balances in the seller account.
|
|
61
|
+
* @member {Array.<module:sellerWallet_2024_03_01/model/Balance>} balances
|
|
62
|
+
*/
|
|
63
|
+
BalanceListing.prototype.balances = 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 BalanceType.
|
|
18
|
+
* @enum {}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
export class BalanceType {
|
|
22
|
+
/**
|
|
23
|
+
* value: "AVAILABLE"
|
|
24
|
+
* @const
|
|
25
|
+
*/
|
|
26
|
+
'AVAILABLE' = 'AVAILABLE'
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* value: "LOCKED_IN"
|
|
30
|
+
* @const
|
|
31
|
+
*/
|
|
32
|
+
'LOCKED_IN' = 'LOCKED_IN'
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* value: "LOCKED_OUT"
|
|
36
|
+
* @const
|
|
37
|
+
*/
|
|
38
|
+
'LOCKED_OUT' = 'LOCKED_OUT'
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* value: "TOTAL"
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
'TOTAL' = 'TOTAL'
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns a <code>BalanceType</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/BalanceType} The enum <code>BalanceType</code> value.
|
|
50
|
+
*/
|
|
51
|
+
static constructFromObject (object) {
|
|
52
|
+
return object
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
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 { BankAccountHolderStatus } from './BankAccountHolderStatus.js'
|
|
16
|
+
import { BankAccountNumberFormat } from './BankAccountNumberFormat.js'
|
|
17
|
+
import { BankAccountOwnershipType } from './BankAccountOwnershipType.js'
|
|
18
|
+
import { BankNumberFormat } from './BankNumberFormat.js'
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The BankAccount model module.
|
|
22
|
+
* @module sellerWallet_2024_03_01/model/BankAccount
|
|
23
|
+
* @version 2024-03-01
|
|
24
|
+
*/
|
|
25
|
+
export class BankAccount {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new <code>BankAccount</code>.
|
|
28
|
+
* Details of an Amazon Seller Wallet bank account. This account is used to hold the money that a Seller Wallet customer earns by selling items.
|
|
29
|
+
* @alias module:sellerWallet_2024_03_01/model/BankAccount
|
|
30
|
+
* @class
|
|
31
|
+
* @param accountHolderName {String} The bank account holder's name (expected to be an Amazon customer).
|
|
32
|
+
* @param bankAccountNumberFormat {module:sellerWallet_2024_03_01/model/BankAccountNumberFormat}
|
|
33
|
+
* @param bankAccountOwnershipType {module:sellerWallet_2024_03_01/model/BankAccountOwnershipType}
|
|
34
|
+
* @param routingNumber {String} Routing number for automated clearing house transfers. This value is nine consecutive zeros for Amazon Seller Wallet accounts.
|
|
35
|
+
* @param bankNumberFormat {module:sellerWallet_2024_03_01/model/BankNumberFormat}
|
|
36
|
+
* @param accountCountryCode {String} The two-digit country code in ISO 3166 format.
|
|
37
|
+
* @param accountCurrency {String} Bank account currency code in ISO 4217 format.
|
|
38
|
+
* @param bankAccountNumberTail {String} The last 3 digit of the bank account number. This value is three consecutive zeros for Amazon Seller Wallet accounts.
|
|
39
|
+
*/
|
|
40
|
+
constructor (accountHolderName, bankAccountNumberFormat, bankAccountOwnershipType, routingNumber, bankNumberFormat, accountCountryCode, accountCurrency, bankAccountNumberTail) {
|
|
41
|
+
this.accountHolderName = accountHolderName
|
|
42
|
+
this.bankAccountNumberFormat = bankAccountNumberFormat
|
|
43
|
+
this.bankAccountOwnershipType = bankAccountOwnershipType
|
|
44
|
+
this.routingNumber = routingNumber
|
|
45
|
+
this.bankNumberFormat = bankNumberFormat
|
|
46
|
+
this.accountCountryCode = accountCountryCode
|
|
47
|
+
this.accountCurrency = accountCurrency
|
|
48
|
+
this.bankAccountNumberTail = bankAccountNumberTail
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>BankAccount</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:sellerWallet_2024_03_01/model/BankAccount} obj Optional instance to populate.
|
|
56
|
+
* @return {module:sellerWallet_2024_03_01/model/BankAccount} The populated <code>BankAccount</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
static constructFromObject (data, obj) {
|
|
59
|
+
if (data) {
|
|
60
|
+
switch (typeof data) {
|
|
61
|
+
case 'string':
|
|
62
|
+
obj = String(data)
|
|
63
|
+
break
|
|
64
|
+
case 'number':
|
|
65
|
+
obj = Number(data)
|
|
66
|
+
break
|
|
67
|
+
case 'boolean':
|
|
68
|
+
obj = Boolean(data)
|
|
69
|
+
break
|
|
70
|
+
}
|
|
71
|
+
obj = obj || new BankAccount()
|
|
72
|
+
if (data.hasOwnProperty('accountId')) { obj.accountId = ApiClient.convertToType(data.accountId, 'String') }
|
|
73
|
+
if (data.hasOwnProperty('accountHolderName')) { obj.accountHolderName = ApiClient.convertToType(data.accountHolderName, 'String') }
|
|
74
|
+
if (data.hasOwnProperty('bankAccountNumberFormat')) { obj.bankAccountNumberFormat = BankAccountNumberFormat.constructFromObject(data.bankAccountNumberFormat) }
|
|
75
|
+
if (data.hasOwnProperty('bankName')) { obj.bankName = ApiClient.convertToType(data.bankName, 'String') }
|
|
76
|
+
if (data.hasOwnProperty('bankAccountOwnershipType')) { obj.bankAccountOwnershipType = BankAccountOwnershipType.constructFromObject(data.bankAccountOwnershipType) }
|
|
77
|
+
if (data.hasOwnProperty('routingNumber')) { obj.routingNumber = ApiClient.convertToType(data.routingNumber, 'String') }
|
|
78
|
+
if (data.hasOwnProperty('bankNumberFormat')) { obj.bankNumberFormat = BankNumberFormat.constructFromObject(data.bankNumberFormat) }
|
|
79
|
+
if (data.hasOwnProperty('accountCountryCode')) { obj.accountCountryCode = ApiClient.convertToType(data.accountCountryCode, 'String') }
|
|
80
|
+
if (data.hasOwnProperty('accountCurrency')) { obj.accountCurrency = ApiClient.convertToType(data.accountCurrency, 'String') }
|
|
81
|
+
if (data.hasOwnProperty('bankAccountNumberTail')) { obj.bankAccountNumberTail = ApiClient.convertToType(data.bankAccountNumberTail, 'String') }
|
|
82
|
+
if (data.hasOwnProperty('bankAccountHolderStatus')) { obj.bankAccountHolderStatus = BankAccountHolderStatus.constructFromObject(data.bankAccountHolderStatus) }
|
|
83
|
+
}
|
|
84
|
+
return obj
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The unique identifier provided by Amazon to identify the account.
|
|
90
|
+
* @member {String} accountId
|
|
91
|
+
*/
|
|
92
|
+
BankAccount.prototype.accountId = undefined
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The bank account holder's name (expected to be an Amazon customer).
|
|
96
|
+
* @member {String} accountHolderName
|
|
97
|
+
*/
|
|
98
|
+
BankAccount.prototype.accountHolderName = undefined
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @member {module:sellerWallet_2024_03_01/model/BankAccountNumberFormat} bankAccountNumberFormat
|
|
102
|
+
*/
|
|
103
|
+
BankAccount.prototype.bankAccountNumberFormat = undefined
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The name of the bank. This value is Amazon Seller Wallet for Amazon Seller Wallet accounts.
|
|
107
|
+
* @member {String} bankName
|
|
108
|
+
*/
|
|
109
|
+
BankAccount.prototype.bankName = undefined
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @member {module:sellerWallet_2024_03_01/model/BankAccountOwnershipType} bankAccountOwnershipType
|
|
113
|
+
*/
|
|
114
|
+
BankAccount.prototype.bankAccountOwnershipType = undefined
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Routing number for automated clearing house transfers. This value is nine consecutive zeros for Amazon Seller Wallet accounts.
|
|
118
|
+
* @member {String} routingNumber
|
|
119
|
+
*/
|
|
120
|
+
BankAccount.prototype.routingNumber = undefined
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @member {module:sellerWallet_2024_03_01/model/BankNumberFormat} bankNumberFormat
|
|
124
|
+
*/
|
|
125
|
+
BankAccount.prototype.bankNumberFormat = undefined
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The two-digit country code in ISO 3166 format.
|
|
129
|
+
* @member {String} accountCountryCode
|
|
130
|
+
*/
|
|
131
|
+
BankAccount.prototype.accountCountryCode = undefined
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Bank account currency code in ISO 4217 format.
|
|
135
|
+
* @member {String} accountCurrency
|
|
136
|
+
*/
|
|
137
|
+
BankAccount.prototype.accountCurrency = undefined
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The last 3 digit of the bank account number. This value is three consecutive zeros for Amazon Seller Wallet accounts.
|
|
141
|
+
* @member {String} bankAccountNumberTail
|
|
142
|
+
*/
|
|
143
|
+
BankAccount.prototype.bankAccountNumberTail = undefined
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @member {module:sellerWallet_2024_03_01/model/BankAccountHolderStatus} bankAccountHolderStatus
|
|
147
|
+
*/
|
|
148
|
+
BankAccount.prototype.bankAccountHolderStatus = 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 BankAccountHolderStatus.
|
|
18
|
+
* @enum {}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
export class BankAccountHolderStatus {
|
|
22
|
+
/**
|
|
23
|
+
* value: "ACTIVE"
|
|
24
|
+
* @const
|
|
25
|
+
*/
|
|
26
|
+
'ACTIVE' = 'ACTIVE'
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* value: "INACTIVE"
|
|
30
|
+
* @const
|
|
31
|
+
*/
|
|
32
|
+
'INACTIVE' = 'INACTIVE'
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* value: "UNDER_REVIEW"
|
|
36
|
+
* @const
|
|
37
|
+
*/
|
|
38
|
+
'UNDER_REVIEW' = 'UNDER_REVIEW'
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* value: "VERIFICATION_FAILED"
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
'VERIFICATION_FAILED' = 'VERIFICATION_FAILED'
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns a <code>BankAccountHolderStatus</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/BankAccountHolderStatus} The enum <code>BankAccountHolderStatus</code> value.
|
|
50
|
+
*/
|
|
51
|
+
static constructFromObject (object) {
|
|
52
|
+
return object
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { BankAccount } from './BankAccount.js'
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The BankAccountListing model module.
|
|
19
|
+
* @module sellerWallet_2024_03_01/model/BankAccountListing
|
|
20
|
+
* @version 2024-03-01
|
|
21
|
+
*/
|
|
22
|
+
export class BankAccountListing {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>BankAccountListing</code>.
|
|
25
|
+
* A list of bank accounts.
|
|
26
|
+
* @alias module:sellerWallet_2024_03_01/model/BankAccountListing
|
|
27
|
+
* @class
|
|
28
|
+
* @param accounts {Array.<module:sellerWallet_2024_03_01/model/BankAccount>} A list of bank accounts.
|
|
29
|
+
*/
|
|
30
|
+
constructor (accounts) {
|
|
31
|
+
this.accounts = accounts
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a <code>BankAccountListing</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/BankAccountListing} obj Optional instance to populate.
|
|
39
|
+
* @return {module:sellerWallet_2024_03_01/model/BankAccountListing} The populated <code>BankAccountListing</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 BankAccountListing()
|
|
55
|
+
if (data.hasOwnProperty('accounts')) { obj.accounts = ApiClient.convertToType(data.accounts, [BankAccount]) }
|
|
56
|
+
}
|
|
57
|
+
return obj
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A list of bank accounts.
|
|
63
|
+
* @member {Array.<module:sellerWallet_2024_03_01/model/BankAccount>} accounts
|
|
64
|
+
*/
|
|
65
|
+
BankAccountListing.prototype.accounts = undefined
|
|
@@ -0,0 +1,42 @@
|
|
|
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 BankAccountNumberFormat.
|
|
18
|
+
* @enum {}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
export class BankAccountNumberFormat {
|
|
22
|
+
/**
|
|
23
|
+
* value: "IBAN"
|
|
24
|
+
* @const
|
|
25
|
+
*/
|
|
26
|
+
'IBAN' = 'IBAN'
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* value: "BBAN"
|
|
30
|
+
* @const
|
|
31
|
+
*/
|
|
32
|
+
'BBAN' = 'BBAN'
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns a <code>BankAccountNumberFormat</code> enum value from a Javascript object name.
|
|
36
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
37
|
+
* @return {module:sellerWallet_2024_03_01/model/BankAccountNumberFormat} The enum <code>BankAccountNumberFormat</code> value.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject (object) {
|
|
40
|
+
return object
|
|
41
|
+
}
|
|
42
|
+
}
|