@teemill/platform 0.12.3 → 0.14.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/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.12.3
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
25
+ exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.VariantAttributeThumbnailTypeEnum = exports.ProductAttributeValuesInnerThumbnailTypeEnum = exports.PaymentAccountMethodEnum = exports.OutputFileFormatEnum = exports.OutputPositionEnum = exports.OrderStatus = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -59,6 +59,9 @@ exports.OutputFileFormatEnum = {
59
59
  Webp: 'webp',
60
60
  Pdf: 'pdf'
61
61
  };
62
+ exports.PaymentAccountMethodEnum = {
63
+ Stripe: 'stripe'
64
+ };
62
65
  exports.ProductAttributeValuesInnerThumbnailTypeEnum = {
63
66
  Text: 'text',
64
67
  Color: 'color',
@@ -81,13 +84,14 @@ const CustomersApiAxiosParamCreator = function (configuration) {
81
84
  * @param {string} project Project unique identifier
82
85
  * @param {string} platformId The platform identifier
83
86
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
87
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
84
88
  * @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.
85
89
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
86
90
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
87
91
  * @param {*} [options] Override http request option.
88
92
  * @throws {RequiredError}
89
93
  */
90
- exportCustomers: (project_1, platformId_1, totalOrderCount_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, totalOrderCount_1, sortBy_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options = {}) {
94
+ 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 = {}) {
91
95
  // verify required parameter 'project' is not null or undefined
92
96
  (0, common_1.assertParamExists)('exportCustomers', 'project', project);
93
97
  // verify required parameter 'platformId' is not null or undefined
@@ -114,6 +118,9 @@ const CustomersApiAxiosParamCreator = function (configuration) {
114
118
  if (totalOrderCount !== undefined) {
115
119
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
116
120
  }
121
+ if (lifetimeValue !== undefined) {
122
+ localVarQueryParameter['lifetimeValue'] = lifetimeValue;
123
+ }
117
124
  if (sortBy) {
118
125
  localVarQueryParameter['sortBy'] = sortBy;
119
126
  }
@@ -187,12 +194,13 @@ const CustomersApiAxiosParamCreator = function (configuration) {
187
194
  * @param {string} [search] Search term to filter based on order reference, customer name and email
188
195
  * @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.
189
196
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
197
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
190
198
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
191
199
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
192
200
  * @param {*} [options] Override http request option.
193
201
  * @throws {RequiredError}
194
202
  */
195
- listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, sortBy_1, totalOrderCount_1, lastPurchasedStart_1, lastPurchasedEnd_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options = {}) {
203
+ 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 = {}) {
196
204
  // verify required parameter 'project' is not null or undefined
197
205
  (0, common_1.assertParamExists)('listCustomers', 'project', project);
198
206
  // verify required parameter 'platformId' is not null or undefined
@@ -231,6 +239,9 @@ const CustomersApiAxiosParamCreator = function (configuration) {
231
239
  if (totalOrderCount !== undefined) {
232
240
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
233
241
  }
242
+ if (lifetimeValue !== undefined) {
243
+ localVarQueryParameter['lifetimeValue'] = lifetimeValue;
244
+ }
234
245
  if (lastPurchasedStart !== undefined) {
235
246
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart instanceof Date) ?
236
247
  lastPurchasedStart.toISOString() :
@@ -263,16 +274,17 @@ const CustomersApiFp = function (configuration) {
263
274
  * @param {string} project Project unique identifier
264
275
  * @param {string} platformId The platform identifier
265
276
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
277
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
266
278
  * @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.
267
279
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
268
280
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
269
281
  * @param {*} [options] Override http request option.
270
282
  * @throws {RequiredError}
271
283
  */
272
- exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
284
+ exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options) {
273
285
  return __awaiter(this, void 0, void 0, function* () {
274
286
  var _a, _b, _c;
275
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
287
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
276
288
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
277
289
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
278
290
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -306,15 +318,16 @@ const CustomersApiFp = function (configuration) {
306
318
  * @param {string} [search] Search term to filter based on order reference, customer name and email
307
319
  * @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.
308
320
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
321
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
309
322
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
310
323
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
311
324
  * @param {*} [options] Override http request option.
312
325
  * @throws {RequiredError}
313
326
  */
314
- listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options) {
327
+ listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options) {
315
328
  return __awaiter(this, void 0, void 0, function* () {
316
329
  var _a, _b, _c;
317
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options);
330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
318
331
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
319
332
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
320
333
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -338,7 +351,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
338
351
  * @throws {RequiredError}
339
352
  */
340
353
  exportCustomers(requestParameters, options) {
341
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
354
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
342
355
  },
343
356
  /**
344
357
  * Get a customer for a platform by a given customer ID.
@@ -358,7 +371,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
358
371
  * @throws {RequiredError}
359
372
  */
360
373
  listCustomers(requestParameters, options) {
361
- return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
374
+ 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));
362
375
  },
363
376
  };
364
377
  };
@@ -379,7 +392,7 @@ class CustomersApi extends base_1.BaseAPI {
379
392
  * @memberof CustomersApi
380
393
  */
381
394
  exportCustomers(requestParameters, options) {
382
- return (0, exports.CustomersApiFp)(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
395
+ return (0, exports.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));
383
396
  }
384
397
  /**
385
398
  * Get a customer for a platform by a given customer ID.
@@ -401,7 +414,7 @@ class CustomersApi extends base_1.BaseAPI {
401
414
  * @memberof CustomersApi
402
415
  */
403
416
  listCustomers(requestParameters, options) {
404
- return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
417
+ return (0, exports.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));
405
418
  }
406
419
  }
407
420
  exports.CustomersApi = CustomersApi;
@@ -1009,6 +1022,263 @@ class OrdersApi extends base_1.BaseAPI {
1009
1022
  }
1010
1023
  }
1011
1024
  exports.OrdersApi = OrdersApi;
1025
+ /**
1026
+ * PaymentApi - axios parameter creator
1027
+ * @export
1028
+ */
1029
+ const PaymentApiAxiosParamCreator = function (configuration) {
1030
+ return {
1031
+ /**
1032
+ * Authorize a Stripe payment account
1033
+ * @summary Authorize Stripe
1034
+ * @param {string} project Project unique identifier
1035
+ * @param {*} [options] Override http request option.
1036
+ * @throws {RequiredError}
1037
+ */
1038
+ authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1039
+ // verify required parameter 'project' is not null or undefined
1040
+ (0, common_1.assertParamExists)('authorizeStripe', 'project', project);
1041
+ const localVarPath = `/v1/platform/payment/stripe/authorize`;
1042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1043
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1044
+ let baseOptions;
1045
+ if (configuration) {
1046
+ baseOptions = configuration.baseOptions;
1047
+ }
1048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1049
+ const localVarHeaderParameter = {};
1050
+ const localVarQueryParameter = {};
1051
+ // authentication session-oauth required
1052
+ // oauth required
1053
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1054
+ // authentication api-key required
1055
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1056
+ if (project !== undefined) {
1057
+ localVarQueryParameter['project'] = project;
1058
+ }
1059
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1061
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1062
+ return {
1063
+ url: (0, common_1.toPathString)(localVarUrlObj),
1064
+ options: localVarRequestOptions,
1065
+ };
1066
+ }),
1067
+ /**
1068
+ * Deauthorize a Stripe payment account
1069
+ * @summary Deauthorize Stripe
1070
+ * @param {string} project Project unique identifier
1071
+ * @param {*} [options] Override http request option.
1072
+ * @throws {RequiredError}
1073
+ */
1074
+ deauthorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1075
+ // verify required parameter 'project' is not null or undefined
1076
+ (0, common_1.assertParamExists)('deauthorizeStripe', 'project', project);
1077
+ const localVarPath = `/v1/platform/payment/stripe/deauthorize`;
1078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1079
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1080
+ let baseOptions;
1081
+ if (configuration) {
1082
+ baseOptions = configuration.baseOptions;
1083
+ }
1084
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1085
+ const localVarHeaderParameter = {};
1086
+ const localVarQueryParameter = {};
1087
+ // authentication session-oauth required
1088
+ // oauth required
1089
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1090
+ // authentication api-key required
1091
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1092
+ if (project !== undefined) {
1093
+ localVarQueryParameter['project'] = project;
1094
+ }
1095
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1097
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1098
+ return {
1099
+ url: (0, common_1.toPathString)(localVarUrlObj),
1100
+ options: localVarRequestOptions,
1101
+ };
1102
+ }),
1103
+ /**
1104
+ * Get the Stripe payment account for the project
1105
+ * @summary Get Stripe Payment Account
1106
+ * @param {string} project Project unique identifier
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ getStripePaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1111
+ // verify required parameter 'project' is not null or undefined
1112
+ (0, common_1.assertParamExists)('getStripePaymentAccount', 'project', project);
1113
+ const localVarPath = `/v1/platform/payment/stripe`;
1114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1116
+ let baseOptions;
1117
+ if (configuration) {
1118
+ baseOptions = configuration.baseOptions;
1119
+ }
1120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1121
+ const localVarHeaderParameter = {};
1122
+ const localVarQueryParameter = {};
1123
+ // authentication session-oauth required
1124
+ // oauth required
1125
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1126
+ // authentication api-key required
1127
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1128
+ if (project !== undefined) {
1129
+ localVarQueryParameter['project'] = project;
1130
+ }
1131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1133
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1134
+ return {
1135
+ url: (0, common_1.toPathString)(localVarUrlObj),
1136
+ options: localVarRequestOptions,
1137
+ };
1138
+ }),
1139
+ };
1140
+ };
1141
+ exports.PaymentApiAxiosParamCreator = PaymentApiAxiosParamCreator;
1142
+ /**
1143
+ * PaymentApi - functional programming interface
1144
+ * @export
1145
+ */
1146
+ const PaymentApiFp = function (configuration) {
1147
+ const localVarAxiosParamCreator = (0, exports.PaymentApiAxiosParamCreator)(configuration);
1148
+ return {
1149
+ /**
1150
+ * Authorize a Stripe payment account
1151
+ * @summary Authorize Stripe
1152
+ * @param {string} project Project unique identifier
1153
+ * @param {*} [options] Override http request option.
1154
+ * @throws {RequiredError}
1155
+ */
1156
+ authorizeStripe(project, options) {
1157
+ return __awaiter(this, void 0, void 0, function* () {
1158
+ var _a, _b, _c;
1159
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeStripe(project, options);
1160
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1161
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.authorizeStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1162
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1163
+ });
1164
+ },
1165
+ /**
1166
+ * Deauthorize a Stripe payment account
1167
+ * @summary Deauthorize Stripe
1168
+ * @param {string} project Project unique identifier
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ deauthorizeStripe(project, options) {
1173
+ return __awaiter(this, void 0, void 0, function* () {
1174
+ var _a, _b, _c;
1175
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deauthorizeStripe(project, options);
1176
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1177
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.deauthorizeStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1178
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1179
+ });
1180
+ },
1181
+ /**
1182
+ * Get the Stripe payment account for the project
1183
+ * @summary Get Stripe Payment Account
1184
+ * @param {string} project Project unique identifier
1185
+ * @param {*} [options] Override http request option.
1186
+ * @throws {RequiredError}
1187
+ */
1188
+ getStripePaymentAccount(project, options) {
1189
+ return __awaiter(this, void 0, void 0, function* () {
1190
+ var _a, _b, _c;
1191
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStripePaymentAccount(project, options);
1192
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1193
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.getStripePaymentAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1194
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1195
+ });
1196
+ },
1197
+ };
1198
+ };
1199
+ exports.PaymentApiFp = PaymentApiFp;
1200
+ /**
1201
+ * PaymentApi - factory interface
1202
+ * @export
1203
+ */
1204
+ const PaymentApiFactory = function (configuration, basePath, axios) {
1205
+ const localVarFp = (0, exports.PaymentApiFp)(configuration);
1206
+ return {
1207
+ /**
1208
+ * Authorize a Stripe payment account
1209
+ * @summary Authorize Stripe
1210
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
1211
+ * @param {*} [options] Override http request option.
1212
+ * @throws {RequiredError}
1213
+ */
1214
+ authorizeStripe(requestParameters, options) {
1215
+ return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
1216
+ },
1217
+ /**
1218
+ * Deauthorize a Stripe payment account
1219
+ * @summary Deauthorize Stripe
1220
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ deauthorizeStripe(requestParameters, options) {
1225
+ return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
1226
+ },
1227
+ /**
1228
+ * Get the Stripe payment account for the project
1229
+ * @summary Get Stripe Payment Account
1230
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ */
1234
+ getStripePaymentAccount(requestParameters, options) {
1235
+ return localVarFp.getStripePaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
1236
+ },
1237
+ };
1238
+ };
1239
+ exports.PaymentApiFactory = PaymentApiFactory;
1240
+ /**
1241
+ * PaymentApi - object-oriented interface
1242
+ * @export
1243
+ * @class PaymentApi
1244
+ * @extends {BaseAPI}
1245
+ */
1246
+ class PaymentApi extends base_1.BaseAPI {
1247
+ /**
1248
+ * Authorize a Stripe payment account
1249
+ * @summary Authorize Stripe
1250
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ * @memberof PaymentApi
1254
+ */
1255
+ authorizeStripe(requestParameters, options) {
1256
+ return (0, exports.PaymentApiFp)(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1257
+ }
1258
+ /**
1259
+ * Deauthorize a Stripe payment account
1260
+ * @summary Deauthorize Stripe
1261
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ * @memberof PaymentApi
1265
+ */
1266
+ deauthorizeStripe(requestParameters, options) {
1267
+ return (0, exports.PaymentApiFp)(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1268
+ }
1269
+ /**
1270
+ * Get the Stripe payment account for the project
1271
+ * @summary Get Stripe Payment Account
1272
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
1273
+ * @param {*} [options] Override http request option.
1274
+ * @throws {RequiredError}
1275
+ * @memberof PaymentApi
1276
+ */
1277
+ getStripePaymentAccount(requestParameters, options) {
1278
+ return (0, exports.PaymentApiFp)(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1279
+ }
1280
+ }
1281
+ exports.PaymentApi = PaymentApi;
1012
1282
  /**
1013
1283
  * PlatformApi - axios parameter creator
1014
1284
  * @export
package/dist/base.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.12.3
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.12.3
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.12.3
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.12.3
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  *
10
10
  *
11
11
  * 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.12.3
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.12.3
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,7 +23,7 @@ class Configuration {
23
23
  this.accessToken = param.accessToken;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.12.3/typescript-axios" }) }, param.baseOptions);
26
+ this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.14.0/typescript-axios" }) }, param.baseOptions);
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**