@sp-api-sdk/finances-transfers-api-2024-06-01 4.0.15 → 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
  };
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
90
90
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
91
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
92
  */
93
+ // @ts-ignore
93
94
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
94
95
  if (value instanceof Set) {
95
96
  return Array.from(value);
@@ -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
  };
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
81
81
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
82
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
83
  */
84
+ // @ts-ignore
84
85
  export const replaceWithSerializableTypeIfNeeded = function (key, value) {
85
86
  if (value instanceof Set) {
86
87
  return Array.from(value);
@@ -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
  };
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
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.15",
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.29",
22
- "axios": "^1.13.5"
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": "2c1fe783fb7c2204e7e19d4f85fa2bdf822e4593"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }