@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.
- package/dist/cjs/api-model/api/shipment-invoicing-api.js +3 -3
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/address-type-enum.js +1 -1
- package/dist/cjs/api-model/models/payment-method-enum.js +1 -1
- package/dist/cjs/api-model/models/shipment-invoice-status.js +1 -1
- package/dist/es/api-model/api/shipment-invoicing-api.js +3 -3
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/address-type-enum.js +1 -1
- package/dist/es/api-model/models/payment-method-enum.js +1 -1
- package/dist/es/api-model/models/shipment-invoice-status.js +1 -1
- package/dist/types/api-model/models/payment-information.d.ts +4 -4
- package/dist/types/api-model/models/shipment-detail.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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(
|
|
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(
|
|
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(
|
|
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 =
|
|
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;
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
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 =
|
|
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
|
}
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
import type { Money } from './money';
|
|
13
13
|
import type { PaymentMethodEnum } from './payment-method-enum';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Information about a payment transaction.
|
|
16
16
|
*/
|
|
17
17
|
export interface PaymentInformation {
|
|
18
18
|
'PaymentMethod'?: PaymentMethodEnum;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* The government ID of the acquirer.
|
|
21
21
|
*/
|
|
22
22
|
'AcquirerId'?: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* The credit card brand if the payment method is `CreditCard`.
|
|
25
25
|
*/
|
|
26
26
|
'CardBrand'?: string;
|
|
27
27
|
'PaymentValue'?: Money;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The authorization code of this payment.
|
|
30
30
|
*/
|
|
31
31
|
'AuthorizationCode'?: string;
|
|
32
32
|
}
|
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.
|
|
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.
|
|
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
|
"shipment invoicing api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|