@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.
Files changed (144) hide show
  1. package/README.md +2 -3
  2. package/helper/DefaultRateLimitMap.mjs +14 -1
  3. package/index.js +2 -0
  4. package/package.json +1 -1
  5. package/src/apluscontent_v2020_11_01/ApiClient.js +5 -1
  6. package/src/appintegrations_v2024_04_01/ApiClient.js +5 -1
  7. package/src/applications_v2023_11_30/ApiClient.js +5 -1
  8. package/src/awd_v2024_05_09/ApiClient.js +5 -1
  9. package/src/catalogitems_v2022_04_01/ApiClient.js +5 -1
  10. package/src/datakiosk_v2023_11_15/ApiClient.js +5 -1
  11. package/src/easyship_v2022_03_23/ApiClient.js +5 -1
  12. package/src/fbaeligibility_v1/ApiClient.js +5 -1
  13. package/src/fbainventory_v1/ApiClient.js +5 -1
  14. package/src/feeds_v2021_06_30/ApiClient.js +5 -1
  15. package/src/finances_2024_06_19/ApiClient.js +827 -0
  16. package/src/finances_2024_06_19/api/DefaultApi.js +125 -0
  17. package/src/finances_2024_06_19/index.js +168 -0
  18. package/src/finances_2024_06_19/model/AmazonPayContext.js +76 -0
  19. package/src/finances_2024_06_19/model/Breakdown.js +76 -0
  20. package/src/finances_2024_06_19/model/BusinessContext.js +76 -0
  21. package/src/finances_2024_06_19/model/Context.js +308 -0
  22. package/src/finances_2024_06_19/model/Currency.js +69 -0
  23. package/src/finances_2024_06_19/model/DeferredContext.js +69 -0
  24. package/src/finances_2024_06_19/model/Error.js +80 -0
  25. package/src/finances_2024_06_19/model/ErrorList.js +65 -0
  26. package/src/finances_2024_06_19/model/Item.js +93 -0
  27. package/src/finances_2024_06_19/model/ItemRelatedIdentifier.js +101 -0
  28. package/src/finances_2024_06_19/model/ListTransactionsResponse.js +62 -0
  29. package/src/finances_2024_06_19/model/MarketplaceDetails.js +69 -0
  30. package/src/finances_2024_06_19/model/PaymentsContext.js +83 -0
  31. package/src/finances_2024_06_19/model/ProductContext.js +83 -0
  32. package/src/finances_2024_06_19/model/RelatedIdentifier.js +137 -0
  33. package/src/finances_2024_06_19/model/SellingPartnerMetadata.js +76 -0
  34. package/src/finances_2024_06_19/model/TimeRangeContext.js +69 -0
  35. package/src/finances_2024_06_19/model/Transaction.js +143 -0
  36. package/src/finances_2024_06_19/model/TransactionsPayload.js +70 -0
  37. package/src/finances_v0/ApiClient.js +5 -1
  38. package/src/fulfillmentinbound_v0/ApiClient.js +5 -1
  39. package/src/fulfillmentinbound_v2024_03_20/ApiClient.js +5 -1
  40. package/src/fulfillmentoutbound_v2020_07_01/ApiClient.js +5 -1
  41. package/src/invoices_v2024_06_19/ApiClient.js +5 -1
  42. package/src/invoicing_v0/ApiClient.js +5 -1
  43. package/src/listingsitems_v2021_08_01/ApiClient.js +5 -1
  44. package/src/listingsitems_v2021_08_01/api/ListingsApi.js +6 -6
  45. package/src/listingsitems_v2021_08_01/model/FulfillmentAvailability.js +2 -2
  46. package/src/listingsitems_v2021_08_01/model/Issue.js +2 -2
  47. package/src/listingsitems_v2021_08_01/model/IssueExemption.js +1 -1
  48. package/src/listingsitems_v2021_08_01/model/ItemRelationship.js +1 -1
  49. package/src/listingsitems_v2021_08_01/model/ItemSearchResults.js +2 -2
  50. package/src/listingsitems_v2021_08_01/model/Pagination.js +1 -1
  51. package/src/listingsitems_v2021_08_01/model/PatchOperation.js +9 -3
  52. package/src/listingsrestrictions_v2021_08_01/ApiClient.js +5 -1
  53. package/src/merchantfulfillment_v0/ApiClient.js +5 -1
  54. package/src/messaging_v1/ApiClient.js +5 -1
  55. package/src/notifications_v1/ApiClient.js +5 -1
  56. package/src/orders_v0/ApiClient.js +5 -1
  57. package/src/orders_v0/api/OrdersV0Api.js +26 -26
  58. package/src/orders_v0/api/ShipmentApi.js +2 -2
  59. package/src/orders_v0/index.js +0 -7
  60. package/src/orders_v0/model/AmazonPrograms.js +3 -3
  61. package/src/orders_v0/model/OrderItem.js +0 -7
  62. package/src/orders_v0/model/OrdersList.js +1 -1
  63. package/src/orders_v0/model/PackageDetail.js +1 -1
  64. package/src/pricing_v0/ApiClient.js +5 -1
  65. package/src/pricing_v2022_05_01/ApiClient.js +5 -1
  66. package/src/pricing_v2022_05_01/model/CompetitiveSummaryRequest.js +2 -2
  67. package/src/pricing_v2022_05_01/model/CompetitiveSummaryResponseBody.js +2 -2
  68. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequest.js +3 -3
  69. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams.js +2 -2
  70. package/src/pricing_v2022_05_01/model/FeaturedOfferSegment.js +7 -1
  71. package/src/pricing_v2022_05_01/model/LowestPricedOffersInput.js +2 -2
  72. package/src/pricing_v2022_05_01/model/OfferIdentifier.js +2 -2
  73. package/src/pricing_v2022_05_01/model/ReferencePrice.js +2 -2
  74. package/src/productfees_v0/ApiClient.js +5 -1
  75. package/src/producttypedefinitions_v2020_09_01/ApiClient.js +5 -1
  76. package/src/replenishment_v2022_11_07/ApiClient.js +5 -1
  77. package/src/reports_v2021_06_30/ApiClient.js +5 -1
  78. package/src/sales_v1/ApiClient.js +5 -1
  79. package/src/sales_v1/api/SalesApi.js +4 -1
  80. package/src/sellerWallet_2024_03_01/ApiClient.js +827 -0
  81. package/src/sellerWallet_2024_03_01/api/AccountsApi.js +212 -0
  82. package/src/sellerWallet_2024_03_01/api/TransactionsApi.js +233 -0
  83. package/src/sellerWallet_2024_03_01/api/TransferPreviewApi.js +144 -0
  84. package/src/sellerWallet_2024_03_01/api/TransferScheduleApi.js +347 -0
  85. package/src/sellerWallet_2024_03_01/index.js +322 -0
  86. package/src/sellerWallet_2024_03_01/model/AccountHolderAddress.js +114 -0
  87. package/src/sellerWallet_2024_03_01/model/Balance.js +98 -0
  88. package/src/sellerWallet_2024_03_01/model/BalanceListing.js +63 -0
  89. package/src/sellerWallet_2024_03_01/model/BalanceType.js +54 -0
  90. package/src/sellerWallet_2024_03_01/model/BankAccount.js +148 -0
  91. package/src/sellerWallet_2024_03_01/model/BankAccountHolderStatus.js +54 -0
  92. package/src/sellerWallet_2024_03_01/model/BankAccountListing.js +65 -0
  93. package/src/sellerWallet_2024_03_01/model/BankAccountNumberFormat.js +42 -0
  94. package/src/sellerWallet_2024_03_01/model/BankAccountOwnershipType.js +48 -0
  95. package/src/sellerWallet_2024_03_01/model/BankNumberFormat.js +42 -0
  96. package/src/sellerWallet_2024_03_01/model/Currency.js +69 -0
  97. package/src/sellerWallet_2024_03_01/model/DeleteTransferSchedule.js +80 -0
  98. package/src/sellerWallet_2024_03_01/model/Error.js +80 -0
  99. package/src/sellerWallet_2024_03_01/model/ErrorList.js +65 -0
  100. package/src/sellerWallet_2024_03_01/model/Fee.js +91 -0
  101. package/src/sellerWallet_2024_03_01/model/FeeType.js +48 -0
  102. package/src/sellerWallet_2024_03_01/model/FxRateDetails.js +91 -0
  103. package/src/sellerWallet_2024_03_01/model/PaymentPreference.js +73 -0
  104. package/src/sellerWallet_2024_03_01/model/PaymentPreferencePaymentType.js +42 -0
  105. package/src/sellerWallet_2024_03_01/model/RateDirection.js +42 -0
  106. package/src/sellerWallet_2024_03_01/model/RecurringFrequency.js +54 -0
  107. package/src/sellerWallet_2024_03_01/model/ScheduleExpression.js +71 -0
  108. package/src/sellerWallet_2024_03_01/model/ScheduleExpressionType.js +42 -0
  109. package/src/sellerWallet_2024_03_01/model/ScheduleTransferType.js +36 -0
  110. package/src/sellerWallet_2024_03_01/model/Transaction.js +187 -0
  111. package/src/sellerWallet_2024_03_01/model/TransactionAccount.js +112 -0
  112. package/src/sellerWallet_2024_03_01/model/TransactionInitiationRequest.js +121 -0
  113. package/src/sellerWallet_2024_03_01/model/TransactionInstrumentDetails.js +73 -0
  114. package/src/sellerWallet_2024_03_01/model/TransactionListing.js +72 -0
  115. package/src/sellerWallet_2024_03_01/model/TransactionStatus.js +66 -0
  116. package/src/sellerWallet_2024_03_01/model/TransactionType.js +42 -0
  117. package/src/sellerWallet_2024_03_01/model/TransferRatePreview.js +91 -0
  118. package/src/sellerWallet_2024_03_01/model/TransferSchedule.js +123 -0
  119. package/src/sellerWallet_2024_03_01/model/TransferScheduleFailures.js +73 -0
  120. package/src/sellerWallet_2024_03_01/model/TransferScheduleInformation.js +83 -0
  121. package/src/sellerWallet_2024_03_01/model/TransferScheduleListing.js +72 -0
  122. package/src/sellerWallet_2024_03_01/model/TransferScheduleRequest.js +125 -0
  123. package/src/sellerWallet_2024_03_01/model/TransferScheduleStatus.js +54 -0
  124. package/src/sellers_v1/ApiClient.js +5 -1
  125. package/src/services_v1/ApiClient.js +5 -1
  126. package/src/shipping_v2/ApiClient.js +5 -1
  127. package/src/solicitations_v1/ApiClient.js +5 -1
  128. package/src/supplysources_v2020_07_01/ApiClient.js +5 -1
  129. package/src/tokens_v2021_03_01/ApiClient.js +5 -1
  130. package/src/transfers_v2024_06_01/ApiClient.js +5 -1
  131. package/src/uploads_v2020_11_01/ApiClient.js +5 -1
  132. package/src/vehicles_v2024_11_01/ApiClient.js +5 -1
  133. package/src/vendordfinventory_v1/ApiClient.js +5 -1
  134. package/src/vendordforders_v2021_12_28/ApiClient.js +5 -1
  135. package/src/vendordfpayments_v1/ApiClient.js +5 -1
  136. package/src/vendordfshipping_v2021_12_28/ApiClient.js +5 -1
  137. package/src/vendordftransactions_v2021_12_28/ApiClient.js +5 -1
  138. package/src/vendorinvoices_v1/ApiClient.js +5 -1
  139. package/src/vendororders_v1/ApiClient.js +5 -1
  140. package/src/vendorshipments_v1/ApiClient.js +5 -1
  141. package/src/vendorshipments_v1/api/VendorShippingApi.js +2 -2
  142. package/src/vendorshipments_v1/model/Shipment.js +3 -3
  143. package/src/vendortransactionstatus_v1/ApiClient.js +5 -1
  144. package/src/orders_v0/model/ExportInfo.js +0 -69
@@ -0,0 +1,121 @@
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 { AccountHolderAddress } from './AccountHolderAddress.js'
16
+ import { Currency } from './Currency.js'
17
+ import { TransactionInstrumentDetails } from './TransactionInstrumentDetails.js'
18
+ import { TransferRatePreview } from './TransferRatePreview.js'
19
+
20
+ /**
21
+ * The TransactionInitiationRequest model module.
22
+ * @module sellerWallet_2024_03_01/model/TransactionInitiationRequest
23
+ * @version 2024-03-01
24
+ */
25
+ export class TransactionInitiationRequest {
26
+ /**
27
+ * Constructs a new <code>TransactionInitiationRequest</code>.
28
+ * Request body to initiate a transaction from a Seller Wallet bank account to another customer-defined bank account.
29
+ * @alias module:sellerWallet_2024_03_01/model/TransactionInitiationRequest
30
+ * @class
31
+ * @param sourceAccountId {String} The unique identifier of the source Amazon Seller Wallet bank account from which the money is debited.
32
+ * @param description {String} A description of the transaction.
33
+ * @param destinationTransactionInstrument {module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails}
34
+ * @param sourceAmount {module:sellerWallet_2024_03_01/model/Currency}
35
+ * @param requestTime {Date} The time at which the transaction was initiated in [ISO 8601 date time format](https://developer-docs.amazon.com/sp-api/docs/iso-8601).
36
+ */
37
+ constructor (sourceAccountId, description, destinationTransactionInstrument, sourceAmount, requestTime) {
38
+ this.sourceAccountId = sourceAccountId
39
+ this.description = description
40
+ this.destinationTransactionInstrument = destinationTransactionInstrument
41
+ this.sourceAmount = sourceAmount
42
+ this.requestTime = requestTime
43
+ }
44
+
45
+ /**
46
+ * Constructs a <code>TransactionInitiationRequest</code> from a plain JavaScript object, optionally creating a new instance.
47
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
48
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
49
+ * @param {module:sellerWallet_2024_03_01/model/TransactionInitiationRequest} obj Optional instance to populate.
50
+ * @return {module:sellerWallet_2024_03_01/model/TransactionInitiationRequest} The populated <code>TransactionInitiationRequest</code> instance.
51
+ */
52
+ static constructFromObject (data, obj) {
53
+ if (data) {
54
+ switch (typeof data) {
55
+ case 'string':
56
+ obj = String(data)
57
+ break
58
+ case 'number':
59
+ obj = Number(data)
60
+ break
61
+ case 'boolean':
62
+ obj = Boolean(data)
63
+ break
64
+ }
65
+ obj = obj || new TransactionInitiationRequest()
66
+ if (data.hasOwnProperty('sourceAccountId')) { obj.sourceAccountId = ApiClient.convertToType(data.sourceAccountId, 'String') }
67
+ if (data.hasOwnProperty('destinationAccountId')) { obj.destinationAccountId = ApiClient.convertToType(data.destinationAccountId, 'String') }
68
+ if (data.hasOwnProperty('description')) { obj.description = ApiClient.convertToType(data.description, 'String') }
69
+ if (data.hasOwnProperty('destinationTransactionInstrument')) { obj.destinationTransactionInstrument = TransactionInstrumentDetails.constructFromObject(data.destinationTransactionInstrument) }
70
+ if (data.hasOwnProperty('destinationAccountHolderAddress')) { obj.destinationAccountHolderAddress = AccountHolderAddress.constructFromObject(data.destinationAccountHolderAddress) }
71
+ if (data.hasOwnProperty('sourceAmount')) { obj.sourceAmount = Currency.constructFromObject(data.sourceAmount) }
72
+ if (data.hasOwnProperty('transferRateDetails')) { obj.transferRateDetails = TransferRatePreview.constructFromObject(data.transferRateDetails) }
73
+ if (data.hasOwnProperty('requestTime')) { obj.requestTime = ApiClient.convertToType(data.requestTime, 'Date') }
74
+ }
75
+ return obj
76
+ }
77
+ }
78
+
79
+ /**
80
+ * The unique identifier of the source Amazon Seller Wallet bank account from which the money is debited.
81
+ * @member {String} sourceAccountId
82
+ */
83
+ TransactionInitiationRequest.prototype.sourceAccountId = undefined
84
+
85
+ /**
86
+ * The unique identifier of the destination bank account where the money is deposited.
87
+ * @member {String} destinationAccountId
88
+ */
89
+ TransactionInitiationRequest.prototype.destinationAccountId = undefined
90
+
91
+ /**
92
+ * A description of the transaction.
93
+ * @member {String} description
94
+ */
95
+ TransactionInitiationRequest.prototype.description = undefined
96
+
97
+ /**
98
+ * @member {module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails} destinationTransactionInstrument
99
+ */
100
+ TransactionInitiationRequest.prototype.destinationTransactionInstrument = undefined
101
+
102
+ /**
103
+ * @member {module:sellerWallet_2024_03_01/model/AccountHolderAddress} destinationAccountHolderAddress
104
+ */
105
+ TransactionInitiationRequest.prototype.destinationAccountHolderAddress = undefined
106
+
107
+ /**
108
+ * @member {module:sellerWallet_2024_03_01/model/Currency} sourceAmount
109
+ */
110
+ TransactionInitiationRequest.prototype.sourceAmount = undefined
111
+
112
+ /**
113
+ * @member {module:sellerWallet_2024_03_01/model/TransferRatePreview} transferRateDetails
114
+ */
115
+ TransactionInitiationRequest.prototype.transferRateDetails = undefined
116
+
117
+ /**
118
+ * The time at which the transaction was initiated in [ISO 8601 date time format](https://developer-docs.amazon.com/sp-api/docs/iso-8601).
119
+ * @member {Date} requestTime
120
+ */
121
+ TransactionInitiationRequest.prototype.requestTime = undefined
@@ -0,0 +1,73 @@
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 TransactionInstrumentDetails model module.
19
+ * @module sellerWallet_2024_03_01/model/TransactionInstrumentDetails
20
+ * @version 2024-03-01
21
+ */
22
+ export class TransactionInstrumentDetails {
23
+ /**
24
+ * Constructs a new <code>TransactionInstrumentDetails</code>.
25
+ * Details of the destination bank account in the transaction request.
26
+ * @alias module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails
27
+ * @class
28
+ * @param bankAccount {module:sellerWallet_2024_03_01/model/BankAccount}
29
+ * @param bankAccountNumber {String} The bank account number of the destination payment method. **Note:** This field is encrypted before Amazon receives it, so should not be used to generate `destAccountDigitalSignature`, and should not be included in the request signature.
30
+ */
31
+ constructor (bankAccount, bankAccountNumber) {
32
+ this.bankAccount = bankAccount
33
+ this.bankAccountNumber = bankAccountNumber
34
+ }
35
+
36
+ /**
37
+ * Constructs a <code>TransactionInstrumentDetails</code> from a plain JavaScript object, optionally creating a new instance.
38
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
39
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
40
+ * @param {module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails} obj Optional instance to populate.
41
+ * @return {module:sellerWallet_2024_03_01/model/TransactionInstrumentDetails} The populated <code>TransactionInstrumentDetails</code> instance.
42
+ */
43
+ static constructFromObject (data, obj) {
44
+ if (data) {
45
+ switch (typeof data) {
46
+ case 'string':
47
+ obj = String(data)
48
+ break
49
+ case 'number':
50
+ obj = Number(data)
51
+ break
52
+ case 'boolean':
53
+ obj = Boolean(data)
54
+ break
55
+ }
56
+ obj = obj || new TransactionInstrumentDetails()
57
+ if (data.hasOwnProperty('bankAccount')) { obj.bankAccount = BankAccount.constructFromObject(data.bankAccount) }
58
+ if (data.hasOwnProperty('bankAccountNumber')) { obj.bankAccountNumber = ApiClient.convertToType(data.bankAccountNumber, 'String') }
59
+ }
60
+ return obj
61
+ }
62
+ }
63
+
64
+ /**
65
+ * @member {module:sellerWallet_2024_03_01/model/BankAccount} bankAccount
66
+ */
67
+ TransactionInstrumentDetails.prototype.bankAccount = undefined
68
+
69
+ /**
70
+ * The bank account number of the destination payment method. **Note:** This field is encrypted before Amazon receives it, so should not be used to generate `destAccountDigitalSignature`, and should not be included in the request signature.
71
+ * @member {String} bankAccountNumber
72
+ */
73
+ TransactionInstrumentDetails.prototype.bankAccountNumber = 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 { Transaction } from './Transaction.js'
16
+
17
+ /**
18
+ * The TransactionListing model module.
19
+ * @module sellerWallet_2024_03_01/model/TransactionListing
20
+ * @version 2024-03-01
21
+ */
22
+ export class TransactionListing {
23
+ /**
24
+ * Constructs a new <code>TransactionListing</code>.
25
+ * A list of transactions.
26
+ * @alias module:sellerWallet_2024_03_01/model/TransactionListing
27
+ * @class
28
+ * @param transactions {Array.<module:sellerWallet_2024_03_01/model/Transaction>} A list of transactions.
29
+ */
30
+ constructor (transactions) {
31
+ this.transactions = transactions
32
+ }
33
+
34
+ /**
35
+ * Constructs a <code>TransactionListing</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/TransactionListing} obj Optional instance to populate.
39
+ * @return {module:sellerWallet_2024_03_01/model/TransactionListing} The populated <code>TransactionListing</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 TransactionListing()
55
+ if (data.hasOwnProperty('nextPageToken')) { obj.nextPageToken = ApiClient.convertToType(data.nextPageToken, 'String') }
56
+ if (data.hasOwnProperty('transactions')) { obj.transactions = ApiClient.convertToType(data.transactions, [Transaction]) }
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
+ TransactionListing.prototype.nextPageToken = undefined
67
+
68
+ /**
69
+ * A list of transactions.
70
+ * @member {Array.<module:sellerWallet_2024_03_01/model/Transaction>} transactions
71
+ */
72
+ TransactionListing.prototype.transactions = undefined
@@ -0,0 +1,66 @@
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 TransactionStatus.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class TransactionStatus {
22
+ /**
23
+ * value: "FAILED"
24
+ * @const
25
+ */
26
+ 'FAILED' = 'FAILED'
27
+
28
+ /**
29
+ * value: "FAILED_CREDITS_APPLIED"
30
+ * @const
31
+ */
32
+ 'FAILED_CREDITS_APPLIED' = 'FAILED_CREDITS_APPLIED'
33
+
34
+ /**
35
+ * value: "INITIATED"
36
+ * @const
37
+ */
38
+ 'INITIATED' = 'INITIATED'
39
+
40
+ /**
41
+ * value: "IN_PROGRESS"
42
+ * @const
43
+ */
44
+ 'IN_PROGRESS' = 'IN_PROGRESS'
45
+
46
+ /**
47
+ * value: "PAYEE_UNDER_REVIEW"
48
+ * @const
49
+ */
50
+ 'PAYEE_UNDER_REVIEW' = 'PAYEE_UNDER_REVIEW'
51
+
52
+ /**
53
+ * value: "SUCCESSFUL"
54
+ * @const
55
+ */
56
+ 'SUCCESSFUL' = 'SUCCESSFUL'
57
+
58
+ /**
59
+ * Returns a <code>TransactionStatus</code> enum value from a Javascript object name.
60
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
61
+ * @return {module:sellerWallet_2024_03_01/model/TransactionStatus} The enum <code>TransactionStatus</code> value.
62
+ */
63
+ static constructFromObject (object) {
64
+ return object
65
+ }
66
+ }
@@ -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 TransactionType.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class TransactionType {
22
+ /**
23
+ * value: "CREDIT"
24
+ * @const
25
+ */
26
+ 'CREDIT' = 'CREDIT'
27
+
28
+ /**
29
+ * value: "DEBIT"
30
+ * @const
31
+ */
32
+ 'DEBIT' = 'DEBIT'
33
+
34
+ /**
35
+ * Returns a <code>TransactionType</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/TransactionType} The enum <code>TransactionType</code> value.
38
+ */
39
+ static constructFromObject (object) {
40
+ return object
41
+ }
42
+ }
@@ -0,0 +1,91 @@
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 { Currency } from './Currency.js'
16
+ import { Fee } from './Fee.js'
17
+ import { FxRateDetails } from './FxRateDetails.js'
18
+
19
+ /**
20
+ * The TransferRatePreview model module.
21
+ * @module sellerWallet_2024_03_01/model/TransferRatePreview
22
+ * @version 2024-03-01
23
+ */
24
+ export class TransferRatePreview {
25
+ /**
26
+ * Constructs a new <code>TransferRatePreview</code>.
27
+ * The fees and foreign exchange rates applied to the transaction. If the fees are in terms of the &#x60;baseAmount&#x60; (source account) currency, then the effective rate is equal to **1 - (fees * &#x60;baseRate&#x60; / &#x60;baseAmount&#x60;)**. If the fees are in terms of the &#x60;transferAmount&#x60; (destination account) currency, then the effective rate is equal to **&#x60;baseRate&#x60; - (fees / &#x60;baseAmount&#x60;)**. In the preceding expressions, **fees** is equal to the sum of all &#x60;feeAmount.currencyAmount&#x60; values in the &#x60;fees&#x60; array.
28
+ * @alias module:sellerWallet_2024_03_01/model/TransferRatePreview
29
+ * @class
30
+ * @param baseAmount {module:sellerWallet_2024_03_01/model/Currency}
31
+ * @param fxRateDetails {module:sellerWallet_2024_03_01/model/FxRateDetails}
32
+ * @param transferAmount {module:sellerWallet_2024_03_01/model/Currency}
33
+ * @param fees {Array.<module:sellerWallet_2024_03_01/model/Fee>} A list of fees.
34
+ */
35
+ constructor (baseAmount, fxRateDetails, transferAmount, fees) {
36
+ this.baseAmount = baseAmount
37
+ this.fxRateDetails = fxRateDetails
38
+ this.transferAmount = transferAmount
39
+ this.fees = fees
40
+ }
41
+
42
+ /**
43
+ * Constructs a <code>TransferRatePreview</code> from a plain JavaScript object, optionally creating a new instance.
44
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
45
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
46
+ * @param {module:sellerWallet_2024_03_01/model/TransferRatePreview} obj Optional instance to populate.
47
+ * @return {module:sellerWallet_2024_03_01/model/TransferRatePreview} The populated <code>TransferRatePreview</code> instance.
48
+ */
49
+ static constructFromObject (data, obj) {
50
+ if (data) {
51
+ switch (typeof data) {
52
+ case 'string':
53
+ obj = String(data)
54
+ break
55
+ case 'number':
56
+ obj = Number(data)
57
+ break
58
+ case 'boolean':
59
+ obj = Boolean(data)
60
+ break
61
+ }
62
+ obj = obj || new TransferRatePreview()
63
+ if (data.hasOwnProperty('baseAmount')) { obj.baseAmount = Currency.constructFromObject(data.baseAmount) }
64
+ if (data.hasOwnProperty('fxRateDetails')) { obj.fxRateDetails = FxRateDetails.constructFromObject(data.fxRateDetails) }
65
+ if (data.hasOwnProperty('transferAmount')) { obj.transferAmount = Currency.constructFromObject(data.transferAmount) }
66
+ if (data.hasOwnProperty('fees')) { obj.fees = ApiClient.convertToType(data.fees, [Fee]) }
67
+ }
68
+ return obj
69
+ }
70
+ }
71
+
72
+ /**
73
+ * @member {module:sellerWallet_2024_03_01/model/Currency} baseAmount
74
+ */
75
+ TransferRatePreview.prototype.baseAmount = undefined
76
+
77
+ /**
78
+ * @member {module:sellerWallet_2024_03_01/model/FxRateDetails} fxRateDetails
79
+ */
80
+ TransferRatePreview.prototype.fxRateDetails = undefined
81
+
82
+ /**
83
+ * @member {module:sellerWallet_2024_03_01/model/Currency} transferAmount
84
+ */
85
+ TransferRatePreview.prototype.transferAmount = undefined
86
+
87
+ /**
88
+ * A list of fees.
89
+ * @member {Array.<module:sellerWallet_2024_03_01/model/Fee>} fees
90
+ */
91
+ TransferRatePreview.prototype.fees = undefined
@@ -0,0 +1,123 @@
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 { TransactionAccount } from './TransactionAccount.js'
17
+ import { TransactionType } from './TransactionType.js'
18
+ import { TransferScheduleFailures } from './TransferScheduleFailures.js'
19
+ import { TransferScheduleInformation } from './TransferScheduleInformation.js'
20
+ import { TransferScheduleStatus } from './TransferScheduleStatus.js'
21
+
22
+ /**
23
+ * The TransferSchedule model module.
24
+ * @module sellerWallet_2024_03_01/model/TransferSchedule
25
+ * @version 2024-03-01
26
+ */
27
+ export class TransferSchedule {
28
+ /**
29
+ * Constructs a new <code>TransferSchedule</code>.
30
+ * Transfer schedule details and historical details related to it.
31
+ * @alias module:sellerWallet_2024_03_01/model/TransferSchedule
32
+ * @class
33
+ * @param transferScheduleId {String} The unique identifier provided by Amazon to the scheduled transfer.
34
+ * @param transactionType {module:sellerWallet_2024_03_01/model/TransactionType}
35
+ * @param transactionDestinationAccount {module:sellerWallet_2024_03_01/model/TransactionAccount}
36
+ * @param transferScheduleStatus {module:sellerWallet_2024_03_01/model/TransferScheduleStatus}
37
+ * @param transferScheduleInformation {module:sellerWallet_2024_03_01/model/TransferScheduleInformation}
38
+ * @param transferScheduleFailures {Array.<module:sellerWallet_2024_03_01/model/TransferScheduleFailures>} A list of transfer schedule failures.
39
+ */
40
+ constructor (transferScheduleId, transactionType, transactionDestinationAccount, transferScheduleStatus, transferScheduleInformation, transferScheduleFailures) {
41
+ this.transferScheduleId = transferScheduleId
42
+ this.transactionType = transactionType
43
+ this.transactionDestinationAccount = transactionDestinationAccount
44
+ this.transferScheduleStatus = transferScheduleStatus
45
+ this.transferScheduleInformation = transferScheduleInformation
46
+ this.transferScheduleFailures = transferScheduleFailures
47
+ }
48
+
49
+ /**
50
+ * Constructs a <code>TransferSchedule</code> from a plain JavaScript object, optionally creating a new instance.
51
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
52
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
53
+ * @param {module:sellerWallet_2024_03_01/model/TransferSchedule} obj Optional instance to populate.
54
+ * @return {module:sellerWallet_2024_03_01/model/TransferSchedule} The populated <code>TransferSchedule</code> instance.
55
+ */
56
+ static constructFromObject (data, obj) {
57
+ if (data) {
58
+ switch (typeof data) {
59
+ case 'string':
60
+ obj = String(data)
61
+ break
62
+ case 'number':
63
+ obj = Number(data)
64
+ break
65
+ case 'boolean':
66
+ obj = Boolean(data)
67
+ break
68
+ }
69
+ obj = obj || new TransferSchedule()
70
+ if (data.hasOwnProperty('transferScheduleId')) { obj.transferScheduleId = ApiClient.convertToType(data.transferScheduleId, 'String') }
71
+ if (data.hasOwnProperty('transactionType')) { obj.transactionType = TransactionType.constructFromObject(data.transactionType) }
72
+ if (data.hasOwnProperty('transactionSourceAccount')) { obj.transactionSourceAccount = TransactionAccount.constructFromObject(data.transactionSourceAccount) }
73
+ if (data.hasOwnProperty('transactionDestinationAccount')) { obj.transactionDestinationAccount = TransactionAccount.constructFromObject(data.transactionDestinationAccount) }
74
+ if (data.hasOwnProperty('transferScheduleStatus')) { obj.transferScheduleStatus = TransferScheduleStatus.constructFromObject(data.transferScheduleStatus) }
75
+ if (data.hasOwnProperty('transferScheduleInformation')) { obj.transferScheduleInformation = TransferScheduleInformation.constructFromObject(data.transferScheduleInformation) }
76
+ if (data.hasOwnProperty('paymentPreference')) { obj.paymentPreference = PaymentPreference.constructFromObject(data.paymentPreference) }
77
+ if (data.hasOwnProperty('transferScheduleFailures')) { obj.transferScheduleFailures = ApiClient.convertToType(data.transferScheduleFailures, [TransferScheduleFailures]) }
78
+ }
79
+ return obj
80
+ }
81
+ }
82
+
83
+ /**
84
+ * The unique identifier provided by Amazon to the scheduled transfer.
85
+ * @member {String} transferScheduleId
86
+ */
87
+ TransferSchedule.prototype.transferScheduleId = undefined
88
+
89
+ /**
90
+ * @member {module:sellerWallet_2024_03_01/model/TransactionType} transactionType
91
+ */
92
+ TransferSchedule.prototype.transactionType = undefined
93
+
94
+ /**
95
+ * @member {module:sellerWallet_2024_03_01/model/TransactionAccount} transactionSourceAccount
96
+ */
97
+ TransferSchedule.prototype.transactionSourceAccount = undefined
98
+
99
+ /**
100
+ * @member {module:sellerWallet_2024_03_01/model/TransactionAccount} transactionDestinationAccount
101
+ */
102
+ TransferSchedule.prototype.transactionDestinationAccount = undefined
103
+
104
+ /**
105
+ * @member {module:sellerWallet_2024_03_01/model/TransferScheduleStatus} transferScheduleStatus
106
+ */
107
+ TransferSchedule.prototype.transferScheduleStatus = undefined
108
+
109
+ /**
110
+ * @member {module:sellerWallet_2024_03_01/model/TransferScheduleInformation} transferScheduleInformation
111
+ */
112
+ TransferSchedule.prototype.transferScheduleInformation = undefined
113
+
114
+ /**
115
+ * @member {module:sellerWallet_2024_03_01/model/PaymentPreference} paymentPreference
116
+ */
117
+ TransferSchedule.prototype.paymentPreference = undefined
118
+
119
+ /**
120
+ * A list of transfer schedule failures.
121
+ * @member {Array.<module:sellerWallet_2024_03_01/model/TransferScheduleFailures>} transferScheduleFailures
122
+ */
123
+ TransferSchedule.prototype.transferScheduleFailures = undefined
@@ -0,0 +1,73 @@
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 TransferScheduleFailures model module.
18
+ * @module sellerWallet_2024_03_01/model/TransferScheduleFailures
19
+ * @version 2024-03-01
20
+ */
21
+ export class TransferScheduleFailures {
22
+ /**
23
+ * Constructs a new <code>TransferScheduleFailures</code>.
24
+ * The time of and reason for the transfer schedule failure.
25
+ * @alias module:sellerWallet_2024_03_01/model/TransferScheduleFailures
26
+ * @class
27
+ * @param transferScheduleFailureDate {Date} The transfer schedule failure date.
28
+ * @param transferScheduleFailureReason {String} The reason listed for the failure of the transfer schedule.
29
+ */
30
+ constructor (transferScheduleFailureDate, transferScheduleFailureReason) {
31
+ this.transferScheduleFailureDate = transferScheduleFailureDate
32
+ this.transferScheduleFailureReason = transferScheduleFailureReason
33
+ }
34
+
35
+ /**
36
+ * Constructs a <code>TransferScheduleFailures</code> from a plain JavaScript object, optionally creating a new instance.
37
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
38
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
39
+ * @param {module:sellerWallet_2024_03_01/model/TransferScheduleFailures} obj Optional instance to populate.
40
+ * @return {module:sellerWallet_2024_03_01/model/TransferScheduleFailures} The populated <code>TransferScheduleFailures</code> instance.
41
+ */
42
+ static constructFromObject (data, obj) {
43
+ if (data) {
44
+ switch (typeof data) {
45
+ case 'string':
46
+ obj = String(data)
47
+ break
48
+ case 'number':
49
+ obj = Number(data)
50
+ break
51
+ case 'boolean':
52
+ obj = Boolean(data)
53
+ break
54
+ }
55
+ obj = obj || new TransferScheduleFailures()
56
+ if (data.hasOwnProperty('transferScheduleFailureDate')) { obj.transferScheduleFailureDate = ApiClient.convertToType(data.transferScheduleFailureDate, 'Date') }
57
+ if (data.hasOwnProperty('transferScheduleFailureReason')) { obj.transferScheduleFailureReason = ApiClient.convertToType(data.transferScheduleFailureReason, 'String') }
58
+ }
59
+ return obj
60
+ }
61
+ }
62
+
63
+ /**
64
+ * The transfer schedule failure date.
65
+ * @member {Date} transferScheduleFailureDate
66
+ */
67
+ TransferScheduleFailures.prototype.transferScheduleFailureDate = undefined
68
+
69
+ /**
70
+ * The reason listed for the failure of the transfer schedule.
71
+ * @member {String} transferScheduleFailureReason
72
+ */
73
+ TransferScheduleFailures.prototype.transferScheduleFailureReason = undefined