@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.
@@ -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).
@@ -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.13.0/typescript-axios" }) }, param.baseOptions);
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**
package/dist/esm/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/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.13.0
7
+ * The version of the OpenAPI document: 0.14.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -56,6 +56,9 @@ export const OutputFileFormatEnum = {
56
56
  Webp: 'webp',
57
57
  Pdf: 'pdf'
58
58
  };
59
+ export const PaymentAccountMethodEnum = {
60
+ Stripe: 'stripe'
61
+ };
59
62
  export const ProductAttributeValuesInnerThumbnailTypeEnum = {
60
63
  Text: 'text',
61
64
  Color: 'color',
@@ -1008,6 +1011,259 @@ export class OrdersApi extends BaseAPI {
1008
1011
  return OrdersApiFp(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
1009
1012
  }
1010
1013
  }
1014
+ /**
1015
+ * PaymentApi - axios parameter creator
1016
+ * @export
1017
+ */
1018
+ export const PaymentApiAxiosParamCreator = function (configuration) {
1019
+ return {
1020
+ /**
1021
+ * Authorize a Stripe payment account
1022
+ * @summary Authorize Stripe
1023
+ * @param {string} project Project unique identifier
1024
+ * @param {*} [options] Override http request option.
1025
+ * @throws {RequiredError}
1026
+ */
1027
+ authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1028
+ // verify required parameter 'project' is not null or undefined
1029
+ assertParamExists('authorizeStripe', 'project', project);
1030
+ const localVarPath = `/v1/platform/payment/stripe/authorize`;
1031
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1032
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1033
+ let baseOptions;
1034
+ if (configuration) {
1035
+ baseOptions = configuration.baseOptions;
1036
+ }
1037
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1038
+ const localVarHeaderParameter = {};
1039
+ const localVarQueryParameter = {};
1040
+ // authentication session-oauth required
1041
+ // oauth required
1042
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1043
+ // authentication api-key required
1044
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1045
+ if (project !== undefined) {
1046
+ localVarQueryParameter['project'] = project;
1047
+ }
1048
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1049
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1050
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1051
+ return {
1052
+ url: toPathString(localVarUrlObj),
1053
+ options: localVarRequestOptions,
1054
+ };
1055
+ }),
1056
+ /**
1057
+ * Deauthorize a Stripe payment account
1058
+ * @summary Deauthorize Stripe
1059
+ * @param {string} project Project unique identifier
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ */
1063
+ deauthorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1064
+ // verify required parameter 'project' is not null or undefined
1065
+ assertParamExists('deauthorizeStripe', 'project', project);
1066
+ const localVarPath = `/v1/platform/payment/stripe/deauthorize`;
1067
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1068
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1069
+ let baseOptions;
1070
+ if (configuration) {
1071
+ baseOptions = configuration.baseOptions;
1072
+ }
1073
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1074
+ const localVarHeaderParameter = {};
1075
+ const localVarQueryParameter = {};
1076
+ // authentication session-oauth required
1077
+ // oauth required
1078
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1079
+ // authentication api-key required
1080
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1081
+ if (project !== undefined) {
1082
+ localVarQueryParameter['project'] = project;
1083
+ }
1084
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1085
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1086
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1087
+ return {
1088
+ url: toPathString(localVarUrlObj),
1089
+ options: localVarRequestOptions,
1090
+ };
1091
+ }),
1092
+ /**
1093
+ * Get the Stripe payment account for the project
1094
+ * @summary Get Stripe Payment Account
1095
+ * @param {string} project Project unique identifier
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ getStripePaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1100
+ // verify required parameter 'project' is not null or undefined
1101
+ assertParamExists('getStripePaymentAccount', 'project', project);
1102
+ const localVarPath = `/v1/platform/payment/stripe`;
1103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1105
+ let baseOptions;
1106
+ if (configuration) {
1107
+ baseOptions = configuration.baseOptions;
1108
+ }
1109
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1110
+ const localVarHeaderParameter = {};
1111
+ const localVarQueryParameter = {};
1112
+ // authentication session-oauth required
1113
+ // oauth required
1114
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1115
+ // authentication api-key required
1116
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1117
+ if (project !== undefined) {
1118
+ localVarQueryParameter['project'] = project;
1119
+ }
1120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1122
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1123
+ return {
1124
+ url: toPathString(localVarUrlObj),
1125
+ options: localVarRequestOptions,
1126
+ };
1127
+ }),
1128
+ };
1129
+ };
1130
+ /**
1131
+ * PaymentApi - functional programming interface
1132
+ * @export
1133
+ */
1134
+ export const PaymentApiFp = function (configuration) {
1135
+ const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration);
1136
+ return {
1137
+ /**
1138
+ * Authorize a Stripe payment account
1139
+ * @summary Authorize Stripe
1140
+ * @param {string} project Project unique identifier
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ */
1144
+ authorizeStripe(project, options) {
1145
+ return __awaiter(this, void 0, void 0, function* () {
1146
+ var _a, _b, _c;
1147
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeStripe(project, options);
1148
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1149
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.authorizeStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1151
+ });
1152
+ },
1153
+ /**
1154
+ * Deauthorize a Stripe payment account
1155
+ * @summary Deauthorize Stripe
1156
+ * @param {string} project Project unique identifier
1157
+ * @param {*} [options] Override http request option.
1158
+ * @throws {RequiredError}
1159
+ */
1160
+ deauthorizeStripe(project, options) {
1161
+ return __awaiter(this, void 0, void 0, function* () {
1162
+ var _a, _b, _c;
1163
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deauthorizeStripe(project, options);
1164
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1165
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.deauthorizeStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1166
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1167
+ });
1168
+ },
1169
+ /**
1170
+ * Get the Stripe payment account for the project
1171
+ * @summary Get Stripe Payment Account
1172
+ * @param {string} project Project unique identifier
1173
+ * @param {*} [options] Override http request option.
1174
+ * @throws {RequiredError}
1175
+ */
1176
+ getStripePaymentAccount(project, options) {
1177
+ return __awaiter(this, void 0, void 0, function* () {
1178
+ var _a, _b, _c;
1179
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStripePaymentAccount(project, options);
1180
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1181
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.getStripePaymentAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1182
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1183
+ });
1184
+ },
1185
+ };
1186
+ };
1187
+ /**
1188
+ * PaymentApi - factory interface
1189
+ * @export
1190
+ */
1191
+ export const PaymentApiFactory = function (configuration, basePath, axios) {
1192
+ const localVarFp = PaymentApiFp(configuration);
1193
+ return {
1194
+ /**
1195
+ * Authorize a Stripe payment account
1196
+ * @summary Authorize Stripe
1197
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
1198
+ * @param {*} [options] Override http request option.
1199
+ * @throws {RequiredError}
1200
+ */
1201
+ authorizeStripe(requestParameters, options) {
1202
+ return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
1203
+ },
1204
+ /**
1205
+ * Deauthorize a Stripe payment account
1206
+ * @summary Deauthorize Stripe
1207
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ deauthorizeStripe(requestParameters, options) {
1212
+ return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
1213
+ },
1214
+ /**
1215
+ * Get the Stripe payment account for the project
1216
+ * @summary Get Stripe Payment Account
1217
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ */
1221
+ getStripePaymentAccount(requestParameters, options) {
1222
+ return localVarFp.getStripePaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
1223
+ },
1224
+ };
1225
+ };
1226
+ /**
1227
+ * PaymentApi - object-oriented interface
1228
+ * @export
1229
+ * @class PaymentApi
1230
+ * @extends {BaseAPI}
1231
+ */
1232
+ export class PaymentApi extends BaseAPI {
1233
+ /**
1234
+ * Authorize a Stripe payment account
1235
+ * @summary Authorize Stripe
1236
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ * @memberof PaymentApi
1240
+ */
1241
+ authorizeStripe(requestParameters, options) {
1242
+ return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1243
+ }
1244
+ /**
1245
+ * Deauthorize a Stripe payment account
1246
+ * @summary Deauthorize Stripe
1247
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ * @memberof PaymentApi
1251
+ */
1252
+ deauthorizeStripe(requestParameters, options) {
1253
+ return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1254
+ }
1255
+ /**
1256
+ * Get the Stripe payment account for the project
1257
+ * @summary Get Stripe Payment Account
1258
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ * @memberof PaymentApi
1262
+ */
1263
+ getStripePaymentAccount(requestParameters, options) {
1264
+ return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1265
+ }
1266
+ }
1011
1267
  /**
1012
1268
  * PlatformApi - axios parameter creator
1013
1269
  * @export
@@ -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/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.13.0
7
+ * The version of the OpenAPI document: 0.14.2
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.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>;
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.13.0
7
+ * The version of the OpenAPI document: 0.14.2
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.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).