@teemill/platform 0.23.0 → 0.26.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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.23.0
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -68,7 +68,10 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
68
68
  * @summary Export customers
69
69
  * @param {string} project Project unique identifier
70
70
  * @param {string} platformId The platform identifier
71
+ * @param {Array<string>} [countries] Filter customers by country code
72
+ * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
71
73
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
74
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
72
75
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
73
76
  * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
74
77
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
@@ -76,7 +79,7 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
76
79
  * @param {*} [options] Override http request option.
77
80
  * @throws {RequiredError}
78
81
  */
79
- exportCustomers: (project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
82
+ exportCustomers: (project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
80
83
  // verify required parameter 'project' is not null or undefined
81
84
  assertParamExists('exportCustomers', 'project', project);
82
85
  // verify required parameter 'platformId' is not null or undefined
@@ -100,9 +103,18 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
100
103
  if (project !== undefined) {
101
104
  localVarQueryParameter['project'] = project;
102
105
  }
106
+ if (countries) {
107
+ localVarQueryParameter['countries'] = countries;
108
+ }
109
+ if (gender !== undefined) {
110
+ localVarQueryParameter['gender'] = gender;
111
+ }
103
112
  if (totalOrderCount !== undefined) {
104
113
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
105
114
  }
115
+ if (refundedOrderCount !== undefined) {
116
+ localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
117
+ }
106
118
  if (lifetimeValue !== undefined) {
107
119
  localVarQueryParameter['lifetimeValue'] = lifetimeValue;
108
120
  }
@@ -178,14 +190,17 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
178
190
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
179
191
  * @param {string} [search] Search term to filter results
180
192
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
193
+ * @param {Array<string>} [countries] Filter customers by country code
194
+ * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
181
195
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
196
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
182
197
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
183
198
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
184
199
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
185
200
  * @param {*} [options] Override http request option.
186
201
  * @throws {RequiredError}
187
202
  */
188
- listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
203
+ listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, countries_1, gender_1, totalOrderCount_1, refundedOrderCount_1, lifetimeValue_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options = {}) {
189
204
  // verify required parameter 'project' is not null or undefined
190
205
  assertParamExists('listCustomers', 'project', project);
191
206
  // verify required parameter 'platformId' is not null or undefined
@@ -221,9 +236,18 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
221
236
  if (sortBy) {
222
237
  localVarQueryParameter['sortBy'] = sortBy;
223
238
  }
239
+ if (countries) {
240
+ localVarQueryParameter['countries'] = countries;
241
+ }
242
+ if (gender !== undefined) {
243
+ localVarQueryParameter['gender'] = gender;
244
+ }
224
245
  if (totalOrderCount !== undefined) {
225
246
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
226
247
  }
248
+ if (refundedOrderCount !== undefined) {
249
+ localVarQueryParameter['refundedOrderCount'] = refundedOrderCount;
250
+ }
227
251
  if (lifetimeValue !== undefined) {
228
252
  localVarQueryParameter['lifetimeValue'] = lifetimeValue;
229
253
  }
@@ -257,7 +281,10 @@ export const CustomersApiFp = function (configuration) {
257
281
  * @summary Export customers
258
282
  * @param {string} project Project unique identifier
259
283
  * @param {string} platformId The platform identifier
284
+ * @param {Array<string>} [countries] Filter customers by country code
285
+ * @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
260
286
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
287
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
261
288
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
262
289
  * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
263
290
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
@@ -265,10 +292,10 @@ export const CustomersApiFp = function (configuration) {
265
292
  * @param {*} [options] Override http request option.
266
293
  * @throws {RequiredError}
267
294
  */
268
- exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
295
+ exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
269
296
  return __awaiter(this, void 0, void 0, function* () {
270
297
  var _a, _b, _c;
271
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
272
299
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
273
300
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
274
301
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -301,17 +328,20 @@ export const CustomersApiFp = function (configuration) {
301
328
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
302
329
  * @param {string} [search] Search term to filter results
303
330
  * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
331
+ * @param {Array<string>} [countries] Filter customers by country code
332
+ * @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
304
333
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
334
+ * @param {number} [refundedOrderCount] Filter customers by refunded order count equal to the value provided
305
335
  * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
306
336
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
307
337
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
308
338
  * @param {*} [options] Override http request option.
309
339
  * @throws {RequiredError}
310
340
  */
311
- listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
341
+ listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
312
342
  return __awaiter(this, void 0, void 0, function* () {
313
343
  var _a, _b, _c;
314
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
344
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, gender, totalOrderCount, refundedOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
315
345
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
316
346
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
317
347
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -334,7 +364,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
334
364
  * @throws {RequiredError}
335
365
  */
336
366
  exportCustomers(requestParameters, options) {
337
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
367
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
338
368
  },
339
369
  /**
340
370
  * Get a customer for a platform by a given customer ID.
@@ -354,7 +384,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
354
384
  * @throws {RequiredError}
355
385
  */
356
386
  listCustomers(requestParameters, options) {
357
- return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
387
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
358
388
  },
359
389
  };
360
390
  };
@@ -374,7 +404,7 @@ export class CustomersApi extends BaseAPI {
374
404
  * @memberof CustomersApi
375
405
  */
376
406
  exportCustomers(requestParameters, options) {
377
- return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
407
+ return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
378
408
  }
379
409
  /**
380
410
  * Get a customer for a platform by a given customer ID.
@@ -396,9 +426,16 @@ export class CustomersApi extends BaseAPI {
396
426
  * @memberof CustomersApi
397
427
  */
398
428
  listCustomers(requestParameters, options) {
399
- return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
429
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.gender, requestParameters.totalOrderCount, requestParameters.refundedOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
400
430
  }
401
431
  }
432
+ /**
433
+ * @export
434
+ */
435
+ export const ExportCustomersGenderEnum = {
436
+ Male: 'male',
437
+ Female: 'female'
438
+ };
402
439
  /**
403
440
  * @export
404
441
  */
@@ -407,6 +444,8 @@ export const ExportCustomersSortByEnum = {
407
444
  LifetimeValue2: '-lifetimeValue',
408
445
  TotalOrderCount: '+totalOrderCount',
409
446
  TotalOrderCount2: '-totalOrderCount',
447
+ RefundedOrderCount: '+refundedOrderCount',
448
+ RefundedOrderCount2: '-refundedOrderCount',
410
449
  LastPurchased: '+lastPurchased',
411
450
  LastPurchased2: '-lastPurchased'
412
451
  };
@@ -418,9 +457,18 @@ export const ListCustomersSortByEnum = {
418
457
  LifetimeValue2: '-lifetimeValue',
419
458
  TotalOrderCount: '+totalOrderCount',
420
459
  TotalOrderCount2: '-totalOrderCount',
460
+ RefundedOrderCount: '+refundedOrderCount',
461
+ RefundedOrderCount2: '-refundedOrderCount',
421
462
  LastPurchased: '+lastPurchased',
422
463
  LastPurchased2: '-lastPurchased'
423
464
  };
465
+ /**
466
+ * @export
467
+ */
468
+ export const ListCustomersGenderEnum = {
469
+ Male: 'male',
470
+ Female: 'female'
471
+ };
424
472
  /**
425
473
  * EnquiriesApi - axios parameter creator
426
474
  * @export
@@ -623,6 +671,55 @@ export const EnquiriesApiAxiosParamCreator = function (configuration) {
623
671
  options: localVarRequestOptions,
624
672
  };
625
673
  }),
674
+ /**
675
+ * Update a customer enquiry
676
+ * @summary Update customer enquiry
677
+ * @param {string} project Project unique identifier
678
+ * @param {string} platformId The platform identifier
679
+ * @param {string} enquiryId The enquiry identifier
680
+ * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ updateCustomerEnquiry: (project_1, platformId_1, enquiryId_1, updateCustomerEnquiryRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, updateCustomerEnquiryRequest_1, ...args_1], void 0, function* (project, platformId, enquiryId, updateCustomerEnquiryRequest, options = {}) {
685
+ // verify required parameter 'project' is not null or undefined
686
+ assertParamExists('updateCustomerEnquiry', 'project', project);
687
+ // verify required parameter 'platformId' is not null or undefined
688
+ assertParamExists('updateCustomerEnquiry', 'platformId', platformId);
689
+ // verify required parameter 'enquiryId' is not null or undefined
690
+ assertParamExists('updateCustomerEnquiry', 'enquiryId', enquiryId);
691
+ // verify required parameter 'updateCustomerEnquiryRequest' is not null or undefined
692
+ assertParamExists('updateCustomerEnquiry', 'updateCustomerEnquiryRequest', updateCustomerEnquiryRequest);
693
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
694
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
695
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
696
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
697
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
698
+ let baseOptions;
699
+ if (configuration) {
700
+ baseOptions = configuration.baseOptions;
701
+ }
702
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
703
+ const localVarHeaderParameter = {};
704
+ const localVarQueryParameter = {};
705
+ // authentication session-oauth required
706
+ // oauth required
707
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
708
+ // authentication api-key required
709
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
710
+ if (project !== undefined) {
711
+ localVarQueryParameter['project'] = project;
712
+ }
713
+ localVarHeaderParameter['Content-Type'] = 'application/json';
714
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
716
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
717
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerEnquiryRequest, localVarRequestOptions, configuration);
718
+ return {
719
+ url: toPathString(localVarUrlObj),
720
+ options: localVarRequestOptions,
721
+ };
722
+ }),
626
723
  };
627
724
  };
628
725
  /**
@@ -708,6 +805,25 @@ export const EnquiriesApiFp = function (configuration) {
708
805
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
709
806
  });
710
807
  },
808
+ /**
809
+ * Update a customer enquiry
810
+ * @summary Update customer enquiry
811
+ * @param {string} project Project unique identifier
812
+ * @param {string} platformId The platform identifier
813
+ * @param {string} enquiryId The enquiry identifier
814
+ * @param {UpdateCustomerEnquiryRequest} updateCustomerEnquiryRequest Enquiry update
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options) {
819
+ return __awaiter(this, void 0, void 0, function* () {
820
+ var _a, _b, _c;
821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomerEnquiry(project, platformId, enquiryId, updateCustomerEnquiryRequest, options);
822
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
823
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.updateCustomerEnquiry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
825
+ });
826
+ },
711
827
  };
712
828
  };
713
829
  /**
@@ -757,6 +873,16 @@ export const EnquiriesApiFactory = function (configuration, basePath, axios) {
757
873
  listCustomerEnquiryLogs(requestParameters, options) {
758
874
  return localVarFp.listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
759
875
  },
876
+ /**
877
+ * Update a customer enquiry
878
+ * @summary Update customer enquiry
879
+ * @param {EnquiriesApiUpdateCustomerEnquiryRequest} requestParameters Request parameters.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ updateCustomerEnquiry(requestParameters, options) {
884
+ return localVarFp.updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(axios, basePath));
885
+ },
760
886
  };
761
887
  };
762
888
  /**
@@ -810,6 +936,17 @@ export class EnquiriesApi extends BaseAPI {
810
936
  listCustomerEnquiryLogs(requestParameters, options) {
811
937
  return EnquiriesApiFp(this.configuration).listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
812
938
  }
939
+ /**
940
+ * Update a customer enquiry
941
+ * @summary Update customer enquiry
942
+ * @param {EnquiriesApiUpdateCustomerEnquiryRequest} requestParameters Request parameters.
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ * @memberof EnquiriesApi
946
+ */
947
+ updateCustomerEnquiry(requestParameters, options) {
948
+ return EnquiriesApiFp(this.configuration).updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(this.axios, this.basePath));
949
+ }
813
950
  }
814
951
  /**
815
952
  * OrdersApi - axios parameter creator
@@ -963,6 +1100,50 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
963
1100
  options: localVarRequestOptions,
964
1101
  };
965
1102
  }),
1103
+ /**
1104
+ * Get an order receipt for a platform by a given order ID.
1105
+ * @summary Get order receipt
1106
+ * @param {string} project Project unique identifier
1107
+ * @param {string} platformId The platform identifier
1108
+ * @param {string} orderId The order identifier
1109
+ * @param {*} [options] Override http request option.
1110
+ * @throws {RequiredError}
1111
+ */
1112
+ 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 = {}) {
1113
+ // verify required parameter 'project' is not null or undefined
1114
+ assertParamExists('getOrderReceipt', 'project', project);
1115
+ // verify required parameter 'platformId' is not null or undefined
1116
+ assertParamExists('getOrderReceipt', 'platformId', platformId);
1117
+ // verify required parameter 'orderId' is not null or undefined
1118
+ assertParamExists('getOrderReceipt', 'orderId', orderId);
1119
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/receipt`
1120
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1121
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1124
+ let baseOptions;
1125
+ if (configuration) {
1126
+ baseOptions = configuration.baseOptions;
1127
+ }
1128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1129
+ const localVarHeaderParameter = {};
1130
+ const localVarQueryParameter = {};
1131
+ // authentication session-oauth required
1132
+ // oauth required
1133
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1134
+ // authentication api-key required
1135
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1136
+ if (project !== undefined) {
1137
+ localVarQueryParameter['project'] = project;
1138
+ }
1139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1141
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1142
+ return {
1143
+ url: toPathString(localVarUrlObj),
1144
+ options: localVarRequestOptions,
1145
+ };
1146
+ }),
966
1147
  /**
967
1148
  * List available fulfillers for a given fulfillment
968
1149
  * @summary List available fulfillers
@@ -1119,6 +1300,50 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
1119
1300
  options: localVarRequestOptions,
1120
1301
  };
1121
1302
  }),
1303
+ /**
1304
+ * 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.
1305
+ * @summary Send order receipt
1306
+ * @param {string} project Project unique identifier
1307
+ * @param {string} platformId The platform identifier
1308
+ * @param {string} orderId The order identifier
1309
+ * @param {*} [options] Override http request option.
1310
+ * @throws {RequiredError}
1311
+ */
1312
+ 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 = {}) {
1313
+ // verify required parameter 'project' is not null or undefined
1314
+ assertParamExists('sendOrderReceipt', 'project', project);
1315
+ // verify required parameter 'platformId' is not null or undefined
1316
+ assertParamExists('sendOrderReceipt', 'platformId', platformId);
1317
+ // verify required parameter 'orderId' is not null or undefined
1318
+ assertParamExists('sendOrderReceipt', 'orderId', orderId);
1319
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/receipt/send`
1320
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1321
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1323
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1324
+ let baseOptions;
1325
+ if (configuration) {
1326
+ baseOptions = configuration.baseOptions;
1327
+ }
1328
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1329
+ const localVarHeaderParameter = {};
1330
+ const localVarQueryParameter = {};
1331
+ // authentication session-oauth required
1332
+ // oauth required
1333
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1334
+ // authentication api-key required
1335
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1336
+ if (project !== undefined) {
1337
+ localVarQueryParameter['project'] = project;
1338
+ }
1339
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1340
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1341
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1342
+ return {
1343
+ url: toPathString(localVarUrlObj),
1344
+ options: localVarRequestOptions,
1345
+ };
1346
+ }),
1122
1347
  /**
1123
1348
  * Update a fulfillment that belongs to an order placed through the platform
1124
1349
  * @summary Update fulfillment
@@ -1233,6 +1458,24 @@ export const OrdersApiFp = function (configuration) {
1233
1458
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1234
1459
  });
1235
1460
  },
1461
+ /**
1462
+ * Get an order receipt for a platform by a given order ID.
1463
+ * @summary Get order receipt
1464
+ * @param {string} project Project unique identifier
1465
+ * @param {string} platformId The platform identifier
1466
+ * @param {string} orderId The order identifier
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ */
1470
+ getOrderReceipt(project, platformId, orderId, options) {
1471
+ return __awaiter(this, void 0, void 0, function* () {
1472
+ var _a, _b, _c;
1473
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderReceipt(project, platformId, orderId, options);
1474
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1475
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getOrderReceipt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1477
+ });
1478
+ },
1236
1479
  /**
1237
1480
  * List available fulfillers for a given fulfillment
1238
1481
  * @summary List available fulfillers
@@ -1292,6 +1535,24 @@ export const OrdersApiFp = function (configuration) {
1292
1535
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1293
1536
  });
1294
1537
  },
1538
+ /**
1539
+ * 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.
1540
+ * @summary Send order receipt
1541
+ * @param {string} project Project unique identifier
1542
+ * @param {string} platformId The platform identifier
1543
+ * @param {string} orderId The order identifier
1544
+ * @param {*} [options] Override http request option.
1545
+ * @throws {RequiredError}
1546
+ */
1547
+ sendOrderReceipt(project, platformId, orderId, options) {
1548
+ return __awaiter(this, void 0, void 0, function* () {
1549
+ var _a, _b, _c;
1550
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendOrderReceipt(project, platformId, orderId, options);
1551
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1552
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.sendOrderReceipt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1553
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1554
+ });
1555
+ },
1295
1556
  /**
1296
1557
  * Update a fulfillment that belongs to an order placed through the platform
1297
1558
  * @summary Update fulfillment
@@ -1350,6 +1611,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1350
1611
  getOrder(requestParameters, options) {
1351
1612
  return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1352
1613
  },
1614
+ /**
1615
+ * Get an order receipt for a platform by a given order ID.
1616
+ * @summary Get order receipt
1617
+ * @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
1618
+ * @param {*} [options] Override http request option.
1619
+ * @throws {RequiredError}
1620
+ */
1621
+ getOrderReceipt(requestParameters, options) {
1622
+ return localVarFp.getOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1623
+ },
1353
1624
  /**
1354
1625
  * List available fulfillers for a given fulfillment
1355
1626
  * @summary List available fulfillers
@@ -1380,6 +1651,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1380
1651
  retryPlatformPayment(requestParameters, options) {
1381
1652
  return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1382
1653
  },
1654
+ /**
1655
+ * 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.
1656
+ * @summary Send order receipt
1657
+ * @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
1658
+ * @param {*} [options] Override http request option.
1659
+ * @throws {RequiredError}
1660
+ */
1661
+ sendOrderReceipt(requestParameters, options) {
1662
+ return localVarFp.sendOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1663
+ },
1383
1664
  /**
1384
1665
  * Update a fulfillment that belongs to an order placed through the platform
1385
1666
  * @summary Update fulfillment
@@ -1432,6 +1713,17 @@ export class OrdersApi extends BaseAPI {
1432
1713
  getOrder(requestParameters, options) {
1433
1714
  return OrdersApiFp(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1434
1715
  }
1716
+ /**
1717
+ * Get an order receipt for a platform by a given order ID.
1718
+ * @summary Get order receipt
1719
+ * @param {OrdersApiGetOrderReceiptRequest} requestParameters Request parameters.
1720
+ * @param {*} [options] Override http request option.
1721
+ * @throws {RequiredError}
1722
+ * @memberof OrdersApi
1723
+ */
1724
+ getOrderReceipt(requestParameters, options) {
1725
+ return OrdersApiFp(this.configuration).getOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1726
+ }
1435
1727
  /**
1436
1728
  * List available fulfillers for a given fulfillment
1437
1729
  * @summary List available fulfillers
@@ -1465,6 +1757,17 @@ export class OrdersApi extends BaseAPI {
1465
1757
  retryPlatformPayment(requestParameters, options) {
1466
1758
  return OrdersApiFp(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1467
1759
  }
1760
+ /**
1761
+ * 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.
1762
+ * @summary Send order receipt
1763
+ * @param {OrdersApiSendOrderReceiptRequest} requestParameters Request parameters.
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ * @memberof OrdersApi
1767
+ */
1768
+ sendOrderReceipt(requestParameters, options) {
1769
+ return OrdersApiFp(this.configuration).sendOrderReceipt(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1770
+ }
1468
1771
  /**
1469
1772
  * Update a fulfillment that belongs to an order placed through the platform
1470
1773
  * @summary Update fulfillment
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.26.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.23.0
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.26.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.23.0
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.26.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.23.0
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.26.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.23.0
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.26.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.23.0
8
+ * The version of the OpenAPI document: 0.26.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).