@sp-api-sdk/seller-wallet-api-2024-03-01 1.5.1 → 1.5.2

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 (35) hide show
  1. package/dist/cjs/api-model/api/seller-wallet-api.js +5 -5
  2. package/dist/cjs/api-model/configuration.js +2 -2
  3. package/dist/cjs/api-model/models/balance-type.js +1 -1
  4. package/dist/cjs/api-model/models/bank-account-holder-status.js +1 -1
  5. package/dist/cjs/api-model/models/bank-account-number-format.js +1 -1
  6. package/dist/cjs/api-model/models/bank-account-ownership-type.js +1 -1
  7. package/dist/cjs/api-model/models/bank-number-format.js +1 -1
  8. package/dist/cjs/api-model/models/fee-type.js +1 -1
  9. package/dist/cjs/api-model/models/payee-entity-type.js +1 -1
  10. package/dist/cjs/api-model/models/payment-preference-payment-type.js +1 -1
  11. package/dist/cjs/api-model/models/rate-direction.js +1 -1
  12. package/dist/cjs/api-model/models/recurring-frequency.js +1 -1
  13. package/dist/cjs/api-model/models/schedule-expression-type.js +1 -1
  14. package/dist/cjs/api-model/models/schedule-transfer-type.js +1 -1
  15. package/dist/cjs/api-model/models/transaction-status.js +1 -1
  16. package/dist/cjs/api-model/models/transaction-type.js +1 -1
  17. package/dist/cjs/api-model/models/transfer-schedule-status.js +1 -1
  18. package/dist/es/api-model/api/seller-wallet-api.js +5 -5
  19. package/dist/es/api-model/configuration.js +2 -2
  20. package/dist/es/api-model/models/balance-type.js +1 -1
  21. package/dist/es/api-model/models/bank-account-holder-status.js +1 -1
  22. package/dist/es/api-model/models/bank-account-number-format.js +1 -1
  23. package/dist/es/api-model/models/bank-account-ownership-type.js +1 -1
  24. package/dist/es/api-model/models/bank-number-format.js +1 -1
  25. package/dist/es/api-model/models/fee-type.js +1 -1
  26. package/dist/es/api-model/models/payee-entity-type.js +1 -1
  27. package/dist/es/api-model/models/payment-preference-payment-type.js +1 -1
  28. package/dist/es/api-model/models/rate-direction.js +1 -1
  29. package/dist/es/api-model/models/recurring-frequency.js +1 -1
  30. package/dist/es/api-model/models/schedule-expression-type.js +1 -1
  31. package/dist/es/api-model/models/schedule-transfer-type.js +1 -1
  32. package/dist/es/api-model/models/transaction-status.js +1 -1
  33. package/dist/es/api-model/models/transaction-type.js +1 -1
  34. package/dist/es/api-model/models/transfer-schedule-status.js +1 -1
  35. package/package.json +4 -4
@@ -140,7 +140,7 @@ const SellerWalletApiAxiosParamCreator = function (configuration) {
140
140
  // verify required parameter 'marketplaceId' is not null or undefined
141
141
  (0, common_1.assertParamExists)('deleteScheduleTransaction', 'marketplaceId', marketplaceId);
142
142
  const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`
143
- .replace(`{${"transferScheduleId"}}`, encodeURIComponent(String(transferScheduleId)));
143
+ .replace('{transferScheduleId}', encodeURIComponent(String(transferScheduleId)));
144
144
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
145
145
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
146
146
  let baseOptions;
@@ -176,7 +176,7 @@ const SellerWalletApiAxiosParamCreator = function (configuration) {
176
176
  // verify required parameter 'marketplaceId' is not null or undefined
177
177
  (0, common_1.assertParamExists)('getAccount', 'marketplaceId', marketplaceId);
178
178
  const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}`
179
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
179
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
180
180
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
181
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
182
182
  let baseOptions;
@@ -212,7 +212,7 @@ const SellerWalletApiAxiosParamCreator = function (configuration) {
212
212
  // verify required parameter 'marketplaceId' is not null or undefined
213
213
  (0, common_1.assertParamExists)('getTransaction', 'marketplaceId', marketplaceId);
214
214
  const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions/{transactionId}`
215
- .replace(`{${"transactionId"}}`, encodeURIComponent(String(transactionId)));
215
+ .replace('{transactionId}', encodeURIComponent(String(transactionId)));
216
216
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
217
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
218
  let baseOptions;
@@ -310,7 +310,7 @@ const SellerWalletApiAxiosParamCreator = function (configuration) {
310
310
  // verify required parameter 'marketplaceId' is not null or undefined
311
311
  (0, common_1.assertParamExists)('getTransferSchedule', 'marketplaceId', marketplaceId);
312
312
  const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`
313
- .replace(`{${"transferScheduleId"}}`, encodeURIComponent(String(transferScheduleId)));
313
+ .replace('{transferScheduleId}', encodeURIComponent(String(transferScheduleId)));
314
314
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
315
315
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
316
316
  let baseOptions;
@@ -346,7 +346,7 @@ const SellerWalletApiAxiosParamCreator = function (configuration) {
346
346
  // verify required parameter 'marketplaceId' is not null or undefined
347
347
  (0, common_1.assertParamExists)('listAccountBalances', 'marketplaceId', marketplaceId);
348
348
  const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}/balance`
349
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
349
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
350
350
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
351
351
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
352
352
  let baseOptions;
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -21,5 +21,5 @@ exports.BalanceType = {
21
21
  Available: 'AVAILABLE',
22
22
  LockedIn: 'LOCKED_IN',
23
23
  LockedOut: 'LOCKED_OUT',
24
- Total: 'TOTAL'
24
+ Total: 'TOTAL',
25
25
  };
@@ -21,5 +21,5 @@ exports.BankAccountHolderStatus = {
21
21
  Active: 'ACTIVE',
22
22
  Inactive: 'INACTIVE',
23
23
  UnderReview: 'UNDER_REVIEW',
24
- VerificationFailed: 'VERIFICATION_FAILED'
24
+ VerificationFailed: 'VERIFICATION_FAILED',
25
25
  };
@@ -19,5 +19,5 @@ exports.BankAccountNumberFormat = void 0;
19
19
  */
20
20
  exports.BankAccountNumberFormat = {
21
21
  Iban: 'IBAN',
22
- Bban: 'BBAN'
22
+ Bban: 'BBAN',
23
23
  };
@@ -19,5 +19,5 @@ exports.BankAccountOwnershipType = void 0;
19
19
  */
20
20
  exports.BankAccountOwnershipType = {
21
21
  ThirdParty: 'THIRD_PARTY',
22
- Self: 'SELF'
22
+ Self: 'SELF',
23
23
  };
@@ -19,5 +19,5 @@ exports.BankNumberFormat = void 0;
19
19
  */
20
20
  exports.BankNumberFormat = {
21
21
  Bic: 'BIC',
22
- Basic: 'BASIC'
22
+ Basic: 'BASIC',
23
23
  };
@@ -20,5 +20,5 @@ exports.FeeType = void 0;
20
20
  exports.FeeType = {
21
21
  MiscellaneousFee: 'MISCELLANEOUS_FEE',
22
22
  Tax: 'TAX',
23
- TransactionFee: 'TRANSACTION_FEE'
23
+ TransactionFee: 'TRANSACTION_FEE',
24
24
  };
@@ -20,5 +20,5 @@ exports.PayeeEntityType = void 0;
20
20
  exports.PayeeEntityType = {
21
21
  Individual: 'INDIVIDUAL',
22
22
  Business: 'BUSINESS',
23
- TaxAuthority: 'TAX_AUTHORITY'
23
+ TaxAuthority: 'TAX_AUTHORITY',
24
24
  };
@@ -19,5 +19,5 @@ exports.PaymentPreferencePaymentType = void 0;
19
19
  */
20
20
  exports.PaymentPreferencePaymentType = {
21
21
  Percentage: 'PERCENTAGE',
22
- Amount: 'AMOUNT'
22
+ Amount: 'AMOUNT',
23
23
  };
@@ -19,5 +19,5 @@ exports.RateDirection = void 0;
19
19
  */
20
20
  exports.RateDirection = {
21
21
  Buy: 'BUY',
22
- Sell: 'SELL'
22
+ Sell: 'SELL',
23
23
  };
@@ -21,5 +21,5 @@ exports.RecurringFrequency = {
21
21
  Daily: 'DAILY',
22
22
  Weekly: 'WEEKLY',
23
23
  Biweekly: 'BIWEEKLY',
24
- Monthly: 'MONTHLY'
24
+ Monthly: 'MONTHLY',
25
25
  };
@@ -19,5 +19,5 @@ exports.ScheduleExpressionType = void 0;
19
19
  */
20
20
  exports.ScheduleExpressionType = {
21
21
  Recurring: 'RECURRING',
22
- OneTime: 'ONE_TIME'
22
+ OneTime: 'ONE_TIME',
23
23
  };
@@ -18,5 +18,5 @@ exports.ScheduleTransferType = void 0;
18
18
  * The type of schedule the transfer is on. Schedules based on time patterns use EventBridge.
19
19
  */
20
20
  exports.ScheduleTransferType = {
21
- TimeBased: 'TIME_BASED'
21
+ TimeBased: 'TIME_BASED',
22
22
  };
@@ -23,5 +23,5 @@ exports.TransactionStatus = {
23
23
  FailedCreditsApplied: 'FAILED_CREDITS_APPLIED',
24
24
  InProgress: 'IN_PROGRESS',
25
25
  PendingUserApproval: 'PENDING_USER_APPROVAL',
26
- Successful: 'SUCCESSFUL'
26
+ Successful: 'SUCCESSFUL',
27
27
  };
@@ -19,5 +19,5 @@ exports.TransactionType = void 0;
19
19
  */
20
20
  exports.TransactionType = {
21
21
  Credit: 'CREDIT',
22
- Debit: 'DEBIT'
22
+ Debit: 'DEBIT',
23
23
  };
@@ -21,5 +21,5 @@ exports.TransferScheduleStatus = {
21
21
  Enabled: 'ENABLED',
22
22
  Disabled: 'DISABLED',
23
23
  Expired: 'EXPIRED',
24
- Deleted: 'DELETED'
24
+ Deleted: 'DELETED',
25
25
  };
@@ -134,7 +134,7 @@ export const SellerWalletApiAxiosParamCreator = function (configuration) {
134
134
  // verify required parameter 'marketplaceId' is not null or undefined
135
135
  assertParamExists('deleteScheduleTransaction', 'marketplaceId', marketplaceId);
136
136
  const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`
137
- .replace(`{${"transferScheduleId"}}`, encodeURIComponent(String(transferScheduleId)));
137
+ .replace('{transferScheduleId}', encodeURIComponent(String(transferScheduleId)));
138
138
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
139
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
140
  let baseOptions;
@@ -170,7 +170,7 @@ export const SellerWalletApiAxiosParamCreator = function (configuration) {
170
170
  // verify required parameter 'marketplaceId' is not null or undefined
171
171
  assertParamExists('getAccount', 'marketplaceId', marketplaceId);
172
172
  const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}`
173
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
173
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
174
174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
175
175
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
176
176
  let baseOptions;
@@ -206,7 +206,7 @@ export const SellerWalletApiAxiosParamCreator = function (configuration) {
206
206
  // verify required parameter 'marketplaceId' is not null or undefined
207
207
  assertParamExists('getTransaction', 'marketplaceId', marketplaceId);
208
208
  const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions/{transactionId}`
209
- .replace(`{${"transactionId"}}`, encodeURIComponent(String(transactionId)));
209
+ .replace('{transactionId}', encodeURIComponent(String(transactionId)));
210
210
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
211
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
212
  let baseOptions;
@@ -304,7 +304,7 @@ export const SellerWalletApiAxiosParamCreator = function (configuration) {
304
304
  // verify required parameter 'marketplaceId' is not null or undefined
305
305
  assertParamExists('getTransferSchedule', 'marketplaceId', marketplaceId);
306
306
  const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`
307
- .replace(`{${"transferScheduleId"}}`, encodeURIComponent(String(transferScheduleId)));
307
+ .replace('{transferScheduleId}', encodeURIComponent(String(transferScheduleId)));
308
308
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
309
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
310
310
  let baseOptions;
@@ -340,7 +340,7 @@ export const SellerWalletApiAxiosParamCreator = function (configuration) {
340
340
  // verify required parameter 'marketplaceId' is not null or undefined
341
341
  assertParamExists('listAccountBalances', 'marketplaceId', marketplaceId);
342
342
  const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}/balance`
343
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
343
+ .replace('{accountId}', encodeURIComponent(String(accountId)));
344
344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
345
345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
346
346
  let baseOptions;
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -18,5 +18,5 @@ export const BalanceType = {
18
18
  Available: 'AVAILABLE',
19
19
  LockedIn: 'LOCKED_IN',
20
20
  LockedOut: 'LOCKED_OUT',
21
- Total: 'TOTAL'
21
+ Total: 'TOTAL',
22
22
  };
@@ -18,5 +18,5 @@ export const BankAccountHolderStatus = {
18
18
  Active: 'ACTIVE',
19
19
  Inactive: 'INACTIVE',
20
20
  UnderReview: 'UNDER_REVIEW',
21
- VerificationFailed: 'VERIFICATION_FAILED'
21
+ VerificationFailed: 'VERIFICATION_FAILED',
22
22
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const BankAccountNumberFormat = {
18
18
  Iban: 'IBAN',
19
- Bban: 'BBAN'
19
+ Bban: 'BBAN',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const BankAccountOwnershipType = {
18
18
  ThirdParty: 'THIRD_PARTY',
19
- Self: 'SELF'
19
+ Self: 'SELF',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const BankNumberFormat = {
18
18
  Bic: 'BIC',
19
- Basic: 'BASIC'
19
+ Basic: 'BASIC',
20
20
  };
@@ -17,5 +17,5 @@
17
17
  export const FeeType = {
18
18
  MiscellaneousFee: 'MISCELLANEOUS_FEE',
19
19
  Tax: 'TAX',
20
- TransactionFee: 'TRANSACTION_FEE'
20
+ TransactionFee: 'TRANSACTION_FEE',
21
21
  };
@@ -17,5 +17,5 @@
17
17
  export const PayeeEntityType = {
18
18
  Individual: 'INDIVIDUAL',
19
19
  Business: 'BUSINESS',
20
- TaxAuthority: 'TAX_AUTHORITY'
20
+ TaxAuthority: 'TAX_AUTHORITY',
21
21
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const PaymentPreferencePaymentType = {
18
18
  Percentage: 'PERCENTAGE',
19
- Amount: 'AMOUNT'
19
+ Amount: 'AMOUNT',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const RateDirection = {
18
18
  Buy: 'BUY',
19
- Sell: 'SELL'
19
+ Sell: 'SELL',
20
20
  };
@@ -18,5 +18,5 @@ export const RecurringFrequency = {
18
18
  Daily: 'DAILY',
19
19
  Weekly: 'WEEKLY',
20
20
  Biweekly: 'BIWEEKLY',
21
- Monthly: 'MONTHLY'
21
+ Monthly: 'MONTHLY',
22
22
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const ScheduleExpressionType = {
18
18
  Recurring: 'RECURRING',
19
- OneTime: 'ONE_TIME'
19
+ OneTime: 'ONE_TIME',
20
20
  };
@@ -15,5 +15,5 @@
15
15
  * The type of schedule the transfer is on. Schedules based on time patterns use EventBridge.
16
16
  */
17
17
  export const ScheduleTransferType = {
18
- TimeBased: 'TIME_BASED'
18
+ TimeBased: 'TIME_BASED',
19
19
  };
@@ -20,5 +20,5 @@ export const TransactionStatus = {
20
20
  FailedCreditsApplied: 'FAILED_CREDITS_APPLIED',
21
21
  InProgress: 'IN_PROGRESS',
22
22
  PendingUserApproval: 'PENDING_USER_APPROVAL',
23
- Successful: 'SUCCESSFUL'
23
+ Successful: 'SUCCESSFUL',
24
24
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const TransactionType = {
18
18
  Credit: 'CREDIT',
19
- Debit: 'DEBIT'
19
+ Debit: 'DEBIT',
20
20
  };
@@ -18,5 +18,5 @@ export const TransferScheduleStatus = {
18
18
  Enabled: 'ENABLED',
19
19
  Disabled: 'DISABLED',
20
20
  Expired: 'EXPIRED',
21
- Deleted: 'DELETED'
21
+ Deleted: 'DELETED',
22
22
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/seller-wallet-api-2024-03-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "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.",
5
- "version": "1.5.1",
5
+ "version": "1.5.2",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.30",
22
- "axios": "^1.13.6"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "seller wallet api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }