@teemill/platform 0.22.3 → 0.24.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 +6 -2
- package/api.ts +383 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +218 -7
- package/dist/api.js +254 -5
- 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 +218 -7
- package/dist/esm/api.js +254 -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/CreateChatChannel200Response.md +20 -0
- package/docs/EnquiriesApi.md +67 -4
- package/docs/Enquiry.md +2 -0
- package/docs/Order.md +2 -0
- package/docs/OrdersApi.md +126 -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.24.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -434,12 +434,56 @@ exports.ListCustomersSortByEnum = {
|
|
|
434
434
|
*/
|
|
435
435
|
const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
436
436
|
return {
|
|
437
|
+
/**
|
|
438
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
439
|
+
* @summary Create chat channel
|
|
440
|
+
* @param {string} project Project unique identifier
|
|
441
|
+
* @param {string} platformId The platform identifier
|
|
442
|
+
* @param {string} enquiryId The enquiry identifier
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
createChatChannel: (project_1, platformId_1, enquiryId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, ...args_1], void 0, function* (project, platformId, enquiryId, options = {}) {
|
|
447
|
+
// verify required parameter 'project' is not null or undefined
|
|
448
|
+
(0, common_1.assertParamExists)('createChatChannel', 'project', project);
|
|
449
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
450
|
+
(0, common_1.assertParamExists)('createChatChannel', 'platformId', platformId);
|
|
451
|
+
// verify required parameter 'enquiryId' is not null or undefined
|
|
452
|
+
(0, common_1.assertParamExists)('createChatChannel', 'enquiryId', enquiryId);
|
|
453
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
|
|
454
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
455
|
+
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
463
|
+
const localVarHeaderParameter = {};
|
|
464
|
+
const localVarQueryParameter = {};
|
|
465
|
+
// authentication session-oauth required
|
|
466
|
+
// oauth required
|
|
467
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
468
|
+
// authentication api-key required
|
|
469
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
470
|
+
if (project !== undefined) {
|
|
471
|
+
localVarQueryParameter['project'] = project;
|
|
472
|
+
}
|
|
473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
475
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
476
|
+
return {
|
|
477
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
};
|
|
480
|
+
}),
|
|
437
481
|
/**
|
|
438
482
|
* Get a customer enquiry
|
|
439
483
|
* @summary Get customer enquiry
|
|
440
484
|
* @param {string} project Project unique identifier
|
|
441
485
|
* @param {string} platformId The platform identifier
|
|
442
|
-
* @param {string} enquiryId
|
|
486
|
+
* @param {string} enquiryId The enquiry identifier
|
|
443
487
|
* @param {*} [options] Override http request option.
|
|
444
488
|
* @throws {RequiredError}
|
|
445
489
|
*/
|
|
@@ -547,7 +591,7 @@ const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
547
591
|
* @summary List customer enquiry Logs
|
|
548
592
|
* @param {string} project Project unique identifier
|
|
549
593
|
* @param {string} platformId The platform identifier
|
|
550
|
-
* @param {string} enquiryId
|
|
594
|
+
* @param {string} enquiryId The enquiry identifier
|
|
551
595
|
* @param {*} [options] Override http request option.
|
|
552
596
|
* @throws {RequiredError}
|
|
553
597
|
*/
|
|
@@ -596,12 +640,30 @@ exports.EnquiriesApiAxiosParamCreator = EnquiriesApiAxiosParamCreator;
|
|
|
596
640
|
const EnquiriesApiFp = function (configuration) {
|
|
597
641
|
const localVarAxiosParamCreator = (0, exports.EnquiriesApiAxiosParamCreator)(configuration);
|
|
598
642
|
return {
|
|
643
|
+
/**
|
|
644
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
645
|
+
* @summary Create chat channel
|
|
646
|
+
* @param {string} project Project unique identifier
|
|
647
|
+
* @param {string} platformId The platform identifier
|
|
648
|
+
* @param {string} enquiryId The enquiry identifier
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
*/
|
|
652
|
+
createChatChannel(project, platformId, enquiryId, options) {
|
|
653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
654
|
+
var _a, _b, _c;
|
|
655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createChatChannel(project, platformId, enquiryId, options);
|
|
656
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
657
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.createChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
658
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
659
|
+
});
|
|
660
|
+
},
|
|
599
661
|
/**
|
|
600
662
|
* Get a customer enquiry
|
|
601
663
|
* @summary Get customer enquiry
|
|
602
664
|
* @param {string} project Project unique identifier
|
|
603
665
|
* @param {string} platformId The platform identifier
|
|
604
|
-
* @param {string} enquiryId
|
|
666
|
+
* @param {string} enquiryId The enquiry identifier
|
|
605
667
|
* @param {*} [options] Override http request option.
|
|
606
668
|
* @throws {RequiredError}
|
|
607
669
|
*/
|
|
@@ -641,7 +703,7 @@ const EnquiriesApiFp = function (configuration) {
|
|
|
641
703
|
* @summary List customer enquiry Logs
|
|
642
704
|
* @param {string} project Project unique identifier
|
|
643
705
|
* @param {string} platformId The platform identifier
|
|
644
|
-
* @param {string} enquiryId
|
|
706
|
+
* @param {string} enquiryId The enquiry identifier
|
|
645
707
|
* @param {*} [options] Override http request option.
|
|
646
708
|
* @throws {RequiredError}
|
|
647
709
|
*/
|
|
@@ -664,6 +726,16 @@ exports.EnquiriesApiFp = EnquiriesApiFp;
|
|
|
664
726
|
const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
665
727
|
const localVarFp = (0, exports.EnquiriesApiFp)(configuration);
|
|
666
728
|
return {
|
|
729
|
+
/**
|
|
730
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
731
|
+
* @summary Create chat channel
|
|
732
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
createChatChannel(requestParameters, options) {
|
|
737
|
+
return localVarFp.createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
738
|
+
},
|
|
667
739
|
/**
|
|
668
740
|
* Get a customer enquiry
|
|
669
741
|
* @summary Get customer enquiry
|
|
@@ -704,6 +776,17 @@ exports.EnquiriesApiFactory = EnquiriesApiFactory;
|
|
|
704
776
|
* @extends {BaseAPI}
|
|
705
777
|
*/
|
|
706
778
|
class EnquiriesApi extends base_1.BaseAPI {
|
|
779
|
+
/**
|
|
780
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
781
|
+
* @summary Create chat channel
|
|
782
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
* @memberof EnquiriesApi
|
|
786
|
+
*/
|
|
787
|
+
createChatChannel(requestParameters, options) {
|
|
788
|
+
return (0, exports.EnquiriesApiFp)(this.configuration).createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
789
|
+
}
|
|
707
790
|
/**
|
|
708
791
|
* Get a customer enquiry
|
|
709
792
|
* @summary Get customer enquiry
|
|
@@ -891,6 +974,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
891
974
|
options: localVarRequestOptions,
|
|
892
975
|
};
|
|
893
976
|
}),
|
|
977
|
+
/**
|
|
978
|
+
* Get an order receipt for a platform by a given order ID.
|
|
979
|
+
* @summary Get order receipt
|
|
980
|
+
* @param {string} project Project unique identifier
|
|
981
|
+
* @param {string} platformId The platform identifier
|
|
982
|
+
* @param {string} orderId The order identifier
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
*/
|
|
986
|
+
getOrderReceipt: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
987
|
+
// verify required parameter 'project' is not null or undefined
|
|
988
|
+
(0, common_1.assertParamExists)('getOrderReceipt', 'project', project);
|
|
989
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
990
|
+
(0, common_1.assertParamExists)('getOrderReceipt', 'platformId', platformId);
|
|
991
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
992
|
+
(0, common_1.assertParamExists)('getOrderReceipt', 'orderId', orderId);
|
|
993
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/receipt`
|
|
994
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
995
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
997
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
998
|
+
let baseOptions;
|
|
999
|
+
if (configuration) {
|
|
1000
|
+
baseOptions = configuration.baseOptions;
|
|
1001
|
+
}
|
|
1002
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1003
|
+
const localVarHeaderParameter = {};
|
|
1004
|
+
const localVarQueryParameter = {};
|
|
1005
|
+
// authentication session-oauth required
|
|
1006
|
+
// oauth required
|
|
1007
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1008
|
+
// authentication api-key required
|
|
1009
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1010
|
+
if (project !== undefined) {
|
|
1011
|
+
localVarQueryParameter['project'] = project;
|
|
1012
|
+
}
|
|
1013
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1014
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1015
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1016
|
+
return {
|
|
1017
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1018
|
+
options: localVarRequestOptions,
|
|
1019
|
+
};
|
|
1020
|
+
}),
|
|
894
1021
|
/**
|
|
895
1022
|
* List available fulfillers for a given fulfillment
|
|
896
1023
|
* @summary List available fulfillers
|
|
@@ -1047,6 +1174,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1047
1174
|
options: localVarRequestOptions,
|
|
1048
1175
|
};
|
|
1049
1176
|
}),
|
|
1177
|
+
/**
|
|
1178
|
+
* 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.
|
|
1179
|
+
* @summary Send order receipt
|
|
1180
|
+
* @param {string} project Project unique identifier
|
|
1181
|
+
* @param {string} platformId The platform identifier
|
|
1182
|
+
* @param {string} orderId The order identifier
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
*/
|
|
1186
|
+
sendOrderReceipt: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
1187
|
+
// verify required parameter 'project' is not null or undefined
|
|
1188
|
+
(0, common_1.assertParamExists)('sendOrderReceipt', 'project', project);
|
|
1189
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1190
|
+
(0, common_1.assertParamExists)('sendOrderReceipt', 'platformId', platformId);
|
|
1191
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1192
|
+
(0, common_1.assertParamExists)('sendOrderReceipt', 'orderId', orderId);
|
|
1193
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/receipt/send`
|
|
1194
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1195
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1198
|
+
let baseOptions;
|
|
1199
|
+
if (configuration) {
|
|
1200
|
+
baseOptions = configuration.baseOptions;
|
|
1201
|
+
}
|
|
1202
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1203
|
+
const localVarHeaderParameter = {};
|
|
1204
|
+
const localVarQueryParameter = {};
|
|
1205
|
+
// authentication session-oauth required
|
|
1206
|
+
// oauth required
|
|
1207
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1208
|
+
// authentication api-key required
|
|
1209
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1210
|
+
if (project !== undefined) {
|
|
1211
|
+
localVarQueryParameter['project'] = project;
|
|
1212
|
+
}
|
|
1213
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1215
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1216
|
+
return {
|
|
1217
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1218
|
+
options: localVarRequestOptions,
|
|
1219
|
+
};
|
|
1220
|
+
}),
|
|
1050
1221
|
/**
|
|
1051
1222
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1052
1223
|
* @summary Update fulfillment
|
|
@@ -1162,6 +1333,24 @@ const OrdersApiFp = function (configuration) {
|
|
|
1162
1333
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1163
1334
|
});
|
|
1164
1335
|
},
|
|
1336
|
+
/**
|
|
1337
|
+
* Get an order receipt for a platform by a given order ID.
|
|
1338
|
+
* @summary Get order receipt
|
|
1339
|
+
* @param {string} project Project unique identifier
|
|
1340
|
+
* @param {string} platformId The platform identifier
|
|
1341
|
+
* @param {string} orderId The order identifier
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
getOrderReceipt(project, platformId, orderId, options) {
|
|
1346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1347
|
+
var _a, _b, _c;
|
|
1348
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderReceipt(project, platformId, orderId, options);
|
|
1349
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1350
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getOrderReceipt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1351
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1352
|
+
});
|
|
1353
|
+
},
|
|
1165
1354
|
/**
|
|
1166
1355
|
* List available fulfillers for a given fulfillment
|
|
1167
1356
|
* @summary List available fulfillers
|
|
@@ -1221,6 +1410,24 @@ const OrdersApiFp = function (configuration) {
|
|
|
1221
1410
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1222
1411
|
});
|
|
1223
1412
|
},
|
|
1413
|
+
/**
|
|
1414
|
+
* 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.
|
|
1415
|
+
* @summary Send order receipt
|
|
1416
|
+
* @param {string} project Project unique identifier
|
|
1417
|
+
* @param {string} platformId The platform identifier
|
|
1418
|
+
* @param {string} orderId The order identifier
|
|
1419
|
+
* @param {*} [options] Override http request option.
|
|
1420
|
+
* @throws {RequiredError}
|
|
1421
|
+
*/
|
|
1422
|
+
sendOrderReceipt(project, platformId, orderId, options) {
|
|
1423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1424
|
+
var _a, _b, _c;
|
|
1425
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendOrderReceipt(project, platformId, orderId, options);
|
|
1426
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1427
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.sendOrderReceipt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1428
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1429
|
+
});
|
|
1430
|
+
},
|
|
1224
1431
|
/**
|
|
1225
1432
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1226
1433
|
* @summary Update fulfillment
|
|
@@ -1280,6 +1487,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1280
1487
|
getOrder(requestParameters, options) {
|
|
1281
1488
|
return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1282
1489
|
},
|
|
1490
|
+
/**
|
|
1491
|
+
* Get an order receipt for a platform by a given order ID.
|
|
1492
|
+
* @summary Get order receipt
|
|
1493
|
+
* @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
|
|
1494
|
+
* @param {*} [options] Override http request option.
|
|
1495
|
+
* @throws {RequiredError}
|
|
1496
|
+
*/
|
|
1497
|
+
getOrderReceipt(requestParameters, options) {
|
|
1498
|
+
return localVarFp.getOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1499
|
+
},
|
|
1283
1500
|
/**
|
|
1284
1501
|
* List available fulfillers for a given fulfillment
|
|
1285
1502
|
* @summary List available fulfillers
|
|
@@ -1310,6 +1527,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1310
1527
|
retryPlatformPayment(requestParameters, options) {
|
|
1311
1528
|
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1312
1529
|
},
|
|
1530
|
+
/**
|
|
1531
|
+
* 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.
|
|
1532
|
+
* @summary Send order receipt
|
|
1533
|
+
* @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
|
|
1534
|
+
* @param {*} [options] Override http request option.
|
|
1535
|
+
* @throws {RequiredError}
|
|
1536
|
+
*/
|
|
1537
|
+
sendOrderReceipt(requestParameters, options) {
|
|
1538
|
+
return localVarFp.sendOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1539
|
+
},
|
|
1313
1540
|
/**
|
|
1314
1541
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1315
1542
|
* @summary Update fulfillment
|
|
@@ -1363,6 +1590,17 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
1363
1590
|
getOrder(requestParameters, options) {
|
|
1364
1591
|
return (0, exports.OrdersApiFp)(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1365
1592
|
}
|
|
1593
|
+
/**
|
|
1594
|
+
* Get an order receipt for a platform by a given order ID.
|
|
1595
|
+
* @summary Get order receipt
|
|
1596
|
+
* @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
|
|
1597
|
+
* @param {*} [options] Override http request option.
|
|
1598
|
+
* @throws {RequiredError}
|
|
1599
|
+
* @memberof OrdersApi
|
|
1600
|
+
*/
|
|
1601
|
+
getOrderReceipt(requestParameters, options) {
|
|
1602
|
+
return (0, exports.OrdersApiFp)(this.configuration).getOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1603
|
+
}
|
|
1366
1604
|
/**
|
|
1367
1605
|
* List available fulfillers for a given fulfillment
|
|
1368
1606
|
* @summary List available fulfillers
|
|
@@ -1396,6 +1634,17 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
1396
1634
|
retryPlatformPayment(requestParameters, options) {
|
|
1397
1635
|
return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1398
1636
|
}
|
|
1637
|
+
/**
|
|
1638
|
+
* 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.
|
|
1639
|
+
* @summary Send order receipt
|
|
1640
|
+
* @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
|
|
1641
|
+
* @param {*} [options] Override http request option.
|
|
1642
|
+
* @throws {RequiredError}
|
|
1643
|
+
* @memberof OrdersApi
|
|
1644
|
+
*/
|
|
1645
|
+
sendOrderReceipt(requestParameters, options) {
|
|
1646
|
+
return (0, exports.OrdersApiFp)(this.configuration).sendOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1647
|
+
}
|
|
1399
1648
|
/**
|
|
1400
1649
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1401
1650
|
* @summary Update fulfillment
|
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