@sp-api-sdk/shipment-invoicing-api-v0 4.1.12 → 4.1.13

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.
@@ -38,7 +38,7 @@ const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
38
38
  // verify required parameter 'shipmentId' is not null or undefined
39
39
  (0, common_1.assertParamExists)('getInvoiceStatus', 'shipmentId', shipmentId);
40
40
  const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice/status`
41
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
41
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
42
42
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
43
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
44
  let baseOptions;
@@ -67,7 +67,7 @@ const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
67
67
  // verify required parameter 'shipmentId' is not null or undefined
68
68
  (0, common_1.assertParamExists)('getShipmentDetails', 'shipmentId', shipmentId);
69
69
  const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}`
70
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
70
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
71
71
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
72
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
73
73
  let baseOptions;
@@ -99,7 +99,7 @@ const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
99
99
  // verify required parameter 'body' is not null or undefined
100
100
  (0, common_1.assertParamExists)('submitInvoice', 'body', body);
101
101
  const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice`
102
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
102
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
103
103
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
104
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
105
105
  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;
@@ -19,5 +19,5 @@ exports.AddressTypeEnum = void 0;
19
19
  */
20
20
  exports.AddressTypeEnum = {
21
21
  Residential: 'Residential',
22
- Commercial: 'Commercial'
22
+ Commercial: 'Commercial',
23
23
  };
@@ -23,5 +23,5 @@ exports.PaymentMethodEnum = {
23
23
  Pix: 'Pix',
24
24
  BankSlip: 'BankSlip',
25
25
  GiftCard: 'GiftCard',
26
- Other: 'Other'
26
+ Other: 'Other',
27
27
  };
@@ -21,5 +21,5 @@ exports.ShipmentInvoiceStatus = {
21
21
  Processing: 'Processing',
22
22
  Accepted: 'Accepted',
23
23
  Errored: 'Errored',
24
- NotFound: 'NotFound'
24
+ NotFound: 'NotFound',
25
25
  };
@@ -32,7 +32,7 @@ export const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
32
32
  // verify required parameter 'shipmentId' is not null or undefined
33
33
  assertParamExists('getInvoiceStatus', 'shipmentId', shipmentId);
34
34
  const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice/status`
35
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
35
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
36
36
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
37
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
38
  let baseOptions;
@@ -61,7 +61,7 @@ export const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
61
61
  // verify required parameter 'shipmentId' is not null or undefined
62
62
  assertParamExists('getShipmentDetails', 'shipmentId', shipmentId);
63
63
  const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}`
64
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
64
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
65
65
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
66
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
67
  let baseOptions;
@@ -93,7 +93,7 @@ export const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
93
93
  // verify required parameter 'body' is not null or undefined
94
94
  assertParamExists('submitInvoice', 'body', body);
95
95
  const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice`
96
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
96
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
97
97
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
98
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
99
  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
  }
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const AddressTypeEnum = {
18
18
  Residential: 'Residential',
19
- Commercial: 'Commercial'
19
+ Commercial: 'Commercial',
20
20
  };
@@ -20,5 +20,5 @@ export const PaymentMethodEnum = {
20
20
  Pix: 'Pix',
21
21
  BankSlip: 'BankSlip',
22
22
  GiftCard: 'GiftCard',
23
- Other: 'Other'
23
+ Other: 'Other',
24
24
  };
@@ -18,5 +18,5 @@ export const ShipmentInvoiceStatus = {
18
18
  Processing: 'Processing',
19
19
  Accepted: 'Accepted',
20
20
  Errored: 'Errored',
21
- NotFound: 'NotFound'
21
+ NotFound: 'NotFound',
22
22
  };
@@ -12,21 +12,21 @@
12
12
  import type { Money } from './money';
13
13
  import type { PaymentMethodEnum } from './payment-method-enum';
14
14
  /**
15
- * Payment transaction information
15
+ * Information about a payment transaction.
16
16
  */
17
17
  export interface PaymentInformation {
18
18
  'PaymentMethod'?: PaymentMethodEnum;
19
19
  /**
20
- * Government ID of acquirer
20
+ * The government ID of the acquirer.
21
21
  */
22
22
  'AcquirerId'?: string;
23
23
  /**
24
- * Credit card brand (if payment method is CreditCard)
24
+ * The credit card brand if the payment method is `CreditCard`.
25
25
  */
26
26
  'CardBrand'?: string;
27
27
  'PaymentValue'?: Money;
28
28
  /**
29
- * Authorization code for this payment
29
+ * The authorization code of this payment.
30
30
  */
31
31
  'AuthorizationCode'?: string;
32
32
  }
@@ -40,7 +40,7 @@ export interface ShipmentDetail {
40
40
  */
41
41
  'PaymentMethodDetails'?: Array<string>;
42
42
  /**
43
- * List of payment transactions
43
+ * A list of payment transactions.
44
44
  */
45
45
  'Payments'?: Array<PaymentInformation>;
46
46
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/shipment-invoicing-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.",
5
- "version": "4.1.12",
5
+ "version": "4.1.13",
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
  "shipment invoicing api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }