@teemill/platform 0.26.0 → 0.28.0
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/README.md +12 -2
- package/api.ts +483 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +349 -3
- package/dist/api.js +193 -7
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +349 -3
- package/dist/esm/api.js +192 -6
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ConfirmOrderFulfillment.md +24 -0
- package/docs/ConfirmOrderFulfillmentShipment.md +21 -0
- package/docs/ConfirmOrderRequest.md +20 -0
- package/docs/CreateOrder.md +33 -0
- package/docs/CreateOrderContactInformation.md +23 -0
- package/docs/CustomsInformation.md +27 -0
- package/docs/OrderItem1.md +24 -0
- package/docs/OrderItem1RecipientCost.md +22 -0
- package/docs/OrdersApi.md +135 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.28.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
|
|
25
|
+
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.CustomsInformationPreRegistrationTypeEnum = {
|
|
33
|
+
Ioss: 'IOSS'
|
|
34
|
+
};
|
|
32
35
|
exports.EnquiryStatusEnum = {
|
|
33
36
|
New: 'New',
|
|
34
37
|
Archived: 'Archived',
|
|
@@ -965,6 +968,100 @@ exports.EnquiriesApi = EnquiriesApi;
|
|
|
965
968
|
*/
|
|
966
969
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
967
970
|
return {
|
|
971
|
+
/**
|
|
972
|
+
*
|
|
973
|
+
* @summary Confirm order
|
|
974
|
+
* @param {string} project Project unique identifier
|
|
975
|
+
* @param {string} platformId The platform identifier
|
|
976
|
+
* @param {string} orderId The order identifier
|
|
977
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
981
|
+
confirmOrder: (project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, confirmOrderRequest, options = {}) {
|
|
982
|
+
// verify required parameter 'project' is not null or undefined
|
|
983
|
+
(0, common_1.assertParamExists)('confirmOrder', 'project', project);
|
|
984
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
985
|
+
(0, common_1.assertParamExists)('confirmOrder', 'platformId', platformId);
|
|
986
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
987
|
+
(0, common_1.assertParamExists)('confirmOrder', 'orderId', orderId);
|
|
988
|
+
// verify required parameter 'confirmOrderRequest' is not null or undefined
|
|
989
|
+
(0, common_1.assertParamExists)('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
|
|
990
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/confirm`
|
|
991
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
992
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
993
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
994
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
995
|
+
let baseOptions;
|
|
996
|
+
if (configuration) {
|
|
997
|
+
baseOptions = configuration.baseOptions;
|
|
998
|
+
}
|
|
999
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1000
|
+
const localVarHeaderParameter = {};
|
|
1001
|
+
const localVarQueryParameter = {};
|
|
1002
|
+
// authentication session-oauth required
|
|
1003
|
+
// oauth required
|
|
1004
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1005
|
+
// authentication api-key required
|
|
1006
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1007
|
+
if (project !== undefined) {
|
|
1008
|
+
localVarQueryParameter['project'] = project;
|
|
1009
|
+
}
|
|
1010
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1011
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1013
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1014
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmOrderRequest, localVarRequestOptions, configuration);
|
|
1015
|
+
return {
|
|
1016
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1017
|
+
options: localVarRequestOptions,
|
|
1018
|
+
};
|
|
1019
|
+
}),
|
|
1020
|
+
/**
|
|
1021
|
+
*
|
|
1022
|
+
* @summary Create order
|
|
1023
|
+
* @param {string} project Project unique identifier
|
|
1024
|
+
* @param {string} platformId The platform identifier
|
|
1025
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
createOrder: (project_1, platformId_1, createOrder_1, ...args_1) => __awaiter(this, [project_1, platformId_1, createOrder_1, ...args_1], void 0, function* (project, platformId, createOrder, options = {}) {
|
|
1030
|
+
// verify required parameter 'project' is not null or undefined
|
|
1031
|
+
(0, common_1.assertParamExists)('createOrder', 'project', project);
|
|
1032
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1033
|
+
(0, common_1.assertParamExists)('createOrder', 'platformId', platformId);
|
|
1034
|
+
// verify required parameter 'createOrder' is not null or undefined
|
|
1035
|
+
(0, common_1.assertParamExists)('createOrder', 'createOrder', createOrder);
|
|
1036
|
+
const localVarPath = `/v1/platform/{platformId}/orders`
|
|
1037
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1039
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1040
|
+
let baseOptions;
|
|
1041
|
+
if (configuration) {
|
|
1042
|
+
baseOptions = configuration.baseOptions;
|
|
1043
|
+
}
|
|
1044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1045
|
+
const localVarHeaderParameter = {};
|
|
1046
|
+
const localVarQueryParameter = {};
|
|
1047
|
+
// authentication session-oauth required
|
|
1048
|
+
// oauth required
|
|
1049
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1050
|
+
// authentication api-key required
|
|
1051
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1052
|
+
if (project !== undefined) {
|
|
1053
|
+
localVarQueryParameter['project'] = project;
|
|
1054
|
+
}
|
|
1055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1056
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1058
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1059
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrder, localVarRequestOptions, configuration);
|
|
1060
|
+
return {
|
|
1061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1062
|
+
options: localVarRequestOptions,
|
|
1063
|
+
};
|
|
1064
|
+
}),
|
|
968
1065
|
/**
|
|
969
1066
|
* Export orders as a CSV file
|
|
970
1067
|
* @summary Export orders
|
|
@@ -1210,10 +1307,12 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1210
1307
|
* @param {string} [start] Start of date range to filter when orders were placed
|
|
1211
1308
|
* @param {string} [end] End of date range to filter when orders were placed
|
|
1212
1309
|
* @param {ListOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1310
|
+
* @param {number} [maxOrderTotal] The maximum value of the order
|
|
1311
|
+
* @param {number} [minOrderTotal] The minimum value of the order
|
|
1213
1312
|
* @param {*} [options] Override http request option.
|
|
1214
1313
|
* @throws {RequiredError}
|
|
1215
1314
|
*/
|
|
1216
|
-
listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options = {}) {
|
|
1315
|
+
listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, maxOrderTotal_1, minOrderTotal_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, maxOrderTotal_1, minOrderTotal_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options = {}) {
|
|
1217
1316
|
// verify required parameter 'project' is not null or undefined
|
|
1218
1317
|
(0, common_1.assertParamExists)('listOrders', 'project', project);
|
|
1219
1318
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -1259,6 +1358,12 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1259
1358
|
if (dateFilterType !== undefined) {
|
|
1260
1359
|
localVarQueryParameter['dateFilterType'] = dateFilterType;
|
|
1261
1360
|
}
|
|
1361
|
+
if (maxOrderTotal !== undefined) {
|
|
1362
|
+
localVarQueryParameter['maxOrderTotal'] = maxOrderTotal;
|
|
1363
|
+
}
|
|
1364
|
+
if (minOrderTotal !== undefined) {
|
|
1365
|
+
localVarQueryParameter['minOrderTotal'] = minOrderTotal;
|
|
1366
|
+
}
|
|
1262
1367
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1263
1368
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1264
1369
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1414,6 +1519,43 @@ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
|
1414
1519
|
const OrdersApiFp = function (configuration) {
|
|
1415
1520
|
const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
1416
1521
|
return {
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @summary Confirm order
|
|
1525
|
+
* @param {string} project Project unique identifier
|
|
1526
|
+
* @param {string} platformId The platform identifier
|
|
1527
|
+
* @param {string} orderId The order identifier
|
|
1528
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
1529
|
+
* @param {*} [options] Override http request option.
|
|
1530
|
+
* @throws {RequiredError}
|
|
1531
|
+
*/
|
|
1532
|
+
confirmOrder(project, platformId, orderId, confirmOrderRequest, options) {
|
|
1533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1534
|
+
var _a, _b, _c;
|
|
1535
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmOrder(project, platformId, orderId, confirmOrderRequest, options);
|
|
1536
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1537
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.confirmOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1538
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1539
|
+
});
|
|
1540
|
+
},
|
|
1541
|
+
/**
|
|
1542
|
+
*
|
|
1543
|
+
* @summary Create order
|
|
1544
|
+
* @param {string} project Project unique identifier
|
|
1545
|
+
* @param {string} platformId The platform identifier
|
|
1546
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
1547
|
+
* @param {*} [options] Override http request option.
|
|
1548
|
+
* @throws {RequiredError}
|
|
1549
|
+
*/
|
|
1550
|
+
createOrder(project, platformId, createOrder, options) {
|
|
1551
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1552
|
+
var _a, _b, _c;
|
|
1553
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(project, platformId, createOrder, options);
|
|
1554
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1555
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1556
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1557
|
+
});
|
|
1558
|
+
},
|
|
1417
1559
|
/**
|
|
1418
1560
|
* Export orders as a CSV file
|
|
1419
1561
|
* @summary Export orders
|
|
@@ -1517,13 +1659,15 @@ const OrdersApiFp = function (configuration) {
|
|
|
1517
1659
|
* @param {string} [start] Start of date range to filter when orders were placed
|
|
1518
1660
|
* @param {string} [end] End of date range to filter when orders were placed
|
|
1519
1661
|
* @param {ListOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
1662
|
+
* @param {number} [maxOrderTotal] The maximum value of the order
|
|
1663
|
+
* @param {number} [minOrderTotal] The minimum value of the order
|
|
1520
1664
|
* @param {*} [options] Override http request option.
|
|
1521
1665
|
* @throws {RequiredError}
|
|
1522
1666
|
*/
|
|
1523
|
-
listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options) {
|
|
1667
|
+
listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options) {
|
|
1524
1668
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1525
1669
|
var _a, _b, _c;
|
|
1526
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options);
|
|
1670
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options);
|
|
1527
1671
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1528
1672
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.listOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1529
1673
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1594,6 +1738,26 @@ exports.OrdersApiFp = OrdersApiFp;
|
|
|
1594
1738
|
const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
1595
1739
|
const localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
1596
1740
|
return {
|
|
1741
|
+
/**
|
|
1742
|
+
*
|
|
1743
|
+
* @summary Confirm order
|
|
1744
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
1745
|
+
* @param {*} [options] Override http request option.
|
|
1746
|
+
* @throws {RequiredError}
|
|
1747
|
+
*/
|
|
1748
|
+
confirmOrder(requestParameters, options) {
|
|
1749
|
+
return localVarFp.confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(axios, basePath));
|
|
1750
|
+
},
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @summary Create order
|
|
1754
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
*/
|
|
1758
|
+
createOrder(requestParameters, options) {
|
|
1759
|
+
return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
|
|
1760
|
+
},
|
|
1597
1761
|
/**
|
|
1598
1762
|
* Export orders as a CSV file
|
|
1599
1763
|
* @summary Export orders
|
|
@@ -1652,7 +1816,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1652
1816
|
* @throws {RequiredError}
|
|
1653
1817
|
*/
|
|
1654
1818
|
listOrders(requestParameters, options) {
|
|
1655
|
-
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
1819
|
+
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxOrderTotal, requestParameters.minOrderTotal, options).then((request) => request(axios, basePath));
|
|
1656
1820
|
},
|
|
1657
1821
|
/**
|
|
1658
1822
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
@@ -1694,6 +1858,28 @@ exports.OrdersApiFactory = OrdersApiFactory;
|
|
|
1694
1858
|
* @extends {BaseAPI}
|
|
1695
1859
|
*/
|
|
1696
1860
|
class OrdersApi extends base_1.BaseAPI {
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Confirm order
|
|
1864
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
* @memberof OrdersApi
|
|
1868
|
+
*/
|
|
1869
|
+
confirmOrder(requestParameters, options) {
|
|
1870
|
+
return (0, exports.OrdersApiFp)(this.configuration).confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
*
|
|
1874
|
+
* @summary Create order
|
|
1875
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
1876
|
+
* @param {*} [options] Override http request option.
|
|
1877
|
+
* @throws {RequiredError}
|
|
1878
|
+
* @memberof OrdersApi
|
|
1879
|
+
*/
|
|
1880
|
+
createOrder(requestParameters, options) {
|
|
1881
|
+
return (0, exports.OrdersApiFp)(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1882
|
+
}
|
|
1697
1883
|
/**
|
|
1698
1884
|
* Export orders as a CSV file
|
|
1699
1885
|
* @summary Export orders
|
|
@@ -1758,7 +1944,7 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
1758
1944
|
* @memberof OrdersApi
|
|
1759
1945
|
*/
|
|
1760
1946
|
listOrders(requestParameters, options) {
|
|
1761
|
-
return (0, exports.OrdersApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
1947
|
+
return (0, exports.OrdersApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxOrderTotal, requestParameters.minOrderTotal, options).then((request) => request(this.axios, this.basePath));
|
|
1762
1948
|
}
|
|
1763
1949
|
/**
|
|
1764
1950
|
* Retries failed platform payment, so fulfillment can proceed.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED