@sp-api-sdk/finances-api-2024-06-19 3.3.3 → 3.3.4
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.
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/business-context.js +1 -1
- package/dist/cjs/api-model/models/item-related-identifier.js +1 -1
- package/dist/cjs/api-model/models/related-identifier.js +1 -1
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/business-context.js +1 -1
- package/dist/es/api-model/models/item-related-identifier.js +1 -1
- package/dist/es/api-model/models/related-identifier.js +1 -1
- package/package.json +4 -4
|
@@ -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 =
|
|
95
|
-
return mime !== null &&
|
|
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.ItemRelatedIdentifierItemRelatedIdentifierNameEnum = {
|
|
|
18
18
|
OrderAdjustmentItemId: 'ORDER_ADJUSTMENT_ITEM_ID',
|
|
19
19
|
CouponId: 'COUPON_ID',
|
|
20
20
|
RemovalShipmentItemId: 'REMOVAL_SHIPMENT_ITEM_ID',
|
|
21
|
-
TransactionId: 'TRANSACTION_ID'
|
|
21
|
+
TransactionId: 'TRANSACTION_ID',
|
|
22
22
|
};
|
|
@@ -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 =
|
|
92
|
-
return mime !== null &&
|
|
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 @@ export const ItemRelatedIdentifierItemRelatedIdentifierNameEnum = {
|
|
|
15
15
|
OrderAdjustmentItemId: 'ORDER_ADJUSTMENT_ITEM_ID',
|
|
16
16
|
CouponId: 'COUPON_ID',
|
|
17
17
|
RemovalShipmentItemId: 'REMOVAL_SHIPMENT_ITEM_ID',
|
|
18
|
-
TransactionId: 'TRANSACTION_ID'
|
|
18
|
+
TransactionId: 'TRANSACTION_ID',
|
|
19
19
|
};
|
|
@@ -21,5 +21,5 @@ export const RelatedIdentifierRelatedIdentifierNameEnum = {
|
|
|
21
21
|
TransferId: 'TRANSFER_ID',
|
|
22
22
|
DeferredTransactionId: 'DEFERRED_TRANSACTION_ID',
|
|
23
23
|
ReleaseTransactionId: 'RELEASE_TRANSACTION_ID',
|
|
24
|
-
SettlementId: 'SETTLEMENT_ID'
|
|
24
|
+
SettlementId: 'SETTLEMENT_ID',
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/finances-api-2024-06-19",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Finances provides 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.",
|
|
5
|
-
"version": "3.3.
|
|
5
|
+
"version": "3.3.4",
|
|
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.
|
|
22
|
-
"axios": "^1.
|
|
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": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|