@sp-api-sdk/finances-api-v0 4.2.7 → 4.2.8

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.
@@ -132,7 +132,7 @@ const FinancesApiAxiosParamCreator = function (configuration) {
132
132
  // verify required parameter 'eventGroupId' is not null or undefined
133
133
  (0, common_1.assertParamExists)('listFinancialEventsByGroupId', 'eventGroupId', eventGroupId);
134
134
  const localVarPath = `/finances/v0/financialEventGroups/{eventGroupId}/financialEvents`
135
- .replace(`{${"eventGroupId"}}`, encodeURIComponent(String(eventGroupId)));
135
+ .replace('{eventGroupId}', encodeURIComponent(String(eventGroupId)));
136
136
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
137
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
138
138
  let baseOptions;
@@ -179,7 +179,7 @@ const FinancesApiAxiosParamCreator = function (configuration) {
179
179
  // verify required parameter 'orderId' is not null or undefined
180
180
  (0, common_1.assertParamExists)('listFinancialEventsByOrderId', 'orderId', orderId);
181
181
  const localVarPath = `/finances/v0/orders/{orderId}/financialEvents`
182
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
182
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
183
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
184
184
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
185
185
  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;
@@ -126,7 +126,7 @@ export const FinancesApiAxiosParamCreator = function (configuration) {
126
126
  // verify required parameter 'eventGroupId' is not null or undefined
127
127
  assertParamExists('listFinancialEventsByGroupId', 'eventGroupId', eventGroupId);
128
128
  const localVarPath = `/finances/v0/financialEventGroups/{eventGroupId}/financialEvents`
129
- .replace(`{${"eventGroupId"}}`, encodeURIComponent(String(eventGroupId)));
129
+ .replace('{eventGroupId}', encodeURIComponent(String(eventGroupId)));
130
130
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
131
131
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
132
132
  let baseOptions;
@@ -173,7 +173,7 @@ export const FinancesApiAxiosParamCreator = function (configuration) {
173
173
  // verify required parameter 'orderId' is not null or undefined
174
174
  assertParamExists('listFinancialEventsByOrderId', 'orderId', orderId);
175
175
  const localVarPath = `/finances/v0/orders/{orderId}/financialEvents`
176
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
176
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
177
177
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
178
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
179
179
  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
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/finances-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Finances provides financial information that is relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.",
5
- "version": "4.2.7",
5
+ "version": "4.2.8",
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 api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }