@amazon-sp-api-release/amazon-sp-api-sdk-js 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +2 -3
  2. package/helper/DefaultRateLimitMap.mjs +13 -1
  3. package/index.js +1 -0
  4. package/package.json +1 -1
  5. package/src/apluscontent_v2020_11_01/ApiClient.js +5 -1
  6. package/src/appintegrations_v2024_04_01/ApiClient.js +5 -1
  7. package/src/applications_v2023_11_30/ApiClient.js +5 -1
  8. package/src/awd_v2024_05_09/ApiClient.js +5 -1
  9. package/src/catalogitems_v2022_04_01/ApiClient.js +5 -1
  10. package/src/datakiosk_v2023_11_15/ApiClient.js +5 -1
  11. package/src/easyship_v2022_03_23/ApiClient.js +5 -1
  12. package/src/fbaeligibility_v1/ApiClient.js +5 -1
  13. package/src/fbainventory_v1/ApiClient.js +5 -1
  14. package/src/feeds_v2021_06_30/ApiClient.js +5 -1
  15. package/src/finances_v0/ApiClient.js +5 -1
  16. package/src/fulfillmentinbound_v0/ApiClient.js +5 -1
  17. package/src/fulfillmentinbound_v2024_03_20/ApiClient.js +5 -1
  18. package/src/fulfillmentoutbound_v2020_07_01/ApiClient.js +5 -1
  19. package/src/invoices_v2024_06_19/ApiClient.js +5 -1
  20. package/src/invoicing_v0/ApiClient.js +5 -1
  21. package/src/listingsitems_v2021_08_01/ApiClient.js +5 -1
  22. package/src/listingsitems_v2021_08_01/api/ListingsApi.js +6 -6
  23. package/src/listingsitems_v2021_08_01/model/FulfillmentAvailability.js +2 -2
  24. package/src/listingsitems_v2021_08_01/model/Issue.js +2 -2
  25. package/src/listingsitems_v2021_08_01/model/IssueExemption.js +1 -1
  26. package/src/listingsitems_v2021_08_01/model/ItemRelationship.js +1 -1
  27. package/src/listingsitems_v2021_08_01/model/ItemSearchResults.js +2 -2
  28. package/src/listingsitems_v2021_08_01/model/Pagination.js +1 -1
  29. package/src/listingsitems_v2021_08_01/model/PatchOperation.js +9 -3
  30. package/src/listingsrestrictions_v2021_08_01/ApiClient.js +5 -1
  31. package/src/merchantfulfillment_v0/ApiClient.js +5 -1
  32. package/src/messaging_v1/ApiClient.js +5 -1
  33. package/src/notifications_v1/ApiClient.js +5 -1
  34. package/src/orders_v0/ApiClient.js +5 -1
  35. package/src/orders_v0/api/OrdersV0Api.js +26 -26
  36. package/src/orders_v0/api/ShipmentApi.js +2 -2
  37. package/src/orders_v0/index.js +0 -7
  38. package/src/orders_v0/model/AmazonPrograms.js +3 -3
  39. package/src/orders_v0/model/OrderItem.js +0 -7
  40. package/src/orders_v0/model/OrdersList.js +1 -1
  41. package/src/orders_v0/model/PackageDetail.js +1 -1
  42. package/src/pricing_v0/ApiClient.js +5 -1
  43. package/src/pricing_v2022_05_01/ApiClient.js +5 -1
  44. package/src/pricing_v2022_05_01/model/CompetitiveSummaryRequest.js +2 -2
  45. package/src/pricing_v2022_05_01/model/CompetitiveSummaryResponseBody.js +2 -2
  46. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequest.js +3 -3
  47. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams.js +2 -2
  48. package/src/pricing_v2022_05_01/model/FeaturedOfferSegment.js +7 -1
  49. package/src/pricing_v2022_05_01/model/LowestPricedOffersInput.js +2 -2
  50. package/src/pricing_v2022_05_01/model/OfferIdentifier.js +2 -2
  51. package/src/pricing_v2022_05_01/model/ReferencePrice.js +2 -2
  52. package/src/productfees_v0/ApiClient.js +5 -1
  53. package/src/producttypedefinitions_v2020_09_01/ApiClient.js +5 -1
  54. package/src/replenishment_v2022_11_07/ApiClient.js +5 -1
  55. package/src/reports_v2021_06_30/ApiClient.js +5 -1
  56. package/src/sales_v1/ApiClient.js +5 -1
  57. package/src/sales_v1/api/SalesApi.js +4 -1
  58. package/src/sellerWallet_2024_03_01/ApiClient.js +827 -0
  59. package/src/sellerWallet_2024_03_01/api/AccountsApi.js +212 -0
  60. package/src/sellerWallet_2024_03_01/api/TransactionsApi.js +233 -0
  61. package/src/sellerWallet_2024_03_01/api/TransferPreviewApi.js +144 -0
  62. package/src/sellerWallet_2024_03_01/api/TransferScheduleApi.js +347 -0
  63. package/src/sellerWallet_2024_03_01/index.js +322 -0
  64. package/src/sellerWallet_2024_03_01/model/AccountHolderAddress.js +114 -0
  65. package/src/sellerWallet_2024_03_01/model/Balance.js +98 -0
  66. package/src/sellerWallet_2024_03_01/model/BalanceListing.js +63 -0
  67. package/src/sellerWallet_2024_03_01/model/BalanceType.js +54 -0
  68. package/src/sellerWallet_2024_03_01/model/BankAccount.js +148 -0
  69. package/src/sellerWallet_2024_03_01/model/BankAccountHolderStatus.js +54 -0
  70. package/src/sellerWallet_2024_03_01/model/BankAccountListing.js +65 -0
  71. package/src/sellerWallet_2024_03_01/model/BankAccountNumberFormat.js +42 -0
  72. package/src/sellerWallet_2024_03_01/model/BankAccountOwnershipType.js +48 -0
  73. package/src/sellerWallet_2024_03_01/model/BankNumberFormat.js +42 -0
  74. package/src/sellerWallet_2024_03_01/model/Currency.js +69 -0
  75. package/src/sellerWallet_2024_03_01/model/DeleteTransferSchedule.js +80 -0
  76. package/src/sellerWallet_2024_03_01/model/Error.js +80 -0
  77. package/src/sellerWallet_2024_03_01/model/ErrorList.js +65 -0
  78. package/src/sellerWallet_2024_03_01/model/Fee.js +91 -0
  79. package/src/sellerWallet_2024_03_01/model/FeeType.js +48 -0
  80. package/src/sellerWallet_2024_03_01/model/FxRateDetails.js +91 -0
  81. package/src/sellerWallet_2024_03_01/model/PaymentPreference.js +73 -0
  82. package/src/sellerWallet_2024_03_01/model/PaymentPreferencePaymentType.js +42 -0
  83. package/src/sellerWallet_2024_03_01/model/RateDirection.js +42 -0
  84. package/src/sellerWallet_2024_03_01/model/RecurringFrequency.js +54 -0
  85. package/src/sellerWallet_2024_03_01/model/ScheduleExpression.js +71 -0
  86. package/src/sellerWallet_2024_03_01/model/ScheduleExpressionType.js +42 -0
  87. package/src/sellerWallet_2024_03_01/model/ScheduleTransferType.js +36 -0
  88. package/src/sellerWallet_2024_03_01/model/Transaction.js +187 -0
  89. package/src/sellerWallet_2024_03_01/model/TransactionAccount.js +112 -0
  90. package/src/sellerWallet_2024_03_01/model/TransactionInitiationRequest.js +121 -0
  91. package/src/sellerWallet_2024_03_01/model/TransactionInstrumentDetails.js +73 -0
  92. package/src/sellerWallet_2024_03_01/model/TransactionListing.js +72 -0
  93. package/src/sellerWallet_2024_03_01/model/TransactionStatus.js +66 -0
  94. package/src/sellerWallet_2024_03_01/model/TransactionType.js +42 -0
  95. package/src/sellerWallet_2024_03_01/model/TransferRatePreview.js +91 -0
  96. package/src/sellerWallet_2024_03_01/model/TransferSchedule.js +123 -0
  97. package/src/sellerWallet_2024_03_01/model/TransferScheduleFailures.js +73 -0
  98. package/src/sellerWallet_2024_03_01/model/TransferScheduleInformation.js +83 -0
  99. package/src/sellerWallet_2024_03_01/model/TransferScheduleListing.js +72 -0
  100. package/src/sellerWallet_2024_03_01/model/TransferScheduleRequest.js +125 -0
  101. package/src/sellerWallet_2024_03_01/model/TransferScheduleStatus.js +54 -0
  102. package/src/sellers_v1/ApiClient.js +5 -1
  103. package/src/services_v1/ApiClient.js +5 -1
  104. package/src/shipping_v2/ApiClient.js +5 -1
  105. package/src/solicitations_v1/ApiClient.js +5 -1
  106. package/src/supplysources_v2020_07_01/ApiClient.js +5 -1
  107. package/src/tokens_v2021_03_01/ApiClient.js +5 -1
  108. package/src/transfers_v2024_06_01/ApiClient.js +5 -1
  109. package/src/uploads_v2020_11_01/ApiClient.js +5 -1
  110. package/src/vehicles_v2024_11_01/ApiClient.js +5 -1
  111. package/src/vendordfinventory_v1/ApiClient.js +5 -1
  112. package/src/vendordforders_v2021_12_28/ApiClient.js +5 -1
  113. package/src/vendordfpayments_v1/ApiClient.js +5 -1
  114. package/src/vendordfshipping_v2021_12_28/ApiClient.js +5 -1
  115. package/src/vendordftransactions_v2021_12_28/ApiClient.js +5 -1
  116. package/src/vendorinvoices_v1/ApiClient.js +5 -1
  117. package/src/vendororders_v1/ApiClient.js +5 -1
  118. package/src/vendorshipments_v1/ApiClient.js +5 -1
  119. package/src/vendorshipments_v1/api/VendorShippingApi.js +2 -2
  120. package/src/vendorshipments_v1/model/Shipment.js +3 -3
  121. package/src/vendortransactionstatus_v1/ApiClient.js +5 -1
  122. package/src/orders_v0/model/ExportInfo.js +0 -69
@@ -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 { PaymentPreferencePaymentType } from './PaymentPreferencePaymentType.js'
16
+
17
+ /**
18
+ * The PaymentPreference model module.
19
+ * @module sellerWallet_2024_03_01/model/PaymentPreference
20
+ * @version 2024-03-01
21
+ */
22
+ export class PaymentPreference {
23
+ /**
24
+ * Constructs a new <code>PaymentPreference</code>.
25
+ * The type of payment preference in which the transfer is being scheduled.
26
+ * @alias module:sellerWallet_2024_03_01/model/PaymentPreference
27
+ * @class
28
+ * @param paymentPreferencePaymentType {module:sellerWallet_2024_03_01/model/PaymentPreferencePaymentType}
29
+ * @param value {Number} A decimal number, such as an amount or FX rate.
30
+ */
31
+ constructor (paymentPreferencePaymentType, value) {
32
+ this.paymentPreferencePaymentType = paymentPreferencePaymentType
33
+ this.value = value
34
+ }
35
+
36
+ /**
37
+ * Constructs a <code>PaymentPreference</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/PaymentPreference} obj Optional instance to populate.
41
+ * @return {module:sellerWallet_2024_03_01/model/PaymentPreference} The populated <code>PaymentPreference</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 PaymentPreference()
57
+ if (data.hasOwnProperty('paymentPreferencePaymentType')) { obj.paymentPreferencePaymentType = PaymentPreferencePaymentType.constructFromObject(data.paymentPreferencePaymentType) }
58
+ if (data.hasOwnProperty('value')) { obj.value = ApiClient.convertToType(data.value, 'Number') }
59
+ }
60
+ return obj
61
+ }
62
+ }
63
+
64
+ /**
65
+ * @member {module:sellerWallet_2024_03_01/model/PaymentPreferencePaymentType} paymentPreferencePaymentType
66
+ */
67
+ PaymentPreference.prototype.paymentPreferencePaymentType = undefined
68
+
69
+ /**
70
+ * A decimal number, such as an amount or FX rate.
71
+ * @member {Number} value
72
+ */
73
+ PaymentPreference.prototype.value = 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 PaymentPreferencePaymentType.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class PaymentPreferencePaymentType {
22
+ /**
23
+ * value: "PERCENTAGE"
24
+ * @const
25
+ */
26
+ 'PERCENTAGE' = 'PERCENTAGE'
27
+
28
+ /**
29
+ * value: "AMOUNT"
30
+ * @const
31
+ */
32
+ 'AMOUNT' = 'AMOUNT'
33
+
34
+ /**
35
+ * Returns a <code>PaymentPreferencePaymentType</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/PaymentPreferencePaymentType} The enum <code>PaymentPreferencePaymentType</code> value.
38
+ */
39
+ static constructFromObject (object) {
40
+ return object
41
+ }
42
+ }
@@ -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 RateDirection.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class RateDirection {
22
+ /**
23
+ * value: "BUY"
24
+ * @const
25
+ */
26
+ 'BUY' = 'BUY'
27
+
28
+ /**
29
+ * value: "SELL"
30
+ * @const
31
+ */
32
+ 'SELL' = 'SELL'
33
+
34
+ /**
35
+ * Returns a <code>RateDirection</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/RateDirection} The enum <code>RateDirection</code> value.
38
+ */
39
+ static constructFromObject (object) {
40
+ return object
41
+ }
42
+ }
@@ -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 RecurringFrequency.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class RecurringFrequency {
22
+ /**
23
+ * value: "BIWEEKLY"
24
+ * @const
25
+ */
26
+ 'BIWEEKLY' = 'BIWEEKLY'
27
+
28
+ /**
29
+ * value: "DAILY"
30
+ * @const
31
+ */
32
+ 'DAILY' = 'DAILY'
33
+
34
+ /**
35
+ * value: "MONTHLY"
36
+ * @const
37
+ */
38
+ 'MONTHLY' = 'MONTHLY'
39
+
40
+ /**
41
+ * value: "WEEKLY"
42
+ * @const
43
+ */
44
+ 'WEEKLY' = 'WEEKLY'
45
+
46
+ /**
47
+ * Returns a <code>RecurringFrequency</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/RecurringFrequency} The enum <code>RecurringFrequency</code> value.
50
+ */
51
+ static constructFromObject (object) {
52
+ return object
53
+ }
54
+ }
@@ -0,0 +1,71 @@
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 { RecurringFrequency } from './RecurringFrequency.js'
16
+ import { ScheduleExpressionType } from './ScheduleExpressionType.js'
17
+
18
+ /**
19
+ * The ScheduleExpression model module.
20
+ * @module sellerWallet_2024_03_01/model/ScheduleExpression
21
+ * @version 2024-03-01
22
+ */
23
+ export class ScheduleExpression {
24
+ /**
25
+ * Constructs a new <code>ScheduleExpression</code>.
26
+ * The configuration of the schedule.
27
+ * @alias module:sellerWallet_2024_03_01/model/ScheduleExpression
28
+ * @class
29
+ * @param scheduleExpressionType {module:sellerWallet_2024_03_01/model/ScheduleExpressionType}
30
+ */
31
+ constructor (scheduleExpressionType) {
32
+ this.scheduleExpressionType = scheduleExpressionType
33
+ }
34
+
35
+ /**
36
+ * Constructs a <code>ScheduleExpression</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/ScheduleExpression} obj Optional instance to populate.
40
+ * @return {module:sellerWallet_2024_03_01/model/ScheduleExpression} The populated <code>ScheduleExpression</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 ScheduleExpression()
56
+ if (data.hasOwnProperty('scheduleExpressionType')) { obj.scheduleExpressionType = ScheduleExpressionType.constructFromObject(data.scheduleExpressionType) }
57
+ if (data.hasOwnProperty('recurringFrequency')) { obj.recurringFrequency = RecurringFrequency.constructFromObject(data.recurringFrequency) }
58
+ }
59
+ return obj
60
+ }
61
+ }
62
+
63
+ /**
64
+ * @member {module:sellerWallet_2024_03_01/model/ScheduleExpressionType} scheduleExpressionType
65
+ */
66
+ ScheduleExpression.prototype.scheduleExpressionType = undefined
67
+
68
+ /**
69
+ * @member {module:sellerWallet_2024_03_01/model/RecurringFrequency} recurringFrequency
70
+ */
71
+ ScheduleExpression.prototype.recurringFrequency = 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 ScheduleExpressionType.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class ScheduleExpressionType {
22
+ /**
23
+ * value: "RECURRING"
24
+ * @const
25
+ */
26
+ 'RECURRING' = 'RECURRING'
27
+
28
+ /**
29
+ * value: "ONE_TIME"
30
+ * @const
31
+ */
32
+ 'ONE_TIME' = 'ONE_TIME'
33
+
34
+ /**
35
+ * Returns a <code>ScheduleExpressionType</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/ScheduleExpressionType} The enum <code>ScheduleExpressionType</code> value.
38
+ */
39
+ static constructFromObject (object) {
40
+ return object
41
+ }
42
+ }
@@ -0,0 +1,36 @@
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 ScheduleTransferType.
18
+ * @enum {}
19
+ * @readonly
20
+ */
21
+ export class ScheduleTransferType {
22
+ /**
23
+ * value: "TIME_BASED"
24
+ * @const
25
+ */
26
+ 'TIME_BASED' = 'TIME_BASED'
27
+
28
+ /**
29
+ * Returns a <code>ScheduleTransferType</code> enum value from a Javascript object name.
30
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
31
+ * @return {module:sellerWallet_2024_03_01/model/ScheduleTransferType} The enum <code>ScheduleTransferType</code> value.
32
+ */
33
+ static constructFromObject (object) {
34
+ return object
35
+ }
36
+ }
@@ -0,0 +1,187 @@
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 { TransactionAccount } from './TransactionAccount.js'
17
+ import { TransactionStatus } from './TransactionStatus.js'
18
+ import { TransactionType } from './TransactionType.js'
19
+ import { TransferRatePreview } from './TransferRatePreview.js'
20
+
21
+ /**
22
+ * The Transaction model module.
23
+ * @module sellerWallet_2024_03_01/model/Transaction
24
+ * @version 2024-03-01
25
+ */
26
+ export class Transaction {
27
+ /**
28
+ * Constructs a new <code>Transaction</code>.
29
+ * The current transaction status and historical details related to it.
30
+ * @alias module:sellerWallet_2024_03_01/model/Transaction
31
+ * @class
32
+ * @param transactionId {String} The unique identifier provided by Amazon to the transaction.
33
+ * @param transactionType {module:sellerWallet_2024_03_01/model/TransactionType}
34
+ * @param transactionStatus {module:sellerWallet_2024_03_01/model/TransactionStatus}
35
+ * @param transactionRequestDate {Date} The date on which the transaction was initiated.
36
+ * @param lastUpdateDate {Date} The date of the most recent account balance update.
37
+ * @param transactionRequesterSource {String} The transaction initiation source. This value could be the Amazon portal or PISP name that the customer used to start the transaction.
38
+ * @param transactionDescription {String} The description provided by the requester in the transaction request at time of transaction initiation.
39
+ * @param transactionSourceAccount {module:sellerWallet_2024_03_01/model/TransactionAccount}
40
+ * @param transactionDestinationAccount {module:sellerWallet_2024_03_01/model/TransactionAccount}
41
+ * @param transactionRequestAmount {module:sellerWallet_2024_03_01/model/Currency}
42
+ * @param transferRateDetails {module:sellerWallet_2024_03_01/model/TransferRatePreview}
43
+ */
44
+ constructor (transactionId, transactionType, transactionStatus, transactionRequestDate, lastUpdateDate, transactionRequesterSource, transactionDescription, transactionSourceAccount, transactionDestinationAccount, transactionRequestAmount, transferRateDetails) {
45
+ this.transactionId = transactionId
46
+ this.transactionType = transactionType
47
+ this.transactionStatus = transactionStatus
48
+ this.transactionRequestDate = transactionRequestDate
49
+ this.lastUpdateDate = lastUpdateDate
50
+ this.transactionRequesterSource = transactionRequesterSource
51
+ this.transactionDescription = transactionDescription
52
+ this.transactionSourceAccount = transactionSourceAccount
53
+ this.transactionDestinationAccount = transactionDestinationAccount
54
+ this.transactionRequestAmount = transactionRequestAmount
55
+ this.transferRateDetails = transferRateDetails
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>Transaction</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:sellerWallet_2024_03_01/model/Transaction} obj Optional instance to populate.
63
+ * @return {module:sellerWallet_2024_03_01/model/Transaction} The populated <code>Transaction</code> instance.
64
+ */
65
+ static constructFromObject (data, obj) {
66
+ if (data) {
67
+ switch (typeof data) {
68
+ case 'string':
69
+ obj = String(data)
70
+ break
71
+ case 'number':
72
+ obj = Number(data)
73
+ break
74
+ case 'boolean':
75
+ obj = Boolean(data)
76
+ break
77
+ }
78
+ obj = obj || new Transaction()
79
+ if (data.hasOwnProperty('transactionId')) { obj.transactionId = ApiClient.convertToType(data.transactionId, 'String') }
80
+ if (data.hasOwnProperty('transactionType')) { obj.transactionType = TransactionType.constructFromObject(data.transactionType) }
81
+ if (data.hasOwnProperty('transactionStatus')) { obj.transactionStatus = TransactionStatus.constructFromObject(data.transactionStatus) }
82
+ if (data.hasOwnProperty('transactionRequestDate')) { obj.transactionRequestDate = ApiClient.convertToType(data.transactionRequestDate, 'Date') }
83
+ if (data.hasOwnProperty('expectedCompletionDate')) { obj.expectedCompletionDate = ApiClient.convertToType(data.expectedCompletionDate, 'Date') }
84
+ if (data.hasOwnProperty('transactionActualCompletionDate')) { obj.transactionActualCompletionDate = ApiClient.convertToType(data.transactionActualCompletionDate, 'Date') }
85
+ if (data.hasOwnProperty('lastUpdateDate')) { obj.lastUpdateDate = ApiClient.convertToType(data.lastUpdateDate, 'Date') }
86
+ if (data.hasOwnProperty('requesterName')) { obj.requesterName = ApiClient.convertToType(data.requesterName, 'String') }
87
+ if (data.hasOwnProperty('transactionRequesterSource')) { obj.transactionRequesterSource = ApiClient.convertToType(data.transactionRequesterSource, 'String') }
88
+ if (data.hasOwnProperty('transactionDescription')) { obj.transactionDescription = ApiClient.convertToType(data.transactionDescription, 'String') }
89
+ if (data.hasOwnProperty('transactionSourceAccount')) { obj.transactionSourceAccount = TransactionAccount.constructFromObject(data.transactionSourceAccount) }
90
+ if (data.hasOwnProperty('transactionDestinationAccount')) { obj.transactionDestinationAccount = TransactionAccount.constructFromObject(data.transactionDestinationAccount) }
91
+ if (data.hasOwnProperty('transactionRequestAmount')) { obj.transactionRequestAmount = Currency.constructFromObject(data.transactionRequestAmount) }
92
+ if (data.hasOwnProperty('transferRateDetails')) { obj.transferRateDetails = TransferRatePreview.constructFromObject(data.transferRateDetails) }
93
+ if (data.hasOwnProperty('transactionFinalAmount')) { obj.transactionFinalAmount = Currency.constructFromObject(data.transactionFinalAmount) }
94
+ if (data.hasOwnProperty('transactionFailureReason')) { obj.transactionFailureReason = ApiClient.convertToType(data.transactionFailureReason, 'String') }
95
+ }
96
+ return obj
97
+ }
98
+ }
99
+
100
+ /**
101
+ * The unique identifier provided by Amazon to the transaction.
102
+ * @member {String} transactionId
103
+ */
104
+ Transaction.prototype.transactionId = undefined
105
+
106
+ /**
107
+ * @member {module:sellerWallet_2024_03_01/model/TransactionType} transactionType
108
+ */
109
+ Transaction.prototype.transactionType = undefined
110
+
111
+ /**
112
+ * @member {module:sellerWallet_2024_03_01/model/TransactionStatus} transactionStatus
113
+ */
114
+ Transaction.prototype.transactionStatus = undefined
115
+
116
+ /**
117
+ * The date on which the transaction was initiated.
118
+ * @member {Date} transactionRequestDate
119
+ */
120
+ Transaction.prototype.transactionRequestDate = undefined
121
+
122
+ /**
123
+ * The expected completion date of the transaction.
124
+ * @member {Date} expectedCompletionDate
125
+ */
126
+ Transaction.prototype.expectedCompletionDate = undefined
127
+
128
+ /**
129
+ * The transaction's completion date.
130
+ * @member {Date} transactionActualCompletionDate
131
+ */
132
+ Transaction.prototype.transactionActualCompletionDate = undefined
133
+
134
+ /**
135
+ * The date of the most recent account balance update.
136
+ * @member {Date} lastUpdateDate
137
+ */
138
+ Transaction.prototype.lastUpdateDate = undefined
139
+
140
+ /**
141
+ * The Amazon Seller Wallet customer who requested the transaction.
142
+ * @member {String} requesterName
143
+ */
144
+ Transaction.prototype.requesterName = undefined
145
+
146
+ /**
147
+ * The transaction initiation source. This value could be the Amazon portal or PISP name that the customer used to start the transaction.
148
+ * @member {String} transactionRequesterSource
149
+ */
150
+ Transaction.prototype.transactionRequesterSource = undefined
151
+
152
+ /**
153
+ * The description provided by the requester in the transaction request at time of transaction initiation.
154
+ * @member {String} transactionDescription
155
+ */
156
+ Transaction.prototype.transactionDescription = undefined
157
+
158
+ /**
159
+ * @member {module:sellerWallet_2024_03_01/model/TransactionAccount} transactionSourceAccount
160
+ */
161
+ Transaction.prototype.transactionSourceAccount = undefined
162
+
163
+ /**
164
+ * @member {module:sellerWallet_2024_03_01/model/TransactionAccount} transactionDestinationAccount
165
+ */
166
+ Transaction.prototype.transactionDestinationAccount = undefined
167
+
168
+ /**
169
+ * @member {module:sellerWallet_2024_03_01/model/Currency} transactionRequestAmount
170
+ */
171
+ Transaction.prototype.transactionRequestAmount = undefined
172
+
173
+ /**
174
+ * @member {module:sellerWallet_2024_03_01/model/TransferRatePreview} transferRateDetails
175
+ */
176
+ Transaction.prototype.transferRateDetails = undefined
177
+
178
+ /**
179
+ * @member {module:sellerWallet_2024_03_01/model/Currency} transactionFinalAmount
180
+ */
181
+ Transaction.prototype.transactionFinalAmount = undefined
182
+
183
+ /**
184
+ * The reason the transaction failed, if applicable.
185
+ * @member {String} transactionFailureReason
186
+ */
187
+ Transaction.prototype.transactionFailureReason = undefined
@@ -0,0 +1,112 @@
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 { BankAccountNumberFormat } from './BankAccountNumberFormat.js'
16
+
17
+ /**
18
+ * The TransactionAccount model module.
19
+ * @module sellerWallet_2024_03_01/model/TransactionAccount
20
+ * @version 2024-03-01
21
+ */
22
+ export class TransactionAccount {
23
+ /**
24
+ * Constructs a new <code>TransactionAccount</code>.
25
+ * Details of the bank account involved in transaction.
26
+ * @alias module:sellerWallet_2024_03_01/model/TransactionAccount
27
+ * @class
28
+ * @param bankAccountHolderName {String} The account holder's name.
29
+ * @param bankName {String} The name of the bank.
30
+ * @param bankAccountNumberFormat {module:sellerWallet_2024_03_01/model/BankAccountNumberFormat}
31
+ * @param bankAccountCurrency {String} The currency code in ISO 4217 format.
32
+ */
33
+ constructor (bankAccountHolderName, bankName, bankAccountNumberFormat, bankAccountCurrency) {
34
+ this.bankAccountHolderName = bankAccountHolderName
35
+ this.bankName = bankName
36
+ this.bankAccountNumberFormat = bankAccountNumberFormat
37
+ this.bankAccountCurrency = bankAccountCurrency
38
+ }
39
+
40
+ /**
41
+ * Constructs a <code>TransactionAccount</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/TransactionAccount} obj Optional instance to populate.
45
+ * @return {module:sellerWallet_2024_03_01/model/TransactionAccount} The populated <code>TransactionAccount</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 TransactionAccount()
61
+ if (data.hasOwnProperty('accountId')) { obj.accountId = ApiClient.convertToType(data.accountId, 'String') }
62
+ if (data.hasOwnProperty('bankAccountHolderName')) { obj.bankAccountHolderName = ApiClient.convertToType(data.bankAccountHolderName, 'String') }
63
+ if (data.hasOwnProperty('bankName')) { obj.bankName = ApiClient.convertToType(data.bankName, 'String') }
64
+ if (data.hasOwnProperty('bankAccountNumberFormat')) { obj.bankAccountNumberFormat = BankAccountNumberFormat.constructFromObject(data.bankAccountNumberFormat) }
65
+ if (data.hasOwnProperty('bankAccountNumberTail')) { obj.bankAccountNumberTail = ApiClient.convertToType(data.bankAccountNumberTail, 'String') }
66
+ if (data.hasOwnProperty('bankAccountCountryCode')) { obj.bankAccountCountryCode = ApiClient.convertToType(data.bankAccountCountryCode, 'String') }
67
+ if (data.hasOwnProperty('bankAccountCurrency')) { obj.bankAccountCurrency = ApiClient.convertToType(data.bankAccountCurrency, 'String') }
68
+ }
69
+ return obj
70
+ }
71
+ }
72
+
73
+ /**
74
+ * The unique identifier provided by Amazon to identify the account.
75
+ * @member {String} accountId
76
+ */
77
+ TransactionAccount.prototype.accountId = undefined
78
+
79
+ /**
80
+ * The account holder's name.
81
+ * @member {String} bankAccountHolderName
82
+ */
83
+ TransactionAccount.prototype.bankAccountHolderName = undefined
84
+
85
+ /**
86
+ * The name of the bank.
87
+ * @member {String} bankName
88
+ */
89
+ TransactionAccount.prototype.bankName = undefined
90
+
91
+ /**
92
+ * @member {module:sellerWallet_2024_03_01/model/BankAccountNumberFormat} bankAccountNumberFormat
93
+ */
94
+ TransactionAccount.prototype.bankAccountNumberFormat = undefined
95
+
96
+ /**
97
+ * The last three digits of the bank account number.
98
+ * @member {String} bankAccountNumberTail
99
+ */
100
+ TransactionAccount.prototype.bankAccountNumberTail = undefined
101
+
102
+ /**
103
+ * The two-digit country code, in ISO 3166 format. This field is optional for `transactionSourceAccount`, but is mandatory for `transactionDestinationAccount`.
104
+ * @member {String} bankAccountCountryCode
105
+ */
106
+ TransactionAccount.prototype.bankAccountCountryCode = undefined
107
+
108
+ /**
109
+ * The currency code in ISO 4217 format.
110
+ * @member {String} bankAccountCurrency
111
+ */
112
+ TransactionAccount.prototype.bankAccountCurrency = undefined