@sp-api-sdk/finances-transfers-api-2024-06-01 4.0.16 → 4.0.17

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.
@@ -184,5 +184,5 @@ exports.FinancesTransfersApi = FinancesTransfersApi;
184
184
  exports.GetPaymentMethodsPaymentMethodTypesEnum = {
185
185
  BankAccount: 'BANK_ACCOUNT',
186
186
  Card: 'CARD',
187
- SellerWallet: 'SELLER_WALLET'
187
+ SellerWallet: 'SELLER_WALLET',
188
188
  };
@@ -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;
@@ -18,5 +18,5 @@ exports.AssignmentType = void 0;
18
18
  * The default payment method type.
19
19
  */
20
20
  exports.AssignmentType = {
21
- DefaultDepositMethod: 'DEFAULT_DEPOSIT_METHOD'
21
+ DefaultDepositMethod: 'DEFAULT_DEPOSIT_METHOD',
22
22
  };
@@ -20,5 +20,5 @@ exports.PaymentMethodType = void 0;
20
20
  exports.PaymentMethodType = {
21
21
  BankAccount: 'BANK_ACCOUNT',
22
22
  Card: 'CARD',
23
- SellerWallet: 'SELLER_WALLET'
23
+ SellerWallet: 'SELLER_WALLET',
24
24
  };
@@ -174,5 +174,5 @@ export class FinancesTransfersApi extends BaseAPI {
174
174
  export const GetPaymentMethodsPaymentMethodTypesEnum = {
175
175
  BankAccount: 'BANK_ACCOUNT',
176
176
  Card: 'CARD',
177
- SellerWallet: 'SELLER_WALLET'
177
+ SellerWallet: 'SELLER_WALLET',
178
178
  };
@@ -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
  }
@@ -15,5 +15,5 @@
15
15
  * The default payment method type.
16
16
  */
17
17
  export const AssignmentType = {
18
- DefaultDepositMethod: 'DEFAULT_DEPOSIT_METHOD'
18
+ DefaultDepositMethod: 'DEFAULT_DEPOSIT_METHOD',
19
19
  };
@@ -17,5 +17,5 @@
17
17
  export const PaymentMethodType = {
18
18
  BankAccount: 'BANK_ACCOUNT',
19
19
  Card: 'CARD',
20
- SellerWallet: 'SELLER_WALLET'
20
+ SellerWallet: 'SELLER_WALLET',
21
21
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/finances-transfers-api-2024-06-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.",
5
- "version": "4.0.16",
5
+ "version": "4.0.17",
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
  "finances transfers api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }