@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,308 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
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 { AmazonPayContext } from './AmazonPayContext.js'
16
+ import { BusinessContext } from './BusinessContext.js'
17
+ import { DeferredContext } from './DeferredContext.js'
18
+ import { PaymentsContext } from './PaymentsContext.js'
19
+ import { ProductContext } from './ProductContext.js'
20
+ import { TimeRangeContext } from './TimeRangeContext.js'
21
+
22
+ /**
23
+ * The Context model module.
24
+ * @module finances_2024_06_19/model/Context
25
+ * @version 2024-06-19
26
+ */
27
+ export class Context {
28
+ /**
29
+ * Constructs a new <code>Context</code>.
30
+ * Additional Information about the item.
31
+ * @alias module:finances_2024_06_19/model/Context
32
+ * @class
33
+ * @implements module:finances_2024_06_19/model/AmazonPayContext
34
+ * @implements module:finances_2024_06_19/model/ProductContext
35
+ * @implements module:finances_2024_06_19/model/PaymentsContext
36
+ * @implements module:finances_2024_06_19/model/DeferredContext
37
+ * @implements module:finances_2024_06_19/model/BusinessContext
38
+ * @implements module:finances_2024_06_19/model/TimeRangeContext
39
+ * @param contextType {String}
40
+ */
41
+ constructor (contextType) {
42
+ AmazonPayContext.call(this)
43
+ ProductContext.call(this)
44
+ PaymentsContext.call(this)
45
+ DeferredContext.call(this)
46
+ BusinessContext.call(this)
47
+ TimeRangeContext.call(this)
48
+ this.contextType = contextType
49
+ }
50
+
51
+ /**
52
+ * Constructs a <code>Context</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:finances_2024_06_19/model/Context} obj Optional instance to populate.
56
+ * @return {module:finances_2024_06_19/model/Context} The populated <code>Context</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 Context()
72
+ AmazonPayContext.constructFromObject(data, obj)
73
+ ProductContext.constructFromObject(data, obj)
74
+ PaymentsContext.constructFromObject(data, obj)
75
+ DeferredContext.constructFromObject(data, obj)
76
+ BusinessContext.constructFromObject(data, obj)
77
+ TimeRangeContext.constructFromObject(data, obj)
78
+ if (data.hasOwnProperty('storeName')) { obj.storeName = ApiClient.convertToType(data.storeName, 'String') }
79
+ if (data.hasOwnProperty('orderType')) { obj.orderType = ApiClient.convertToType(data.orderType, 'String') }
80
+ if (data.hasOwnProperty('channel')) { obj.channel = ApiClient.convertToType(data.channel, 'String') }
81
+ if (data.hasOwnProperty('asin')) { obj.asin = ApiClient.convertToType(data.asin, 'String') }
82
+ if (data.hasOwnProperty('sku')) { obj.sku = ApiClient.convertToType(data.sku, 'String') }
83
+ if (data.hasOwnProperty('quantityShipped')) { obj.quantityShipped = ApiClient.convertToType(data.quantityShipped, 'Number') }
84
+ if (data.hasOwnProperty('fulfillmentNetwork')) { obj.fulfillmentNetwork = ApiClient.convertToType(data.fulfillmentNetwork, 'String') }
85
+ if (data.hasOwnProperty('paymentType')) { obj.paymentType = ApiClient.convertToType(data.paymentType, 'String') }
86
+ if (data.hasOwnProperty('paymentMethod')) { obj.paymentMethod = ApiClient.convertToType(data.paymentMethod, 'String') }
87
+ if (data.hasOwnProperty('paymentReference')) { obj.paymentReference = ApiClient.convertToType(data.paymentReference, 'String') }
88
+ if (data.hasOwnProperty('paymentDate')) { obj.paymentDate = ApiClient.convertToType(data.paymentDate, 'Date') }
89
+ if (data.hasOwnProperty('deferralReason')) { obj.deferralReason = ApiClient.convertToType(data.deferralReason, 'String') }
90
+ if (data.hasOwnProperty('maturityDate')) { obj.maturityDate = ApiClient.convertToType(data.maturityDate, 'Date') }
91
+ if (data.hasOwnProperty('startTime')) { obj.startTime = ApiClient.convertToType(data.startTime, 'Date') }
92
+ if (data.hasOwnProperty('endTime')) { obj.endTime = ApiClient.convertToType(data.endTime, 'Date') }
93
+ if (data.hasOwnProperty('contextType')) { obj.contextType = ApiClient.convertToType(data.contextType, 'String') }
94
+ }
95
+ return obj
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Allowed values for the <code>storeName</code> property.
101
+ * @enum {String}
102
+ * @readonly
103
+ */
104
+ Context.StoreNameEnum = {
105
+
106
+ /**
107
+ * value: "AMAZON_HAUL"
108
+ * @const
109
+ */
110
+ AMAZON_HAUL: 'AMAZON_HAUL'
111
+ }
112
+
113
+ /**
114
+ * The store name associated with the transaction.
115
+ * @member {module:finances_2024_06_19/model/Context.StoreNameEnum} storeName
116
+ */
117
+ Context.prototype.storeName = undefined
118
+
119
+ /**
120
+ * Order type of the transaction.
121
+ * @member {String} orderType
122
+ */
123
+ Context.prototype.orderType = undefined
124
+
125
+ /**
126
+ * Channel details of related transaction.
127
+ * @member {String} channel
128
+ */
129
+ Context.prototype.channel = undefined
130
+
131
+ /**
132
+ * Amazon Standard Identification Number (ASIN) of the item.
133
+ * @member {String} asin
134
+ */
135
+ Context.prototype.asin = undefined
136
+
137
+ /**
138
+ * Stock keeping unit (SKU) of the item.
139
+ * @member {String} sku
140
+ */
141
+ Context.prototype.sku = undefined
142
+
143
+ /**
144
+ * Quantity of the item shipped.
145
+ * @member {Number} quantityShipped
146
+ */
147
+ Context.prototype.quantityShipped = undefined
148
+
149
+ /**
150
+ * Fulfillment network of the item.
151
+ * @member {String} fulfillmentNetwork
152
+ */
153
+ Context.prototype.fulfillmentNetwork = undefined
154
+
155
+ /**
156
+ * Type of payment made.
157
+ * @member {String} paymentType
158
+ */
159
+ Context.prototype.paymentType = undefined
160
+
161
+ /**
162
+ * Method of payment made.
163
+ * @member {String} paymentMethod
164
+ */
165
+ Context.prototype.paymentMethod = undefined
166
+
167
+ /**
168
+ * Reference number of payment made.
169
+ * @member {String} paymentReference
170
+ */
171
+ Context.prototype.paymentReference = undefined
172
+
173
+ /**
174
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
175
+ * @member {Date} paymentDate
176
+ */
177
+ Context.prototype.paymentDate = undefined
178
+
179
+ /**
180
+ * The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
181
+ * @member {String} deferralReason
182
+ */
183
+ Context.prototype.deferralReason = undefined
184
+
185
+ /**
186
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
187
+ * @member {Date} maturityDate
188
+ */
189
+ Context.prototype.maturityDate = undefined
190
+
191
+ /**
192
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
193
+ * @member {Date} startTime
194
+ */
195
+ Context.prototype.startTime = undefined
196
+
197
+ /**
198
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
199
+ * @member {Date} endTime
200
+ */
201
+ Context.prototype.endTime = undefined
202
+
203
+ /**
204
+ * @member {String} contextType
205
+ */
206
+ Context.prototype.contextType = undefined
207
+
208
+ // Implement AmazonPayContext interface:
209
+ /**
210
+ * Store name related to transaction.
211
+ * @member {String} storeName
212
+ */
213
+ AmazonPayContext.prototype.storeName = undefined
214
+
215
+ /**
216
+ * Order type of the transaction.
217
+ * @member {String} orderType
218
+ */
219
+ AmazonPayContext.prototype.orderType = undefined
220
+
221
+ /**
222
+ * Channel details of related transaction.
223
+ * @member {String} channel
224
+ */
225
+ AmazonPayContext.prototype.channel = undefined
226
+
227
+ // Implement ProductContext interface:
228
+ /**
229
+ * Amazon Standard Identification Number (ASIN) of the item.
230
+ * @member {String} asin
231
+ */
232
+ ProductContext.prototype.asin = undefined
233
+
234
+ /**
235
+ * Stock keeping unit (SKU) of the item.
236
+ * @member {String} sku
237
+ */
238
+ ProductContext.prototype.sku = undefined
239
+
240
+ /**
241
+ * Quantity of the item shipped.
242
+ * @member {Number} quantityShipped
243
+ */
244
+ ProductContext.prototype.quantityShipped = undefined
245
+
246
+ /**
247
+ * Fulfillment network of the item.
248
+ * @member {String} fulfillmentNetwork
249
+ */
250
+ ProductContext.prototype.fulfillmentNetwork = undefined
251
+
252
+ // Implement PaymentsContext interface:
253
+ /**
254
+ * Type of payment made.
255
+ * @member {String} paymentType
256
+ */
257
+ PaymentsContext.prototype.paymentType = undefined
258
+
259
+ /**
260
+ * Method of payment made.
261
+ * @member {String} paymentMethod
262
+ */
263
+ PaymentsContext.prototype.paymentMethod = undefined
264
+
265
+ /**
266
+ * Reference number of payment made.
267
+ * @member {String} paymentReference
268
+ */
269
+ PaymentsContext.prototype.paymentReference = undefined
270
+
271
+ /**
272
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
273
+ * @member {Date} paymentDate
274
+ */
275
+ PaymentsContext.prototype.paymentDate = undefined
276
+
277
+ // Implement DeferredContext interface:
278
+ /**
279
+ * The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
280
+ * @member {String} deferralReason
281
+ */
282
+ DeferredContext.prototype.deferralReason = undefined
283
+
284
+ /**
285
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
286
+ * @member {Date} maturityDate
287
+ */
288
+ DeferredContext.prototype.maturityDate = undefined
289
+
290
+ // Implement BusinessContext interface:
291
+ /**
292
+ * The store name associated with the transaction.
293
+ * @member {module:finances_2024_06_19/model/BusinessContext.StoreNameEnum} storeName
294
+ */
295
+ BusinessContext.prototype.storeName = undefined
296
+
297
+ // Implement TimeRangeContext interface:
298
+ /**
299
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
300
+ * @member {Date} startTime
301
+ */
302
+ TimeRangeContext.prototype.startTime = undefined
303
+
304
+ /**
305
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
306
+ * @member {Date} endTime
307
+ */
308
+ TimeRangeContext.prototype.endTime = undefined
@@ -0,0 +1,69 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
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 Currency model module.
18
+ * @module finances_2024_06_19/model/Currency
19
+ * @version 2024-06-19
20
+ */
21
+ export class Currency {
22
+ /**
23
+ * Constructs a new <code>Currency</code>.
24
+ * A currency type and amount.
25
+ * @alias module:finances_2024_06_19/model/Currency
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>Currency</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/Currency} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/Currency} The populated <code>Currency</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new Currency()
52
+ if (data.hasOwnProperty('currencyCode')) { obj.currencyCode = ApiClient.convertToType(data.currencyCode, 'String') }
53
+ if (data.hasOwnProperty('currencyAmount')) { obj.currencyAmount = ApiClient.convertToType(data.currencyAmount, 'Number') }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * The three-digit currency code in ISO 4217 format.
61
+ * @member {String} currencyCode
62
+ */
63
+ Currency.prototype.currencyCode = undefined
64
+
65
+ /**
66
+ * Fields with a schema type of BigDecimal are a signed decimal number (for example CurrencyAmount).
67
+ * @member {Number} currencyAmount
68
+ */
69
+ Currency.prototype.currencyAmount = undefined
@@ -0,0 +1,69 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
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 DeferredContext model module.
18
+ * @module finances_2024_06_19/model/DeferredContext
19
+ * @version 2024-06-19
20
+ */
21
+ export class DeferredContext {
22
+ /**
23
+ * Constructs a new <code>DeferredContext</code>.
24
+ * Additional information related to Deferred transactions.
25
+ * @alias module:finances_2024_06_19/model/DeferredContext
26
+ * @class
27
+ */
28
+ constructor () {
29
+ }
30
+
31
+ /**
32
+ * Constructs a <code>DeferredContext</code> from a plain JavaScript object, optionally creating a new instance.
33
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
35
+ * @param {module:finances_2024_06_19/model/DeferredContext} obj Optional instance to populate.
36
+ * @return {module:finances_2024_06_19/model/DeferredContext} The populated <code>DeferredContext</code> instance.
37
+ */
38
+ static constructFromObject (data, obj) {
39
+ if (data) {
40
+ switch (typeof data) {
41
+ case 'string':
42
+ obj = String(data)
43
+ break
44
+ case 'number':
45
+ obj = Number(data)
46
+ break
47
+ case 'boolean':
48
+ obj = Boolean(data)
49
+ break
50
+ }
51
+ obj = obj || new DeferredContext()
52
+ if (data.hasOwnProperty('deferralReason')) { obj.deferralReason = ApiClient.convertToType(data.deferralReason, 'String') }
53
+ if (data.hasOwnProperty('maturityDate')) { obj.maturityDate = ApiClient.convertToType(data.maturityDate, 'Date') }
54
+ }
55
+ return obj
56
+ }
57
+ }
58
+
59
+ /**
60
+ * The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
61
+ * @member {String} deferralReason
62
+ */
63
+ DeferredContext.prototype.deferralReason = undefined
64
+
65
+ /**
66
+ * Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
67
+ * @member {Date} maturityDate
68
+ */
69
+ DeferredContext.prototype.maturityDate = undefined
@@ -0,0 +1,80 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
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 Error model module.
18
+ * @module finances_2024_06_19/model/Error
19
+ * @version 2024-06-19
20
+ */
21
+ export class Error {
22
+ /**
23
+ * Constructs a new <code>Error</code>.
24
+ * Error response returned when the request is unsuccessful.
25
+ * @alias module:finances_2024_06_19/model/Error
26
+ * @class
27
+ * @param code {String} An error code that identifies the type of error that occurred.
28
+ * @param message {String} A message that describes the error condition.
29
+ */
30
+ constructor (code, message) {
31
+ this.code = code
32
+ this.message = message
33
+ }
34
+
35
+ /**
36
+ * Constructs a <code>Error</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:finances_2024_06_19/model/Error} obj Optional instance to populate.
40
+ * @return {module:finances_2024_06_19/model/Error} The populated <code>Error</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 Error()
56
+ if (data.hasOwnProperty('code')) { obj.code = ApiClient.convertToType(data.code, 'String') }
57
+ if (data.hasOwnProperty('message')) { obj.message = ApiClient.convertToType(data.message, 'String') }
58
+ if (data.hasOwnProperty('details')) { obj.details = ApiClient.convertToType(data.details, 'String') }
59
+ }
60
+ return obj
61
+ }
62
+ }
63
+
64
+ /**
65
+ * An error code that identifies the type of error that occurred.
66
+ * @member {String} code
67
+ */
68
+ Error.prototype.code = undefined
69
+
70
+ /**
71
+ * A message that describes the error condition.
72
+ * @member {String} message
73
+ */
74
+ Error.prototype.message = undefined
75
+
76
+ /**
77
+ * Additional details that can help the caller understand or fix the issue.
78
+ * @member {String} details
79
+ */
80
+ Error.prototype.details = undefined
@@ -0,0 +1,65 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
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 { Error } from './Error.js'
16
+
17
+ /**
18
+ * The ErrorList model module.
19
+ * @module finances_2024_06_19/model/ErrorList
20
+ * @version 2024-06-19
21
+ */
22
+ export class ErrorList {
23
+ /**
24
+ * Constructs a new <code>ErrorList</code>.
25
+ * A list of error responses returned when a request is unsuccessful.
26
+ * @alias module:finances_2024_06_19/model/ErrorList
27
+ * @class
28
+ * @param errors {Array.<module:finances_2024_06_19/model/Error>} Error response returned when the request is unsuccessful.
29
+ */
30
+ constructor (errors) {
31
+ this.errors = errors
32
+ }
33
+
34
+ /**
35
+ * Constructs a <code>ErrorList</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:finances_2024_06_19/model/ErrorList} obj Optional instance to populate.
39
+ * @return {module:finances_2024_06_19/model/ErrorList} The populated <code>ErrorList</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 ErrorList()
55
+ if (data.hasOwnProperty('errors')) { obj.errors = ApiClient.convertToType(data.errors, [Error]) }
56
+ }
57
+ return obj
58
+ }
59
+ }
60
+
61
+ /**
62
+ * Error response returned when the request is unsuccessful.
63
+ * @member {Array.<module:finances_2024_06_19/model/Error>} errors
64
+ */
65
+ ErrorList.prototype.errors = undefined
@@ -0,0 +1,93 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
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 { Breakdown } from './Breakdown.js'
16
+ import { Context } from './Context.js'
17
+ import { Currency } from './Currency.js'
18
+ import { ItemRelatedIdentifier } from './ItemRelatedIdentifier.js'
19
+
20
+ /**
21
+ * The Item model module.
22
+ * @module finances_2024_06_19/model/Item
23
+ * @version 2024-06-19
24
+ */
25
+ export class Item {
26
+ /**
27
+ * Constructs a new <code>Item</code>.
28
+ * Additional information about the items in Transaction.
29
+ * @alias module:finances_2024_06_19/model/Item
30
+ * @class
31
+ */
32
+ constructor () {
33
+ }
34
+
35
+ /**
36
+ * Constructs a <code>Item</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:finances_2024_06_19/model/Item} obj Optional instance to populate.
40
+ * @return {module:finances_2024_06_19/model/Item} The populated <code>Item</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 Item()
56
+ if (data.hasOwnProperty('description')) { obj.description = ApiClient.convertToType(data.description, 'String') }
57
+ if (data.hasOwnProperty('relatedIdentifiers')) { obj.relatedIdentifiers = ApiClient.convertToType(data.relatedIdentifiers, [ItemRelatedIdentifier]) }
58
+ if (data.hasOwnProperty('totalAmount')) { obj.totalAmount = Currency.constructFromObject(data.totalAmount) }
59
+ if (data.hasOwnProperty('breakdowns')) { obj.breakdowns = ApiClient.convertToType(data.breakdowns, [Breakdown]) }
60
+ if (data.hasOwnProperty('contexts')) { obj.contexts = ApiClient.convertToType(data.contexts, [Context]) }
61
+ }
62
+ return obj
63
+ }
64
+ }
65
+
66
+ /**
67
+ * Description of items in the transaction
68
+ * @member {String} description
69
+ */
70
+ Item.prototype.description = undefined
71
+
72
+ /**
73
+ * Related Business identifiers of the item in Transaction.
74
+ * @member {Array.<module:finances_2024_06_19/model/ItemRelatedIdentifier>} relatedIdentifiers
75
+ */
76
+ Item.prototype.relatedIdentifiers = undefined
77
+
78
+ /**
79
+ * @member {module:finances_2024_06_19/model/Currency} totalAmount
80
+ */
81
+ Item.prototype.totalAmount = undefined
82
+
83
+ /**
84
+ * A list of breakdowns that detail how the total amount is calculated for the transaction.
85
+ * @member {Array.<module:finances_2024_06_19/model/Breakdown>} breakdowns
86
+ */
87
+ Item.prototype.breakdowns = undefined
88
+
89
+ /**
90
+ * List of additional Information about the item.
91
+ * @member {Array.<module:finances_2024_06_19/model/Context>} contexts
92
+ */
93
+ Item.prototype.contexts = undefined