@sp-api-sdk/shipment-invoicing-api-v0 4.0.1 → 4.0.2
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 +0 -9
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/address-type-enum.js +0 -2
- package/dist/cjs/api-model/models/shipment-invoice-status.js +0 -2
- package/dist/es/api-model/api/shipment-invoicing-api.js +0 -9
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/address-type-enum.js +0 -2
- package/dist/es/api-model/models/shipment-invoice-status.js +0 -2
- package/dist/types/api-model/api/shipment-invoicing-api.d.ts +0 -26
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/address-type-enum.d.ts +0 -2
- package/dist/types/api-model/models/address.d.ts +0 -29
- package/dist/types/api-model/models/buyer-tax-info.d.ts +0 -8
- package/dist/types/api-model/models/get-invoice-status-response.d.ts +0 -9
- package/dist/types/api-model/models/get-shipment-details-response.d.ts +0 -9
- package/dist/types/api-model/models/marketplace-tax-info.d.ts +0 -8
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/money.d.ts +0 -6
- package/dist/types/api-model/models/shipment-detail.d.ts +0 -39
- package/dist/types/api-model/models/shipment-invoice-status-info.d.ts +0 -9
- package/dist/types/api-model/models/shipment-invoice-status-response.d.ts +0 -7
- package/dist/types/api-model/models/shipment-invoice-status.d.ts +0 -2
- package/dist/types/api-model/models/shipment-item.d.ts +0 -39
- package/dist/types/api-model/models/submit-invoice-request.d.ts +0 -8
- package/dist/types/api-model/models/submit-invoice-response.d.ts +0 -4
- package/dist/types/api-model/models/tax-classification.d.ts +0 -6
- package/package.json +25 -4
|
@@ -25,7 +25,6 @@ const common_1 = require("../common");
|
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
27
|
* ShipmentInvoicingApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
28
|
*/
|
|
30
29
|
const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
|
|
31
30
|
return {
|
|
@@ -123,7 +122,6 @@ const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
|
|
|
123
122
|
exports.ShipmentInvoicingApiAxiosParamCreator = ShipmentInvoicingApiAxiosParamCreator;
|
|
124
123
|
/**
|
|
125
124
|
* ShipmentInvoicingApi - functional programming interface
|
|
126
|
-
* @export
|
|
127
125
|
*/
|
|
128
126
|
const ShipmentInvoicingApiFp = function (configuration) {
|
|
129
127
|
const localVarAxiosParamCreator = (0, exports.ShipmentInvoicingApiAxiosParamCreator)(configuration);
|
|
@@ -170,7 +168,6 @@ const ShipmentInvoicingApiFp = function (configuration) {
|
|
|
170
168
|
exports.ShipmentInvoicingApiFp = ShipmentInvoicingApiFp;
|
|
171
169
|
/**
|
|
172
170
|
* ShipmentInvoicingApi - factory interface
|
|
173
|
-
* @export
|
|
174
171
|
*/
|
|
175
172
|
const ShipmentInvoicingApiFactory = function (configuration, basePath, axios) {
|
|
176
173
|
const localVarFp = (0, exports.ShipmentInvoicingApiFp)(configuration);
|
|
@@ -207,9 +204,6 @@ const ShipmentInvoicingApiFactory = function (configuration, basePath, axios) {
|
|
|
207
204
|
exports.ShipmentInvoicingApiFactory = ShipmentInvoicingApiFactory;
|
|
208
205
|
/**
|
|
209
206
|
* ShipmentInvoicingApi - object-oriented interface
|
|
210
|
-
* @export
|
|
211
|
-
* @class ShipmentInvoicingApi
|
|
212
|
-
* @extends {BaseAPI}
|
|
213
207
|
*/
|
|
214
208
|
class ShipmentInvoicingApi extends base_1.BaseAPI {
|
|
215
209
|
/**
|
|
@@ -217,7 +211,6 @@ class ShipmentInvoicingApi extends base_1.BaseAPI {
|
|
|
217
211
|
* @param {ShipmentInvoicingApiGetInvoiceStatusRequest} requestParameters Request parameters.
|
|
218
212
|
* @param {*} [options] Override http request option.
|
|
219
213
|
* @throws {RequiredError}
|
|
220
|
-
* @memberof ShipmentInvoicingApi
|
|
221
214
|
*/
|
|
222
215
|
getInvoiceStatus(requestParameters, options) {
|
|
223
216
|
return (0, exports.ShipmentInvoicingApiFp)(this.configuration).getInvoiceStatus(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -227,7 +220,6 @@ class ShipmentInvoicingApi extends base_1.BaseAPI {
|
|
|
227
220
|
* @param {ShipmentInvoicingApiGetShipmentDetailsRequest} requestParameters Request parameters.
|
|
228
221
|
* @param {*} [options] Override http request option.
|
|
229
222
|
* @throws {RequiredError}
|
|
230
|
-
* @memberof ShipmentInvoicingApi
|
|
231
223
|
*/
|
|
232
224
|
getShipmentDetails(requestParameters, options) {
|
|
233
225
|
return (0, exports.ShipmentInvoicingApiFp)(this.configuration).getShipmentDetails(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -237,7 +229,6 @@ class ShipmentInvoicingApi extends base_1.BaseAPI {
|
|
|
237
229
|
* @param {ShipmentInvoicingApiSubmitInvoiceRequest} requestParameters Request parameters.
|
|
238
230
|
* @param {*} [options] Override http request option.
|
|
239
231
|
* @throws {RequiredError}
|
|
240
|
-
* @memberof ShipmentInvoicingApi
|
|
241
232
|
*/
|
|
242
233
|
submitInvoice(requestParameters, options) {
|
|
243
234
|
return (0, exports.ShipmentInvoicingApiFp)(this.configuration).submitInvoice(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -19,21 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
22
|
exports.COLLECTION_FORMATS = {
|
|
27
23
|
csv: ",",
|
|
28
24
|
ssv: " ",
|
|
29
25
|
tsv: "\t",
|
|
30
26
|
pipes: "|",
|
|
31
27
|
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @class BaseAPI
|
|
36
|
-
*/
|
|
37
28
|
class BaseAPI {
|
|
38
29
|
basePath;
|
|
39
30
|
axios;
|
|
@@ -49,12 +40,6 @@ class BaseAPI {
|
|
|
49
40
|
}
|
|
50
41
|
exports.BaseAPI = BaseAPI;
|
|
51
42
|
;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @export
|
|
55
|
-
* @class RequiredError
|
|
56
|
-
* @extends {Error}
|
|
57
|
-
*/
|
|
58
43
|
class RequiredError extends Error {
|
|
59
44
|
field;
|
|
60
45
|
constructor(field, msg) {
|
|
@@ -64,8 +49,4 @@ class RequiredError extends Error {
|
|
|
64
49
|
}
|
|
65
50
|
}
|
|
66
51
|
exports.RequiredError = RequiredError;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @export
|
|
70
|
-
*/
|
|
71
52
|
exports.operationServerMap = {};
|
|
@@ -15,15 +15,10 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
18
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
23
19
|
/**
|
|
24
20
|
*
|
|
25
21
|
* @throws {RequiredError}
|
|
26
|
-
* @export
|
|
27
22
|
*/
|
|
28
23
|
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
29
24
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -31,10 +26,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
31
26
|
}
|
|
32
27
|
};
|
|
33
28
|
exports.assertParamExists = assertParamExists;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
29
|
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
39
30
|
if (configuration && configuration.apiKey) {
|
|
40
31
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -44,20 +35,12 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
|
44
35
|
}
|
|
45
36
|
};
|
|
46
37
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
38
|
const setBasicAuthToObject = function (object, configuration) {
|
|
52
39
|
if (configuration && (configuration.username || configuration.password)) {
|
|
53
40
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
54
41
|
}
|
|
55
42
|
};
|
|
56
43
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
*/
|
|
61
44
|
const setBearerAuthToObject = async function (object, configuration) {
|
|
62
45
|
if (configuration && configuration.accessToken) {
|
|
63
46
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -67,10 +50,6 @@ const setBearerAuthToObject = async function (object, configuration) {
|
|
|
67
50
|
}
|
|
68
51
|
};
|
|
69
52
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
53
|
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
75
54
|
if (configuration && configuration.accessToken) {
|
|
76
55
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -100,20 +79,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
100
79
|
}
|
|
101
80
|
}
|
|
102
81
|
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
82
|
const setSearchParams = function (url, ...objects) {
|
|
108
83
|
const searchParams = new URLSearchParams(url.search);
|
|
109
84
|
setFlattenedQueryParams(searchParams, objects);
|
|
110
85
|
url.search = searchParams.toString();
|
|
111
86
|
};
|
|
112
87
|
exports.setSearchParams = setSearchParams;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @export
|
|
116
|
-
*/
|
|
117
88
|
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
118
89
|
const nonString = typeof value !== 'string';
|
|
119
90
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -124,18 +95,10 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
124
95
|
: (value || "");
|
|
125
96
|
};
|
|
126
97
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @export
|
|
130
|
-
*/
|
|
131
98
|
const toPathString = function (url) {
|
|
132
99
|
return url.pathname + url.search + url.hash;
|
|
133
100
|
};
|
|
134
101
|
exports.toPathString = toPathString;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
102
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
103
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
104
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
@@ -18,49 +18,32 @@ class Configuration {
|
|
|
18
18
|
/**
|
|
19
19
|
* parameter for apiKey security
|
|
20
20
|
* @param name security name
|
|
21
|
-
* @memberof Configuration
|
|
22
21
|
*/
|
|
23
22
|
apiKey;
|
|
24
23
|
/**
|
|
25
24
|
* parameter for basic security
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Configuration
|
|
29
25
|
*/
|
|
30
26
|
username;
|
|
31
27
|
/**
|
|
32
28
|
* parameter for basic security
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Configuration
|
|
36
29
|
*/
|
|
37
30
|
password;
|
|
38
31
|
/**
|
|
39
32
|
* parameter for oauth2 security
|
|
40
33
|
* @param name security name
|
|
41
34
|
* @param scopes oauth2 scope
|
|
42
|
-
* @memberof Configuration
|
|
43
35
|
*/
|
|
44
36
|
accessToken;
|
|
45
37
|
/**
|
|
46
38
|
* override base path
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Configuration
|
|
50
39
|
*/
|
|
51
40
|
basePath;
|
|
52
41
|
/**
|
|
53
42
|
* override server index
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof Configuration
|
|
57
43
|
*/
|
|
58
44
|
serverIndex;
|
|
59
45
|
/**
|
|
60
46
|
* base options for axios calls
|
|
61
|
-
*
|
|
62
|
-
* @type {any}
|
|
63
|
-
* @memberof Configuration
|
|
64
47
|
*/
|
|
65
48
|
baseOptions;
|
|
66
49
|
/**
|
|
@@ -19,7 +19,6 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
|
|
|
19
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* ShipmentInvoicingApi - axios parameter creator
|
|
22
|
-
* @export
|
|
23
22
|
*/
|
|
24
23
|
export const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
|
|
25
24
|
return {
|
|
@@ -116,7 +115,6 @@ export const ShipmentInvoicingApiAxiosParamCreator = function (configuration) {
|
|
|
116
115
|
};
|
|
117
116
|
/**
|
|
118
117
|
* ShipmentInvoicingApi - functional programming interface
|
|
119
|
-
* @export
|
|
120
118
|
*/
|
|
121
119
|
export const ShipmentInvoicingApiFp = function (configuration) {
|
|
122
120
|
const localVarAxiosParamCreator = ShipmentInvoicingApiAxiosParamCreator(configuration);
|
|
@@ -162,7 +160,6 @@ export const ShipmentInvoicingApiFp = function (configuration) {
|
|
|
162
160
|
};
|
|
163
161
|
/**
|
|
164
162
|
* ShipmentInvoicingApi - factory interface
|
|
165
|
-
* @export
|
|
166
163
|
*/
|
|
167
164
|
export const ShipmentInvoicingApiFactory = function (configuration, basePath, axios) {
|
|
168
165
|
const localVarFp = ShipmentInvoicingApiFp(configuration);
|
|
@@ -198,9 +195,6 @@ export const ShipmentInvoicingApiFactory = function (configuration, basePath, ax
|
|
|
198
195
|
};
|
|
199
196
|
/**
|
|
200
197
|
* ShipmentInvoicingApi - object-oriented interface
|
|
201
|
-
* @export
|
|
202
|
-
* @class ShipmentInvoicingApi
|
|
203
|
-
* @extends {BaseAPI}
|
|
204
198
|
*/
|
|
205
199
|
export class ShipmentInvoicingApi extends BaseAPI {
|
|
206
200
|
/**
|
|
@@ -208,7 +202,6 @@ export class ShipmentInvoicingApi extends BaseAPI {
|
|
|
208
202
|
* @param {ShipmentInvoicingApiGetInvoiceStatusRequest} requestParameters Request parameters.
|
|
209
203
|
* @param {*} [options] Override http request option.
|
|
210
204
|
* @throws {RequiredError}
|
|
211
|
-
* @memberof ShipmentInvoicingApi
|
|
212
205
|
*/
|
|
213
206
|
getInvoiceStatus(requestParameters, options) {
|
|
214
207
|
return ShipmentInvoicingApiFp(this.configuration).getInvoiceStatus(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -218,7 +211,6 @@ export class ShipmentInvoicingApi extends BaseAPI {
|
|
|
218
211
|
* @param {ShipmentInvoicingApiGetShipmentDetailsRequest} requestParameters Request parameters.
|
|
219
212
|
* @param {*} [options] Override http request option.
|
|
220
213
|
* @throws {RequiredError}
|
|
221
|
-
* @memberof ShipmentInvoicingApi
|
|
222
214
|
*/
|
|
223
215
|
getShipmentDetails(requestParameters, options) {
|
|
224
216
|
return ShipmentInvoicingApiFp(this.configuration).getShipmentDetails(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -228,7 +220,6 @@ export class ShipmentInvoicingApi extends BaseAPI {
|
|
|
228
220
|
* @param {ShipmentInvoicingApiSubmitInvoiceRequest} requestParameters Request parameters.
|
|
229
221
|
* @param {*} [options] Override http request option.
|
|
230
222
|
* @throws {RequiredError}
|
|
231
|
-
* @memberof ShipmentInvoicingApi
|
|
232
223
|
*/
|
|
233
224
|
submitInvoice(requestParameters, options) {
|
|
234
225
|
return ShipmentInvoicingApiFp(this.configuration).submitInvoice(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -13,21 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
16
|
export const COLLECTION_FORMATS = {
|
|
21
17
|
csv: ",",
|
|
22
18
|
ssv: " ",
|
|
23
19
|
tsv: "\t",
|
|
24
20
|
pipes: "|",
|
|
25
21
|
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
22
|
export class BaseAPI {
|
|
32
23
|
basePath;
|
|
33
24
|
axios;
|
|
@@ -42,12 +33,6 @@ export class BaseAPI {
|
|
|
42
33
|
}
|
|
43
34
|
}
|
|
44
35
|
;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
36
|
export class RequiredError extends Error {
|
|
52
37
|
field;
|
|
53
38
|
constructor(field, msg) {
|
|
@@ -56,8 +41,4 @@ export class RequiredError extends Error {
|
|
|
56
41
|
this.name = "RequiredError";
|
|
57
42
|
}
|
|
58
43
|
}
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @export
|
|
62
|
-
*/
|
|
63
44
|
export const operationServerMap = {};
|
|
@@ -12,25 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { RequiredError } from "./base";
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export const DUMMY_BASE_URL = 'https://example.com';
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
26
21
|
if (paramValue === null || paramValue === undefined) {
|
|
27
22
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
28
23
|
}
|
|
29
24
|
};
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
25
|
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
26
|
if (configuration && configuration.apiKey) {
|
|
36
27
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -39,19 +30,11 @@ export const setApiKeyToObject = async function (object, keyParamName, configura
|
|
|
39
30
|
object[keyParamName] = localVarApiKeyValue;
|
|
40
31
|
}
|
|
41
32
|
};
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
33
|
export const setBasicAuthToObject = function (object, configuration) {
|
|
47
34
|
if (configuration && (configuration.username || configuration.password)) {
|
|
48
35
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
49
36
|
}
|
|
50
37
|
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
38
|
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
39
|
if (configuration && configuration.accessToken) {
|
|
57
40
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -60,10 +43,6 @@ export const setBearerAuthToObject = async function (object, configuration) {
|
|
|
60
43
|
object["Authorization"] = "Bearer " + accessToken;
|
|
61
44
|
}
|
|
62
45
|
};
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
*/
|
|
67
46
|
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
47
|
if (configuration && configuration.accessToken) {
|
|
69
48
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -92,19 +71,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
92
71
|
}
|
|
93
72
|
}
|
|
94
73
|
}
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @export
|
|
98
|
-
*/
|
|
99
74
|
export const setSearchParams = function (url, ...objects) {
|
|
100
75
|
const searchParams = new URLSearchParams(url.search);
|
|
101
76
|
setFlattenedQueryParams(searchParams, objects);
|
|
102
77
|
url.search = searchParams.toString();
|
|
103
78
|
};
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @export
|
|
107
|
-
*/
|
|
108
79
|
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
109
80
|
const nonString = typeof value !== 'string';
|
|
110
81
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -114,17 +85,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
114
85
|
? JSON.stringify(value !== undefined ? value : {})
|
|
115
86
|
: (value || "");
|
|
116
87
|
};
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @export
|
|
120
|
-
*/
|
|
121
88
|
export const toPathString = function (url) {
|
|
122
89
|
return url.pathname + url.search + url.hash;
|
|
123
90
|
};
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @export
|
|
127
|
-
*/
|
|
128
91
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
92
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
93
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
@@ -15,49 +15,32 @@ export class Configuration {
|
|
|
15
15
|
/**
|
|
16
16
|
* parameter for apiKey security
|
|
17
17
|
* @param name security name
|
|
18
|
-
* @memberof Configuration
|
|
19
18
|
*/
|
|
20
19
|
apiKey;
|
|
21
20
|
/**
|
|
22
21
|
* parameter for basic security
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Configuration
|
|
26
22
|
*/
|
|
27
23
|
username;
|
|
28
24
|
/**
|
|
29
25
|
* parameter for basic security
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Configuration
|
|
33
26
|
*/
|
|
34
27
|
password;
|
|
35
28
|
/**
|
|
36
29
|
* parameter for oauth2 security
|
|
37
30
|
* @param name security name
|
|
38
31
|
* @param scopes oauth2 scope
|
|
39
|
-
* @memberof Configuration
|
|
40
32
|
*/
|
|
41
33
|
accessToken;
|
|
42
34
|
/**
|
|
43
35
|
* override base path
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Configuration
|
|
47
36
|
*/
|
|
48
37
|
basePath;
|
|
49
38
|
/**
|
|
50
39
|
* override server index
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof Configuration
|
|
54
40
|
*/
|
|
55
41
|
serverIndex;
|
|
56
42
|
/**
|
|
57
43
|
* base options for axios calls
|
|
58
|
-
*
|
|
59
|
-
* @type {any}
|
|
60
|
-
* @memberof Configuration
|
|
61
44
|
*/
|
|
62
45
|
baseOptions;
|
|
63
46
|
/**
|
|
@@ -19,7 +19,6 @@ import type { SubmitInvoiceRequest } from '../models';
|
|
|
19
19
|
import type { SubmitInvoiceResponse } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* ShipmentInvoicingApi - axios parameter creator
|
|
22
|
-
* @export
|
|
23
22
|
*/
|
|
24
23
|
export declare const ShipmentInvoicingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
24
|
/**
|
|
@@ -47,7 +46,6 @@ export declare const ShipmentInvoicingApiAxiosParamCreator: (configuration?: Con
|
|
|
47
46
|
};
|
|
48
47
|
/**
|
|
49
48
|
* ShipmentInvoicingApi - functional programming interface
|
|
50
|
-
* @export
|
|
51
49
|
*/
|
|
52
50
|
export declare const ShipmentInvoicingApiFp: (configuration?: Configuration) => {
|
|
53
51
|
/**
|
|
@@ -75,7 +73,6 @@ export declare const ShipmentInvoicingApiFp: (configuration?: Configuration) =>
|
|
|
75
73
|
};
|
|
76
74
|
/**
|
|
77
75
|
* ShipmentInvoicingApi - factory interface
|
|
78
|
-
* @export
|
|
79
76
|
*/
|
|
80
77
|
export declare const ShipmentInvoicingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
81
78
|
/**
|
|
@@ -102,54 +99,34 @@ export declare const ShipmentInvoicingApiFactory: (configuration?: Configuration
|
|
|
102
99
|
};
|
|
103
100
|
/**
|
|
104
101
|
* Request parameters for getInvoiceStatus operation in ShipmentInvoicingApi.
|
|
105
|
-
* @export
|
|
106
|
-
* @interface ShipmentInvoicingApiGetInvoiceStatusRequest
|
|
107
102
|
*/
|
|
108
103
|
export interface ShipmentInvoicingApiGetInvoiceStatusRequest {
|
|
109
104
|
/**
|
|
110
105
|
* The shipment identifier for the shipment.
|
|
111
|
-
* @type {string}
|
|
112
|
-
* @memberof ShipmentInvoicingApiGetInvoiceStatus
|
|
113
106
|
*/
|
|
114
107
|
readonly shipmentId: string;
|
|
115
108
|
}
|
|
116
109
|
/**
|
|
117
110
|
* Request parameters for getShipmentDetails operation in ShipmentInvoicingApi.
|
|
118
|
-
* @export
|
|
119
|
-
* @interface ShipmentInvoicingApiGetShipmentDetailsRequest
|
|
120
111
|
*/
|
|
121
112
|
export interface ShipmentInvoicingApiGetShipmentDetailsRequest {
|
|
122
113
|
/**
|
|
123
114
|
* The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof ShipmentInvoicingApiGetShipmentDetails
|
|
126
115
|
*/
|
|
127
116
|
readonly shipmentId: string;
|
|
128
117
|
}
|
|
129
118
|
/**
|
|
130
119
|
* Request parameters for submitInvoice operation in ShipmentInvoicingApi.
|
|
131
|
-
* @export
|
|
132
|
-
* @interface ShipmentInvoicingApiSubmitInvoiceRequest
|
|
133
120
|
*/
|
|
134
121
|
export interface ShipmentInvoicingApiSubmitInvoiceRequest {
|
|
135
122
|
/**
|
|
136
123
|
* The identifier for the shipment.
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof ShipmentInvoicingApiSubmitInvoice
|
|
139
124
|
*/
|
|
140
125
|
readonly shipmentId: string;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {SubmitInvoiceRequest}
|
|
144
|
-
* @memberof ShipmentInvoicingApiSubmitInvoice
|
|
145
|
-
*/
|
|
146
126
|
readonly body: SubmitInvoiceRequest;
|
|
147
127
|
}
|
|
148
128
|
/**
|
|
149
129
|
* ShipmentInvoicingApi - object-oriented interface
|
|
150
|
-
* @export
|
|
151
|
-
* @class ShipmentInvoicingApi
|
|
152
|
-
* @extends {BaseAPI}
|
|
153
130
|
*/
|
|
154
131
|
export declare class ShipmentInvoicingApi extends BaseAPI {
|
|
155
132
|
/**
|
|
@@ -157,7 +134,6 @@ export declare class ShipmentInvoicingApi extends BaseAPI {
|
|
|
157
134
|
* @param {ShipmentInvoicingApiGetInvoiceStatusRequest} requestParameters Request parameters.
|
|
158
135
|
* @param {*} [options] Override http request option.
|
|
159
136
|
* @throws {RequiredError}
|
|
160
|
-
* @memberof ShipmentInvoicingApi
|
|
161
137
|
*/
|
|
162
138
|
getInvoiceStatus(requestParameters: ShipmentInvoicingApiGetInvoiceStatusRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoiceStatusResponse, any>>;
|
|
163
139
|
/**
|
|
@@ -165,7 +141,6 @@ export declare class ShipmentInvoicingApi extends BaseAPI {
|
|
|
165
141
|
* @param {ShipmentInvoicingApiGetShipmentDetailsRequest} requestParameters Request parameters.
|
|
166
142
|
* @param {*} [options] Override http request option.
|
|
167
143
|
* @throws {RequiredError}
|
|
168
|
-
* @memberof ShipmentInvoicingApi
|
|
169
144
|
*/
|
|
170
145
|
getShipmentDetails(requestParameters: ShipmentInvoicingApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentDetailsResponse, any>>;
|
|
171
146
|
/**
|
|
@@ -173,7 +148,6 @@ export declare class ShipmentInvoicingApi extends BaseAPI {
|
|
|
173
148
|
* @param {ShipmentInvoicingApiSubmitInvoiceRequest} requestParameters Request parameters.
|
|
174
149
|
* @param {*} [options] Override http request option.
|
|
175
150
|
* @throws {RequiredError}
|
|
176
|
-
* @memberof ShipmentInvoicingApi
|
|
177
151
|
*/
|
|
178
152
|
submitInvoice(requestParameters: ShipmentInvoicingApiSubmitInvoiceRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitInvoiceResponse, any>>;
|
|
179
153
|
}
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|