@teemill/platform 0.13.0 → 0.14.2

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.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.13.0
5
+ * The version of the OpenAPI document: 0.14.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -143,6 +143,19 @@ export interface ApplicationTechnology {
143
143
  */
144
144
  'ref'?: string;
145
145
  }
146
+ /**
147
+ *
148
+ * @export
149
+ * @interface AuthorizeStripe200Response
150
+ */
151
+ export interface AuthorizeStripe200Response {
152
+ /**
153
+ * The URL to redirect to
154
+ * @type {string}
155
+ * @memberof AuthorizeStripe200Response
156
+ */
157
+ 'redirect_url': string;
158
+ }
146
159
  /**
147
160
  * Order recipient contact information, used only for courier tracking/updates.
148
161
  * @export
@@ -638,6 +651,12 @@ export interface Order {
638
651
  * @memberof Order
639
652
  */
640
653
  'statusHistory'?: Array<StatusHistoryItem>;
654
+ /**
655
+ *
656
+ * @type {Project}
657
+ * @memberof Order
658
+ */
659
+ 'project': Project;
641
660
  }
642
661
  /**
643
662
  *
@@ -655,8 +674,15 @@ export interface OrderItem {
655
674
  * Reference URL to the order item variant
656
675
  * @type {string}
657
676
  * @memberof OrderItem
677
+ * @deprecated
658
678
  */
659
679
  'variantRef': string;
680
+ /**
681
+ *
682
+ * @type {Variant1}
683
+ * @memberof OrderItem
684
+ */
685
+ 'variant': Variant1;
660
686
  /**
661
687
  * Options associated to an order item\'s variant, such as color and size.
662
688
  * @type {Array<Option>}
@@ -956,6 +982,37 @@ export interface OutputPadding {
956
982
  */
957
983
  'left': number;
958
984
  }
985
+ /**
986
+ *
987
+ * @export
988
+ * @interface PaymentAccount
989
+ */
990
+ export interface PaymentAccount {
991
+ /**
992
+ * The name of the payment account
993
+ * @type {string}
994
+ * @memberof PaymentAccount
995
+ */
996
+ 'name': string;
997
+ /**
998
+ * The payment method
999
+ * @type {string}
1000
+ * @memberof PaymentAccount
1001
+ */
1002
+ 'method': PaymentAccountMethodEnum;
1003
+ /**
1004
+ * The configuration for the payment account
1005
+ * @type {{ [key: string]: string; }}
1006
+ * @memberof PaymentAccount
1007
+ */
1008
+ 'config': {
1009
+ [key: string]: string;
1010
+ };
1011
+ }
1012
+ export declare const PaymentAccountMethodEnum: {
1013
+ readonly Stripe: "stripe";
1014
+ };
1015
+ export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
959
1016
  /**
960
1017
  *
961
1018
  * @export
@@ -1291,6 +1348,25 @@ export interface ProductVariantsInner {
1291
1348
  */
1292
1349
  'ref'?: string;
1293
1350
  }
1351
+ /**
1352
+ *
1353
+ * @export
1354
+ * @interface Project
1355
+ */
1356
+ export interface Project {
1357
+ /**
1358
+ *
1359
+ * @type {string}
1360
+ * @memberof Project
1361
+ */
1362
+ 'id': string;
1363
+ /**
1364
+ * The name of the project
1365
+ * @type {string}
1366
+ * @memberof Project
1367
+ */
1368
+ 'name': string;
1369
+ }
1294
1370
  /**
1295
1371
  *
1296
1372
  * @export
@@ -1613,6 +1689,31 @@ export interface Variant {
1613
1689
  */
1614
1690
  'applications'?: Array<Application>;
1615
1691
  }
1692
+ /**
1693
+ *
1694
+ * @export
1695
+ * @interface Variant1
1696
+ */
1697
+ export interface Variant1 {
1698
+ /**
1699
+ * Unique object identifier
1700
+ * @type {string}
1701
+ * @memberof Variant1
1702
+ */
1703
+ 'id': string;
1704
+ /**
1705
+ * A reference to the resource location
1706
+ * @type {string}
1707
+ * @memberof Variant1
1708
+ */
1709
+ 'ref': string;
1710
+ /**
1711
+ * A reference to the resource location
1712
+ * @type {string}
1713
+ * @memberof Variant1
1714
+ */
1715
+ 'warehouseVariantRef': string;
1716
+ }
1616
1717
  /**
1617
1718
  *
1618
1719
  * @export
@@ -2485,6 +2586,170 @@ export declare class OrdersApi extends BaseAPI {
2485
2586
  */
2486
2587
  updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Fulfillment, any>>;
2487
2588
  }
2589
+ /**
2590
+ * PaymentApi - axios parameter creator
2591
+ * @export
2592
+ */
2593
+ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
2594
+ /**
2595
+ * Authorize a Stripe payment account
2596
+ * @summary Authorize Stripe
2597
+ * @param {string} project Project unique identifier
2598
+ * @param {*} [options] Override http request option.
2599
+ * @throws {RequiredError}
2600
+ */
2601
+ authorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2602
+ /**
2603
+ * Deauthorize a Stripe payment account
2604
+ * @summary Deauthorize Stripe
2605
+ * @param {string} project Project unique identifier
2606
+ * @param {*} [options] Override http request option.
2607
+ * @throws {RequiredError}
2608
+ */
2609
+ deauthorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2610
+ /**
2611
+ * Get the Stripe payment account for the project
2612
+ * @summary Get Stripe Payment Account
2613
+ * @param {string} project Project unique identifier
2614
+ * @param {*} [options] Override http request option.
2615
+ * @throws {RequiredError}
2616
+ */
2617
+ getStripePaymentAccount: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2618
+ };
2619
+ /**
2620
+ * PaymentApi - functional programming interface
2621
+ * @export
2622
+ */
2623
+ export declare const PaymentApiFp: (configuration?: Configuration) => {
2624
+ /**
2625
+ * Authorize a Stripe payment account
2626
+ * @summary Authorize Stripe
2627
+ * @param {string} project Project unique identifier
2628
+ * @param {*} [options] Override http request option.
2629
+ * @throws {RequiredError}
2630
+ */
2631
+ authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>>;
2632
+ /**
2633
+ * Deauthorize a Stripe payment account
2634
+ * @summary Deauthorize Stripe
2635
+ * @param {string} project Project unique identifier
2636
+ * @param {*} [options] Override http request option.
2637
+ * @throws {RequiredError}
2638
+ */
2639
+ deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2640
+ /**
2641
+ * Get the Stripe payment account for the project
2642
+ * @summary Get Stripe Payment Account
2643
+ * @param {string} project Project unique identifier
2644
+ * @param {*} [options] Override http request option.
2645
+ * @throws {RequiredError}
2646
+ */
2647
+ getStripePaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>>;
2648
+ };
2649
+ /**
2650
+ * PaymentApi - factory interface
2651
+ * @export
2652
+ */
2653
+ export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2654
+ /**
2655
+ * Authorize a Stripe payment account
2656
+ * @summary Authorize Stripe
2657
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
2658
+ * @param {*} [options] Override http request option.
2659
+ * @throws {RequiredError}
2660
+ */
2661
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
2662
+ /**
2663
+ * Deauthorize a Stripe payment account
2664
+ * @summary Deauthorize Stripe
2665
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
2666
+ * @param {*} [options] Override http request option.
2667
+ * @throws {RequiredError}
2668
+ */
2669
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2670
+ /**
2671
+ * Get the Stripe payment account for the project
2672
+ * @summary Get Stripe Payment Account
2673
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
2674
+ * @param {*} [options] Override http request option.
2675
+ * @throws {RequiredError}
2676
+ */
2677
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
2678
+ };
2679
+ /**
2680
+ * Request parameters for authorizeStripe operation in PaymentApi.
2681
+ * @export
2682
+ * @interface PaymentApiAuthorizeStripeRequest
2683
+ */
2684
+ export interface PaymentApiAuthorizeStripeRequest {
2685
+ /**
2686
+ * Project unique identifier
2687
+ * @type {string}
2688
+ * @memberof PaymentApiAuthorizeStripe
2689
+ */
2690
+ readonly project: string;
2691
+ }
2692
+ /**
2693
+ * Request parameters for deauthorizeStripe operation in PaymentApi.
2694
+ * @export
2695
+ * @interface PaymentApiDeauthorizeStripeRequest
2696
+ */
2697
+ export interface PaymentApiDeauthorizeStripeRequest {
2698
+ /**
2699
+ * Project unique identifier
2700
+ * @type {string}
2701
+ * @memberof PaymentApiDeauthorizeStripe
2702
+ */
2703
+ readonly project: string;
2704
+ }
2705
+ /**
2706
+ * Request parameters for getStripePaymentAccount operation in PaymentApi.
2707
+ * @export
2708
+ * @interface PaymentApiGetStripePaymentAccountRequest
2709
+ */
2710
+ export interface PaymentApiGetStripePaymentAccountRequest {
2711
+ /**
2712
+ * Project unique identifier
2713
+ * @type {string}
2714
+ * @memberof PaymentApiGetStripePaymentAccount
2715
+ */
2716
+ readonly project: string;
2717
+ }
2718
+ /**
2719
+ * PaymentApi - object-oriented interface
2720
+ * @export
2721
+ * @class PaymentApi
2722
+ * @extends {BaseAPI}
2723
+ */
2724
+ export declare class PaymentApi extends BaseAPI {
2725
+ /**
2726
+ * Authorize a Stripe payment account
2727
+ * @summary Authorize Stripe
2728
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
2729
+ * @param {*} [options] Override http request option.
2730
+ * @throws {RequiredError}
2731
+ * @memberof PaymentApi
2732
+ */
2733
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
2734
+ /**
2735
+ * Deauthorize a Stripe payment account
2736
+ * @summary Deauthorize Stripe
2737
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
2738
+ * @param {*} [options] Override http request option.
2739
+ * @throws {RequiredError}
2740
+ * @memberof PaymentApi
2741
+ */
2742
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2743
+ /**
2744
+ * Get the Stripe payment account for the project
2745
+ * @summary Get Stripe Payment Account
2746
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
2747
+ * @param {*} [options] Override http request option.
2748
+ * @throws {RequiredError}
2749
+ * @memberof PaymentApi
2750
+ */
2751
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any>>;
2752
+ }
2488
2753
  /**
2489
2754
  * PlatformApi - axios parameter creator
2490
2755
  * @export
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.13.0
8
+ * The version of the OpenAPI document: 0.14.2
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',
@@ -1019,6 +1022,263 @@ class OrdersApi extends base_1.BaseAPI {
1019
1022
  }
1020
1023
  }
1021
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;
1022
1282
  /**
1023
1283
  * PlatformApi - axios parameter creator
1024
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.13.0
5
+ * The version of the OpenAPI document: 0.14.2
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.13.0
8
+ * The version of the OpenAPI document: 0.14.2
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.13.0
5
+ * The version of the OpenAPI document: 0.14.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
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.13.0
8
+ * The version of the OpenAPI document: 0.14.2
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.13.0
5
+ * The version of the OpenAPI document: 0.14.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).