@teemill/platform 0.29.0 → 0.30.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 +7 -2
- package/api.ts +340 -13
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +215 -13
- package/dist/api.js +188 -6
- 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 +215 -13
- package/dist/esm/api.js +187 -5
- 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/AmendOrderRequest.md +20 -0
- package/docs/AmendOrderRequestAmendmentsInner.md +26 -0
- package/docs/CustomersApi.md +4 -4
- package/docs/OrdersApi.md +132 -0
- package/docs/ReturnOrderRequest.md +20 -0
- 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.30.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,17 @@ 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.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = 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.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = 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.AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
33
|
+
Refund: 'refund',
|
|
34
|
+
Exchange: 'exchange'
|
|
35
|
+
};
|
|
32
36
|
exports.CustomsInformationPreRegistrationTypeEnum = {
|
|
33
37
|
Ioss: 'IOSS'
|
|
34
38
|
};
|
|
@@ -78,7 +82,7 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
78
82
|
* @param {Array<string>} [countries] Filter customers by country code
|
|
79
83
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
80
84
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
81
|
-
* @param {Array<
|
|
85
|
+
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
82
86
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
83
87
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
84
88
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -223,7 +227,7 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
223
227
|
* @param {Array<string>} [countries] Filter customers by country code
|
|
224
228
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
225
229
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
226
|
-
* @param {Array<
|
|
230
|
+
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
227
231
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
228
232
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
229
233
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -340,7 +344,7 @@ const CustomersApiFp = function (configuration) {
|
|
|
340
344
|
* @param {Array<string>} [countries] Filter customers by country code
|
|
341
345
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
342
346
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
343
|
-
* @param {Array<
|
|
347
|
+
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
344
348
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
345
349
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
346
350
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -392,7 +396,7 @@ const CustomersApiFp = function (configuration) {
|
|
|
392
396
|
* @param {Array<string>} [countries] Filter customers by country code
|
|
393
397
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
394
398
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
395
|
-
* @param {Array<
|
|
399
|
+
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
396
400
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
397
401
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
398
402
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -1032,6 +1036,55 @@ exports.EnquiriesApi = EnquiriesApi;
|
|
|
1032
1036
|
*/
|
|
1033
1037
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
1034
1038
|
return {
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @summary Amend the contents of an order
|
|
1042
|
+
* @param {string} project Project unique identifier
|
|
1043
|
+
* @param {string} platformId The platform identifier
|
|
1044
|
+
* @param {string} orderId The order identifier
|
|
1045
|
+
* @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
|
|
1046
|
+
* @param {*} [options] Override http request option.
|
|
1047
|
+
* @throws {RequiredError}
|
|
1048
|
+
*/
|
|
1049
|
+
amendOrder: (project_1, platformId_1, orderId_1, amendOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, amendOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, amendOrderRequest, options = {}) {
|
|
1050
|
+
// verify required parameter 'project' is not null or undefined
|
|
1051
|
+
(0, common_1.assertParamExists)('amendOrder', 'project', project);
|
|
1052
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1053
|
+
(0, common_1.assertParamExists)('amendOrder', 'platformId', platformId);
|
|
1054
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1055
|
+
(0, common_1.assertParamExists)('amendOrder', 'orderId', orderId);
|
|
1056
|
+
// verify required parameter 'amendOrderRequest' is not null or undefined
|
|
1057
|
+
(0, common_1.assertParamExists)('amendOrder', 'amendOrderRequest', amendOrderRequest);
|
|
1058
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/amend`
|
|
1059
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1060
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1061
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1062
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1063
|
+
let baseOptions;
|
|
1064
|
+
if (configuration) {
|
|
1065
|
+
baseOptions = configuration.baseOptions;
|
|
1066
|
+
}
|
|
1067
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1068
|
+
const localVarHeaderParameter = {};
|
|
1069
|
+
const localVarQueryParameter = {};
|
|
1070
|
+
// authentication session-oauth required
|
|
1071
|
+
// oauth required
|
|
1072
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1073
|
+
// authentication api-key required
|
|
1074
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1075
|
+
if (project !== undefined) {
|
|
1076
|
+
localVarQueryParameter['project'] = project;
|
|
1077
|
+
}
|
|
1078
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1079
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1081
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1082
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(amendOrderRequest, localVarRequestOptions, configuration);
|
|
1083
|
+
return {
|
|
1084
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1085
|
+
options: localVarRequestOptions,
|
|
1086
|
+
};
|
|
1087
|
+
}),
|
|
1035
1088
|
/**
|
|
1036
1089
|
*
|
|
1037
1090
|
* @summary Confirm order
|
|
@@ -1480,6 +1533,55 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1480
1533
|
options: localVarRequestOptions,
|
|
1481
1534
|
};
|
|
1482
1535
|
}),
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
1539
|
+
* @param {string} project Project unique identifier
|
|
1540
|
+
* @param {string} platformId The platform identifier
|
|
1541
|
+
* @param {string} orderId The order identifier
|
|
1542
|
+
* @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
|
|
1543
|
+
* @param {*} [options] Override http request option.
|
|
1544
|
+
* @throws {RequiredError}
|
|
1545
|
+
*/
|
|
1546
|
+
returnOrder: (project_1, platformId_1, orderId_1, returnOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, returnOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, returnOrderRequest, options = {}) {
|
|
1547
|
+
// verify required parameter 'project' is not null or undefined
|
|
1548
|
+
(0, common_1.assertParamExists)('returnOrder', 'project', project);
|
|
1549
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1550
|
+
(0, common_1.assertParamExists)('returnOrder', 'platformId', platformId);
|
|
1551
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1552
|
+
(0, common_1.assertParamExists)('returnOrder', 'orderId', orderId);
|
|
1553
|
+
// verify required parameter 'returnOrderRequest' is not null or undefined
|
|
1554
|
+
(0, common_1.assertParamExists)('returnOrder', 'returnOrderRequest', returnOrderRequest);
|
|
1555
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/return`
|
|
1556
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1557
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1560
|
+
let baseOptions;
|
|
1561
|
+
if (configuration) {
|
|
1562
|
+
baseOptions = configuration.baseOptions;
|
|
1563
|
+
}
|
|
1564
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1565
|
+
const localVarHeaderParameter = {};
|
|
1566
|
+
const localVarQueryParameter = {};
|
|
1567
|
+
// authentication session-oauth required
|
|
1568
|
+
// oauth required
|
|
1569
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1570
|
+
// authentication api-key required
|
|
1571
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1572
|
+
if (project !== undefined) {
|
|
1573
|
+
localVarQueryParameter['project'] = project;
|
|
1574
|
+
}
|
|
1575
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1576
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1577
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1578
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1579
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(returnOrderRequest, localVarRequestOptions, configuration);
|
|
1580
|
+
return {
|
|
1581
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1582
|
+
options: localVarRequestOptions,
|
|
1583
|
+
};
|
|
1584
|
+
}),
|
|
1483
1585
|
/**
|
|
1484
1586
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
1485
1587
|
* @summary Send order receipt
|
|
@@ -1583,6 +1685,25 @@ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
|
1583
1685
|
const OrdersApiFp = function (configuration) {
|
|
1584
1686
|
const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
1585
1687
|
return {
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @summary Amend the contents of an order
|
|
1691
|
+
* @param {string} project Project unique identifier
|
|
1692
|
+
* @param {string} platformId The platform identifier
|
|
1693
|
+
* @param {string} orderId The order identifier
|
|
1694
|
+
* @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
|
|
1695
|
+
* @param {*} [options] Override http request option.
|
|
1696
|
+
* @throws {RequiredError}
|
|
1697
|
+
*/
|
|
1698
|
+
amendOrder(project, platformId, orderId, amendOrderRequest, options) {
|
|
1699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1700
|
+
var _a, _b, _c;
|
|
1701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.amendOrder(project, platformId, orderId, amendOrderRequest, options);
|
|
1702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1703
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.amendOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1705
|
+
});
|
|
1706
|
+
},
|
|
1586
1707
|
/**
|
|
1587
1708
|
*
|
|
1588
1709
|
* @summary Confirm order
|
|
@@ -1755,6 +1876,25 @@ const OrdersApiFp = function (configuration) {
|
|
|
1755
1876
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1756
1877
|
});
|
|
1757
1878
|
},
|
|
1879
|
+
/**
|
|
1880
|
+
*
|
|
1881
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
1882
|
+
* @param {string} project Project unique identifier
|
|
1883
|
+
* @param {string} platformId The platform identifier
|
|
1884
|
+
* @param {string} orderId The order identifier
|
|
1885
|
+
* @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
|
|
1886
|
+
* @param {*} [options] Override http request option.
|
|
1887
|
+
* @throws {RequiredError}
|
|
1888
|
+
*/
|
|
1889
|
+
returnOrder(project, platformId, orderId, returnOrderRequest, options) {
|
|
1890
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1891
|
+
var _a, _b, _c;
|
|
1892
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.returnOrder(project, platformId, orderId, returnOrderRequest, options);
|
|
1893
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1894
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.returnOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1895
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1896
|
+
});
|
|
1897
|
+
},
|
|
1758
1898
|
/**
|
|
1759
1899
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
1760
1900
|
* @summary Send order receipt
|
|
@@ -1802,6 +1942,16 @@ exports.OrdersApiFp = OrdersApiFp;
|
|
|
1802
1942
|
const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
1803
1943
|
const localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
1804
1944
|
return {
|
|
1945
|
+
/**
|
|
1946
|
+
*
|
|
1947
|
+
* @summary Amend the contents of an order
|
|
1948
|
+
* @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
|
|
1949
|
+
* @param {*} [options] Override http request option.
|
|
1950
|
+
* @throws {RequiredError}
|
|
1951
|
+
*/
|
|
1952
|
+
amendOrder(requestParameters, options) {
|
|
1953
|
+
return localVarFp.amendOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.amendOrderRequest, options).then((request) => request(axios, basePath));
|
|
1954
|
+
},
|
|
1805
1955
|
/**
|
|
1806
1956
|
*
|
|
1807
1957
|
* @summary Confirm order
|
|
@@ -1892,6 +2042,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1892
2042
|
retryPlatformPayment(requestParameters, options) {
|
|
1893
2043
|
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1894
2044
|
},
|
|
2045
|
+
/**
|
|
2046
|
+
*
|
|
2047
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
2048
|
+
* @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
|
|
2049
|
+
* @param {*} [options] Override http request option.
|
|
2050
|
+
* @throws {RequiredError}
|
|
2051
|
+
*/
|
|
2052
|
+
returnOrder(requestParameters, options) {
|
|
2053
|
+
return localVarFp.returnOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.returnOrderRequest, options).then((request) => request(axios, basePath));
|
|
2054
|
+
},
|
|
1895
2055
|
/**
|
|
1896
2056
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
1897
2057
|
* @summary Send order receipt
|
|
@@ -1922,6 +2082,17 @@ exports.OrdersApiFactory = OrdersApiFactory;
|
|
|
1922
2082
|
* @extends {BaseAPI}
|
|
1923
2083
|
*/
|
|
1924
2084
|
class OrdersApi extends base_1.BaseAPI {
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @summary Amend the contents of an order
|
|
2088
|
+
* @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
|
|
2089
|
+
* @param {*} [options] Override http request option.
|
|
2090
|
+
* @throws {RequiredError}
|
|
2091
|
+
* @memberof OrdersApi
|
|
2092
|
+
*/
|
|
2093
|
+
amendOrder(requestParameters, options) {
|
|
2094
|
+
return (0, exports.OrdersApiFp)(this.configuration).amendOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.amendOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2095
|
+
}
|
|
1925
2096
|
/**
|
|
1926
2097
|
*
|
|
1927
2098
|
* @summary Confirm order
|
|
@@ -2021,6 +2192,17 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
2021
2192
|
retryPlatformPayment(requestParameters, options) {
|
|
2022
2193
|
return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2023
2194
|
}
|
|
2195
|
+
/**
|
|
2196
|
+
*
|
|
2197
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
2198
|
+
* @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
|
|
2199
|
+
* @param {*} [options] Override http request option.
|
|
2200
|
+
* @throws {RequiredError}
|
|
2201
|
+
* @memberof OrdersApi
|
|
2202
|
+
*/
|
|
2203
|
+
returnOrder(requestParameters, options) {
|
|
2204
|
+
return (0, exports.OrdersApiFp)(this.configuration).returnOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.returnOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2205
|
+
}
|
|
2024
2206
|
/**
|
|
2025
2207
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
2026
2208
|
* @summary Send order receipt
|
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