@teemill/website 0.1.3 → 0.1.6

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.
Files changed (60) hide show
  1. package/.openapi-generator/FILES +7 -10
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +409 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +243 -0
  9. package/dist/api.js +292 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +243 -0
  17. package/dist/esm/api.js +285 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -0
  25. package/dist/esm/index.js +15 -0
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +18 -4
  31. package/tsconfig.esm.json +7 -0
  32. package/tsconfig.json +4 -6
  33. package/dist/apis/ShippingMethodsApi.d.ts +0 -96
  34. package/dist/apis/ShippingMethodsApi.js +0 -386
  35. package/dist/apis/index.d.ts +0 -1
  36. package/dist/apis/index.js +0 -19
  37. package/dist/models/ApiError.d.ts +0 -37
  38. package/dist/models/ApiError.js +0 -53
  39. package/dist/models/Price.d.ts +0 -37
  40. package/dist/models/Price.js +0 -52
  41. package/dist/models/ShippingMethod.d.ts +0 -56
  42. package/dist/models/ShippingMethod.js +0 -59
  43. package/dist/models/ShippingMethods.d.ts +0 -38
  44. package/dist/models/ShippingMethods.js +0 -54
  45. package/dist/models/UpdateShippingMethodRequest.d.ts +0 -44
  46. package/dist/models/UpdateShippingMethodRequest.js +0 -55
  47. package/dist/models/index.d.ts +0 -5
  48. package/dist/models/index.js +0 -23
  49. package/dist/runtime.d.ts +0 -187
  50. package/dist/runtime.js +0 -565
  51. package/src/apis/ShippingMethodsApi.ts +0 -337
  52. package/src/apis/index.ts +0 -3
  53. package/src/index.ts +0 -5
  54. package/src/models/ApiError.ts +0 -74
  55. package/src/models/Price.ts +0 -73
  56. package/src/models/ShippingMethod.ts +0 -104
  57. package/src/models/ShippingMethods.ts +0 -81
  58. package/src/models/UpdateShippingMethodRequest.ts +0 -88
  59. package/src/models/index.ts +0 -7
  60. package/src/runtime.ts +0 -441
@@ -0,0 +1,243 @@
1
+ /**
2
+ * Website API
3
+ * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.6
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiError
20
+ */
21
+ export interface ApiError {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiError
26
+ */
27
+ 'code': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiError
32
+ */
33
+ 'message': string;
34
+ }
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface AuthorizeStripe200Response
39
+ */
40
+ export interface AuthorizeStripe200Response {
41
+ /**
42
+ * The URL to redirect to
43
+ * @type {string}
44
+ * @memberof AuthorizeStripe200Response
45
+ */
46
+ 'redirect_url': string;
47
+ }
48
+ /**
49
+ *
50
+ * @export
51
+ * @interface PaymentAccount
52
+ */
53
+ export interface PaymentAccount {
54
+ /**
55
+ * The name of the payment account
56
+ * @type {string}
57
+ * @memberof PaymentAccount
58
+ */
59
+ 'name': string;
60
+ /**
61
+ * The payment method
62
+ * @type {string}
63
+ * @memberof PaymentAccount
64
+ */
65
+ 'method': PaymentAccountMethodEnum;
66
+ /**
67
+ * The configuration for the payment account
68
+ * @type {{ [key: string]: string; }}
69
+ * @memberof PaymentAccount
70
+ */
71
+ 'config': {
72
+ [key: string]: string;
73
+ };
74
+ }
75
+ export declare const PaymentAccountMethodEnum: {
76
+ readonly Stripe: "stripe";
77
+ readonly Paypal: "paypal";
78
+ };
79
+ export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
80
+ /**
81
+ * PaymentApi - axios parameter creator
82
+ * @export
83
+ */
84
+ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
85
+ /**
86
+ * Authorize a Stripe payment account
87
+ * @summary Authorize Stripe
88
+ * @param {string} project What project it is
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ authorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
93
+ /**
94
+ * Deauthorize a Stripe payment account
95
+ * @summary Deauthorize Stripe
96
+ * @param {string} project What project it is
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deauthorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
+ /**
102
+ * Get the Stripe payment account for the project
103
+ * @summary Get Stripe Payment Account
104
+ * @param {string} project What project it is
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getStripePaymentAccount: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
109
+ };
110
+ /**
111
+ * PaymentApi - functional programming interface
112
+ * @export
113
+ */
114
+ export declare const PaymentApiFp: (configuration?: Configuration) => {
115
+ /**
116
+ * Authorize a Stripe payment account
117
+ * @summary Authorize Stripe
118
+ * @param {string} project What project it is
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>>;
123
+ /**
124
+ * Deauthorize a Stripe payment account
125
+ * @summary Deauthorize Stripe
126
+ * @param {string} project What project it is
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
131
+ /**
132
+ * Get the Stripe payment account for the project
133
+ * @summary Get Stripe Payment Account
134
+ * @param {string} project What project it is
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ getStripePaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>>;
139
+ };
140
+ /**
141
+ * PaymentApi - factory interface
142
+ * @export
143
+ */
144
+ export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
145
+ /**
146
+ * Authorize a Stripe payment account
147
+ * @summary Authorize Stripe
148
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
153
+ /**
154
+ * Deauthorize a Stripe payment account
155
+ * @summary Deauthorize Stripe
156
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
161
+ /**
162
+ * Get the Stripe payment account for the project
163
+ * @summary Get Stripe Payment Account
164
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
169
+ };
170
+ /**
171
+ * Request parameters for authorizeStripe operation in PaymentApi.
172
+ * @export
173
+ * @interface PaymentApiAuthorizeStripeRequest
174
+ */
175
+ export interface PaymentApiAuthorizeStripeRequest {
176
+ /**
177
+ * What project it is
178
+ * @type {string}
179
+ * @memberof PaymentApiAuthorizeStripe
180
+ */
181
+ readonly project: string;
182
+ }
183
+ /**
184
+ * Request parameters for deauthorizeStripe operation in PaymentApi.
185
+ * @export
186
+ * @interface PaymentApiDeauthorizeStripeRequest
187
+ */
188
+ export interface PaymentApiDeauthorizeStripeRequest {
189
+ /**
190
+ * What project it is
191
+ * @type {string}
192
+ * @memberof PaymentApiDeauthorizeStripe
193
+ */
194
+ readonly project: string;
195
+ }
196
+ /**
197
+ * Request parameters for getStripePaymentAccount operation in PaymentApi.
198
+ * @export
199
+ * @interface PaymentApiGetStripePaymentAccountRequest
200
+ */
201
+ export interface PaymentApiGetStripePaymentAccountRequest {
202
+ /**
203
+ * What project it is
204
+ * @type {string}
205
+ * @memberof PaymentApiGetStripePaymentAccount
206
+ */
207
+ readonly project: string;
208
+ }
209
+ /**
210
+ * PaymentApi - object-oriented interface
211
+ * @export
212
+ * @class PaymentApi
213
+ * @extends {BaseAPI}
214
+ */
215
+ export declare class PaymentApi extends BaseAPI {
216
+ /**
217
+ * Authorize a Stripe payment account
218
+ * @summary Authorize Stripe
219
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ * @memberof PaymentApi
223
+ */
224
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
225
+ /**
226
+ * Deauthorize a Stripe payment account
227
+ * @summary Deauthorize Stripe
228
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ * @memberof PaymentApi
232
+ */
233
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
234
+ /**
235
+ * Get the Stripe payment account for the project
236
+ * @summary Get Stripe Payment Account
237
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ * @memberof PaymentApi
241
+ */
242
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any>>;
243
+ }
@@ -0,0 +1,285 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Website API
5
+ * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.6
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const PaymentAccountMethodEnum = {
30
+ Stripe: 'stripe',
31
+ Paypal: 'paypal'
32
+ };
33
+ /**
34
+ * PaymentApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const PaymentApiAxiosParamCreator = function (configuration) {
38
+ return {
39
+ /**
40
+ * Authorize a Stripe payment account
41
+ * @summary Authorize Stripe
42
+ * @param {string} project What project it is
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ authorizeStripe: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
47
+ // verify required parameter 'project' is not null or undefined
48
+ assertParamExists('authorizeStripe', 'project', project);
49
+ const localVarPath = `/v1/website/payment/stripe/authorize`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ }
56
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
57
+ const localVarHeaderParameter = {};
58
+ const localVarQueryParameter = {};
59
+ // authentication session-oauth required
60
+ // oauth required
61
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
62
+ // authentication api-key required
63
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
64
+ if (project !== undefined) {
65
+ localVarQueryParameter['project'] = project;
66
+ }
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
70
+ return {
71
+ url: toPathString(localVarUrlObj),
72
+ options: localVarRequestOptions,
73
+ };
74
+ }),
75
+ /**
76
+ * Deauthorize a Stripe payment account
77
+ * @summary Deauthorize Stripe
78
+ * @param {string} project What project it is
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ deauthorizeStripe: (project_2, ...args_2) => __awaiter(this, [project_2, ...args_2], void 0, function* (project, options = {}) {
83
+ // verify required parameter 'project' is not null or undefined
84
+ assertParamExists('deauthorizeStripe', 'project', project);
85
+ const localVarPath = `/v1/website/payment/stripe/deauthorize`;
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
93
+ const localVarHeaderParameter = {};
94
+ const localVarQueryParameter = {};
95
+ // authentication session-oauth required
96
+ // oauth required
97
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
98
+ // authentication api-key required
99
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
100
+ if (project !== undefined) {
101
+ localVarQueryParameter['project'] = project;
102
+ }
103
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
104
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
106
+ return {
107
+ url: toPathString(localVarUrlObj),
108
+ options: localVarRequestOptions,
109
+ };
110
+ }),
111
+ /**
112
+ * Get the Stripe payment account for the project
113
+ * @summary Get Stripe Payment Account
114
+ * @param {string} project What project it is
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ getStripePaymentAccount: (project_3, ...args_3) => __awaiter(this, [project_3, ...args_3], void 0, function* (project, options = {}) {
119
+ // verify required parameter 'project' is not null or undefined
120
+ assertParamExists('getStripePaymentAccount', 'project', project);
121
+ const localVarPath = `/v1/website/payment/stripe`;
122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
124
+ let baseOptions;
125
+ if (configuration) {
126
+ baseOptions = configuration.baseOptions;
127
+ }
128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
129
+ const localVarHeaderParameter = {};
130
+ const localVarQueryParameter = {};
131
+ // authentication session-oauth required
132
+ // oauth required
133
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
134
+ // authentication api-key required
135
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
136
+ if (project !== undefined) {
137
+ localVarQueryParameter['project'] = project;
138
+ }
139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ }),
147
+ };
148
+ };
149
+ /**
150
+ * PaymentApi - functional programming interface
151
+ * @export
152
+ */
153
+ export const PaymentApiFp = function (configuration) {
154
+ const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration);
155
+ return {
156
+ /**
157
+ * Authorize a Stripe payment account
158
+ * @summary Authorize Stripe
159
+ * @param {string} project What project it is
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ authorizeStripe(project, options) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ var _a, _b, _c;
166
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeStripe(project, options);
167
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
168
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.authorizeStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
169
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
170
+ });
171
+ },
172
+ /**
173
+ * Deauthorize a Stripe payment account
174
+ * @summary Deauthorize Stripe
175
+ * @param {string} project What project it is
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ deauthorizeStripe(project, options) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ var _a, _b, _c;
182
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deauthorizeStripe(project, options);
183
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
184
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.deauthorizeStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
186
+ });
187
+ },
188
+ /**
189
+ * Get the Stripe payment account for the project
190
+ * @summary Get Stripe Payment Account
191
+ * @param {string} project What project it is
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ getStripePaymentAccount(project, options) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ var _a, _b, _c;
198
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStripePaymentAccount(project, options);
199
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
200
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.getStripePaymentAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
201
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
202
+ });
203
+ },
204
+ };
205
+ };
206
+ /**
207
+ * PaymentApi - factory interface
208
+ * @export
209
+ */
210
+ export const PaymentApiFactory = function (configuration, basePath, axios) {
211
+ const localVarFp = PaymentApiFp(configuration);
212
+ return {
213
+ /**
214
+ * Authorize a Stripe payment account
215
+ * @summary Authorize Stripe
216
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ authorizeStripe(requestParameters, options) {
221
+ return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
222
+ },
223
+ /**
224
+ * Deauthorize a Stripe payment account
225
+ * @summary Deauthorize Stripe
226
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ deauthorizeStripe(requestParameters, options) {
231
+ return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
232
+ },
233
+ /**
234
+ * Get the Stripe payment account for the project
235
+ * @summary Get Stripe Payment Account
236
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ getStripePaymentAccount(requestParameters, options) {
241
+ return localVarFp.getStripePaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
242
+ },
243
+ };
244
+ };
245
+ /**
246
+ * PaymentApi - object-oriented interface
247
+ * @export
248
+ * @class PaymentApi
249
+ * @extends {BaseAPI}
250
+ */
251
+ export class PaymentApi extends BaseAPI {
252
+ /**
253
+ * Authorize a Stripe payment account
254
+ * @summary Authorize Stripe
255
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ * @memberof PaymentApi
259
+ */
260
+ authorizeStripe(requestParameters, options) {
261
+ return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
262
+ }
263
+ /**
264
+ * Deauthorize a Stripe payment account
265
+ * @summary Deauthorize Stripe
266
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ * @memberof PaymentApi
270
+ */
271
+ deauthorizeStripe(requestParameters, options) {
272
+ return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
273
+ }
274
+ /**
275
+ * Get the Stripe payment account for the project
276
+ * @summary Get Stripe Payment Account
277
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ * @memberof PaymentApi
281
+ */
282
+ getStripePaymentAccount(requestParameters, options) {
283
+ return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
284
+ }
285
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Website API
3
+ * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.6
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Website API
5
+ * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.6
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const COLLECTION_FORMATS = {
21
+ csv: ",",
22
+ ssv: " ",
23
+ tsv: "\t",
24
+ pipes: "|",
25
+ };
26
+ /**
27
+ *
28
+ * @export
29
+ * @class BaseAPI
30
+ */
31
+ export class BaseAPI {
32
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
+ var _a;
34
+ this.basePath = basePath;
35
+ this.axios = axios;
36
+ if (configuration) {
37
+ this.configuration = configuration;
38
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
39
+ }
40
+ }
41
+ }
42
+ ;
43
+ /**
44
+ *
45
+ * @export
46
+ * @class RequiredError
47
+ * @extends {Error}
48
+ */
49
+ export class RequiredError extends Error {
50
+ constructor(field, msg) {
51
+ super(msg);
52
+ this.field = field;
53
+ this.name = "RequiredError";
54
+ }
55
+ }
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export const operationServerMap = {};