@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1 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.
@@ -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;
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AdditionalDetailsTypeEnum = void 0;
17
17
  exports.AdditionalDetailsTypeEnum = {
18
18
  Sur: 'SUR',
19
- Ocr: 'OCR'
19
+ Ocr: 'OCR',
20
20
  };
@@ -21,5 +21,5 @@ exports.ChargeDetailsTypeEnum = {
21
21
  Packaging: 'PACKAGING',
22
22
  Loading: 'LOADING',
23
23
  Freightout: 'FREIGHTOUT',
24
- TaxCollectedAtSource: 'TAX_COLLECTED_AT_SOURCE'
24
+ TaxCollectedAtSource: 'TAX_COLLECTED_AT_SOURCE',
25
25
  };
@@ -28,5 +28,5 @@ exports.TaxDetailTaxTypeEnum = {
28
28
  St: 'ST',
29
29
  Consumption: 'Consumption',
30
30
  MutuallyDefined: 'MutuallyDefined',
31
- DomesticVat: 'DomesticVAT'
31
+ DomesticVat: 'DomesticVAT',
32
32
  };
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TaxRegistrationDetailTaxRegistrationTypeEnum = void 0;
17
17
  exports.TaxRegistrationDetailTaxRegistrationTypeEnum = {
18
18
  Vat: 'VAT',
19
- Gst: 'GST'
19
+ Gst: 'GST',
20
20
  };
@@ -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
  }
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const AdditionalDetailsTypeEnum = {
15
15
  Sur: 'SUR',
16
- Ocr: 'OCR'
16
+ Ocr: 'OCR',
17
17
  };
@@ -18,5 +18,5 @@ export const ChargeDetailsTypeEnum = {
18
18
  Packaging: 'PACKAGING',
19
19
  Loading: 'LOADING',
20
20
  Freightout: 'FREIGHTOUT',
21
- TaxCollectedAtSource: 'TAX_COLLECTED_AT_SOURCE'
21
+ TaxCollectedAtSource: 'TAX_COLLECTED_AT_SOURCE',
22
22
  };
@@ -25,5 +25,5 @@ export const TaxDetailTaxTypeEnum = {
25
25
  St: 'ST',
26
26
  Consumption: 'Consumption',
27
27
  MutuallyDefined: 'MutuallyDefined',
28
- DomesticVat: 'DomesticVAT'
28
+ DomesticVat: 'DomesticVAT',
29
29
  };
@@ -13,5 +13,5 @@
13
13
  */
14
14
  export const TaxRegistrationDetailTaxRegistrationTypeEnum = {
15
15
  Vat: 'VAT',
16
- Gst: 'GST'
16
+ Gst: 'GST',
17
17
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.",
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
  "vendor direct fulfillment payments api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }