@teemill/website 0.1.5 → 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.
- package/README.md +2 -2
- package/api.ts +1 -127
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -74
- package/dist/api.js +3 -82
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1 -74
- package/dist/esm/api.js +4 -83
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.1.
|
|
1
|
+
## @teemill/website@0.1.6
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/website@0.1.
|
|
39
|
+
npm install @teemill/website@0.1.6 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -55,25 +55,6 @@ export interface AuthorizeStripe200Response {
|
|
|
55
55
|
*/
|
|
56
56
|
'redirect_url': string;
|
|
57
57
|
}
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @export
|
|
61
|
-
* @interface ConnectStripeRequest
|
|
62
|
-
*/
|
|
63
|
-
export interface ConnectStripeRequest {
|
|
64
|
-
/**
|
|
65
|
-
* The code returned from the Stripe connect flow
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof ConnectStripeRequest
|
|
68
|
-
*/
|
|
69
|
-
'code': string;
|
|
70
|
-
/**
|
|
71
|
-
* The state returned from the Stripe connect flow
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof ConnectStripeRequest
|
|
74
|
-
*/
|
|
75
|
-
'state': string;
|
|
76
|
-
}
|
|
77
58
|
/**
|
|
78
59
|
*
|
|
79
60
|
* @export
|
|
@@ -158,56 +139,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
158
139
|
options: localVarRequestOptions,
|
|
159
140
|
};
|
|
160
141
|
},
|
|
161
|
-
/**
|
|
162
|
-
* Connect a Stripe payment account
|
|
163
|
-
* @summary Connect Stripe
|
|
164
|
-
* @param {string} project What project it is
|
|
165
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
166
|
-
* @param {*} [options] Override http request option.
|
|
167
|
-
* @throws {RequiredError}
|
|
168
|
-
*/
|
|
169
|
-
connectStripe: async (project: string, connectStripeRequest: ConnectStripeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
170
|
-
// verify required parameter 'project' is not null or undefined
|
|
171
|
-
assertParamExists('connectStripe', 'project', project)
|
|
172
|
-
// verify required parameter 'connectStripeRequest' is not null or undefined
|
|
173
|
-
assertParamExists('connectStripe', 'connectStripeRequest', connectStripeRequest)
|
|
174
|
-
const localVarPath = `/v1/website/payment/stripe/connect`;
|
|
175
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
176
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
177
|
-
let baseOptions;
|
|
178
|
-
if (configuration) {
|
|
179
|
-
baseOptions = configuration.baseOptions;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
183
|
-
const localVarHeaderParameter = {} as any;
|
|
184
|
-
const localVarQueryParameter = {} as any;
|
|
185
|
-
|
|
186
|
-
// authentication session-oauth required
|
|
187
|
-
// oauth required
|
|
188
|
-
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
189
|
-
|
|
190
|
-
// authentication api-key required
|
|
191
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
192
|
-
|
|
193
|
-
if (project !== undefined) {
|
|
194
|
-
localVarQueryParameter['project'] = project;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
200
|
-
|
|
201
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
202
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
203
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
204
|
-
localVarRequestOptions.data = serializeDataIfNeeded(connectStripeRequest, localVarRequestOptions, configuration)
|
|
205
|
-
|
|
206
|
-
return {
|
|
207
|
-
url: toPathString(localVarUrlObj),
|
|
208
|
-
options: localVarRequestOptions,
|
|
209
|
-
};
|
|
210
|
-
},
|
|
211
142
|
/**
|
|
212
143
|
* Deauthorize a Stripe payment account
|
|
213
144
|
* @summary Deauthorize Stripe
|
|
@@ -319,20 +250,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
319
250
|
const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
|
|
320
251
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
321
252
|
},
|
|
322
|
-
/**
|
|
323
|
-
* Connect a Stripe payment account
|
|
324
|
-
* @summary Connect Stripe
|
|
325
|
-
* @param {string} project What project it is
|
|
326
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
327
|
-
* @param {*} [options] Override http request option.
|
|
328
|
-
* @throws {RequiredError}
|
|
329
|
-
*/
|
|
330
|
-
async connectStripe(project: string, connectStripeRequest: ConnectStripeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>> {
|
|
331
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.connectStripe(project, connectStripeRequest, options);
|
|
332
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
333
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentApi.connectStripe']?.[localVarOperationServerIndex]?.url;
|
|
334
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
335
|
-
},
|
|
336
253
|
/**
|
|
337
254
|
* Deauthorize a Stripe payment account
|
|
338
255
|
* @summary Deauthorize Stripe
|
|
@@ -379,16 +296,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
379
296
|
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response> {
|
|
380
297
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
381
298
|
},
|
|
382
|
-
/**
|
|
383
|
-
* Connect a Stripe payment account
|
|
384
|
-
* @summary Connect Stripe
|
|
385
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
386
|
-
* @param {*} [options] Override http request option.
|
|
387
|
-
* @throws {RequiredError}
|
|
388
|
-
*/
|
|
389
|
-
connectStripe(requestParameters: PaymentApiConnectStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount> {
|
|
390
|
-
return localVarFp.connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(axios, basePath));
|
|
391
|
-
},
|
|
392
299
|
/**
|
|
393
300
|
* Deauthorize a Stripe payment account
|
|
394
301
|
* @summary Deauthorize Stripe
|
|
@@ -426,27 +333,6 @@ export interface PaymentApiAuthorizeStripeRequest {
|
|
|
426
333
|
readonly project: string
|
|
427
334
|
}
|
|
428
335
|
|
|
429
|
-
/**
|
|
430
|
-
* Request parameters for connectStripe operation in PaymentApi.
|
|
431
|
-
* @export
|
|
432
|
-
* @interface PaymentApiConnectStripeRequest
|
|
433
|
-
*/
|
|
434
|
-
export interface PaymentApiConnectStripeRequest {
|
|
435
|
-
/**
|
|
436
|
-
* What project it is
|
|
437
|
-
* @type {string}
|
|
438
|
-
* @memberof PaymentApiConnectStripe
|
|
439
|
-
*/
|
|
440
|
-
readonly project: string
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Connect a Stripe payment account
|
|
444
|
-
* @type {ConnectStripeRequest}
|
|
445
|
-
* @memberof PaymentApiConnectStripe
|
|
446
|
-
*/
|
|
447
|
-
readonly connectStripeRequest: ConnectStripeRequest
|
|
448
|
-
}
|
|
449
|
-
|
|
450
336
|
/**
|
|
451
337
|
* Request parameters for deauthorizeStripe operation in PaymentApi.
|
|
452
338
|
* @export
|
|
@@ -494,18 +380,6 @@ export class PaymentApi extends BaseAPI {
|
|
|
494
380
|
return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
495
381
|
}
|
|
496
382
|
|
|
497
|
-
/**
|
|
498
|
-
* Connect a Stripe payment account
|
|
499
|
-
* @summary Connect Stripe
|
|
500
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
501
|
-
* @param {*} [options] Override http request option.
|
|
502
|
-
* @throws {RequiredError}
|
|
503
|
-
* @memberof PaymentApi
|
|
504
|
-
*/
|
|
505
|
-
public connectStripe(requestParameters: PaymentApiConnectStripeRequest, options?: RawAxiosRequestConfig) {
|
|
506
|
-
return PaymentApiFp(this.configuration).connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
507
|
-
}
|
|
508
|
-
|
|
509
383
|
/**
|
|
510
384
|
* Deauthorize a Stripe payment account
|
|
511
385
|
* @summary Deauthorize Stripe
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,25 +45,6 @@ export interface AuthorizeStripe200Response {
|
|
|
45
45
|
*/
|
|
46
46
|
'redirect_url': string;
|
|
47
47
|
}
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @export
|
|
51
|
-
* @interface ConnectStripeRequest
|
|
52
|
-
*/
|
|
53
|
-
export interface ConnectStripeRequest {
|
|
54
|
-
/**
|
|
55
|
-
* The code returned from the Stripe connect flow
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof ConnectStripeRequest
|
|
58
|
-
*/
|
|
59
|
-
'code': string;
|
|
60
|
-
/**
|
|
61
|
-
* The state returned from the Stripe connect flow
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof ConnectStripeRequest
|
|
64
|
-
*/
|
|
65
|
-
'state': string;
|
|
66
|
-
}
|
|
67
48
|
/**
|
|
68
49
|
*
|
|
69
50
|
* @export
|
|
@@ -109,15 +90,6 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
|
|
|
109
90
|
* @throws {RequiredError}
|
|
110
91
|
*/
|
|
111
92
|
authorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
112
|
-
/**
|
|
113
|
-
* Connect a Stripe payment account
|
|
114
|
-
* @summary Connect Stripe
|
|
115
|
-
* @param {string} project What project it is
|
|
116
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
117
|
-
* @param {*} [options] Override http request option.
|
|
118
|
-
* @throws {RequiredError}
|
|
119
|
-
*/
|
|
120
|
-
connectStripe: (project: string, connectStripeRequest: ConnectStripeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
121
93
|
/**
|
|
122
94
|
* Deauthorize a Stripe payment account
|
|
123
95
|
* @summary Deauthorize Stripe
|
|
@@ -148,15 +120,6 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
148
120
|
* @throws {RequiredError}
|
|
149
121
|
*/
|
|
150
122
|
authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>>;
|
|
151
|
-
/**
|
|
152
|
-
* Connect a Stripe payment account
|
|
153
|
-
* @summary Connect Stripe
|
|
154
|
-
* @param {string} project What project it is
|
|
155
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
156
|
-
* @param {*} [options] Override http request option.
|
|
157
|
-
* @throws {RequiredError}
|
|
158
|
-
*/
|
|
159
|
-
connectStripe(project: string, connectStripeRequest: ConnectStripeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>>;
|
|
160
123
|
/**
|
|
161
124
|
* Deauthorize a Stripe payment account
|
|
162
125
|
* @summary Deauthorize Stripe
|
|
@@ -187,14 +150,6 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
187
150
|
* @throws {RequiredError}
|
|
188
151
|
*/
|
|
189
152
|
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
|
|
190
|
-
/**
|
|
191
|
-
* Connect a Stripe payment account
|
|
192
|
-
* @summary Connect Stripe
|
|
193
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
194
|
-
* @param {*} [options] Override http request option.
|
|
195
|
-
* @throws {RequiredError}
|
|
196
|
-
*/
|
|
197
|
-
connectStripe(requestParameters: PaymentApiConnectStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
|
|
198
153
|
/**
|
|
199
154
|
* Deauthorize a Stripe payment account
|
|
200
155
|
* @summary Deauthorize Stripe
|
|
@@ -225,25 +180,6 @@ export interface PaymentApiAuthorizeStripeRequest {
|
|
|
225
180
|
*/
|
|
226
181
|
readonly project: string;
|
|
227
182
|
}
|
|
228
|
-
/**
|
|
229
|
-
* Request parameters for connectStripe operation in PaymentApi.
|
|
230
|
-
* @export
|
|
231
|
-
* @interface PaymentApiConnectStripeRequest
|
|
232
|
-
*/
|
|
233
|
-
export interface PaymentApiConnectStripeRequest {
|
|
234
|
-
/**
|
|
235
|
-
* What project it is
|
|
236
|
-
* @type {string}
|
|
237
|
-
* @memberof PaymentApiConnectStripe
|
|
238
|
-
*/
|
|
239
|
-
readonly project: string;
|
|
240
|
-
/**
|
|
241
|
-
* Connect a Stripe payment account
|
|
242
|
-
* @type {ConnectStripeRequest}
|
|
243
|
-
* @memberof PaymentApiConnectStripe
|
|
244
|
-
*/
|
|
245
|
-
readonly connectStripeRequest: ConnectStripeRequest;
|
|
246
|
-
}
|
|
247
183
|
/**
|
|
248
184
|
* Request parameters for deauthorizeStripe operation in PaymentApi.
|
|
249
185
|
* @export
|
|
@@ -286,15 +222,6 @@ export declare class PaymentApi extends BaseAPI {
|
|
|
286
222
|
* @memberof PaymentApi
|
|
287
223
|
*/
|
|
288
224
|
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
|
|
289
|
-
/**
|
|
290
|
-
* Connect a Stripe payment account
|
|
291
|
-
* @summary Connect Stripe
|
|
292
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
* @memberof PaymentApi
|
|
296
|
-
*/
|
|
297
|
-
connectStripe(requestParameters: PaymentApiConnectStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any>>;
|
|
298
225
|
/**
|
|
299
226
|
* Deauthorize a Stripe payment account
|
|
300
227
|
* @summary Deauthorize Stripe
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -75,47 +75,6 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
75
75
|
options: localVarRequestOptions,
|
|
76
76
|
};
|
|
77
77
|
}),
|
|
78
|
-
/**
|
|
79
|
-
* Connect a Stripe payment account
|
|
80
|
-
* @summary Connect Stripe
|
|
81
|
-
* @param {string} project What project it is
|
|
82
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
83
|
-
* @param {*} [options] Override http request option.
|
|
84
|
-
* @throws {RequiredError}
|
|
85
|
-
*/
|
|
86
|
-
connectStripe: (project_2, connectStripeRequest_1, ...args_2) => __awaiter(this, [project_2, connectStripeRequest_1, ...args_2], void 0, function* (project, connectStripeRequest, options = {}) {
|
|
87
|
-
// verify required parameter 'project' is not null or undefined
|
|
88
|
-
(0, common_1.assertParamExists)('connectStripe', 'project', project);
|
|
89
|
-
// verify required parameter 'connectStripeRequest' is not null or undefined
|
|
90
|
-
(0, common_1.assertParamExists)('connectStripe', 'connectStripeRequest', connectStripeRequest);
|
|
91
|
-
const localVarPath = `/v1/website/payment/stripe/connect`;
|
|
92
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
94
|
-
let baseOptions;
|
|
95
|
-
if (configuration) {
|
|
96
|
-
baseOptions = configuration.baseOptions;
|
|
97
|
-
}
|
|
98
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
99
|
-
const localVarHeaderParameter = {};
|
|
100
|
-
const localVarQueryParameter = {};
|
|
101
|
-
// authentication session-oauth required
|
|
102
|
-
// oauth required
|
|
103
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
104
|
-
// authentication api-key required
|
|
105
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
106
|
-
if (project !== undefined) {
|
|
107
|
-
localVarQueryParameter['project'] = project;
|
|
108
|
-
}
|
|
109
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
113
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(connectStripeRequest, localVarRequestOptions, configuration);
|
|
114
|
-
return {
|
|
115
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
116
|
-
options: localVarRequestOptions,
|
|
117
|
-
};
|
|
118
|
-
}),
|
|
119
78
|
/**
|
|
120
79
|
* Deauthorize a Stripe payment account
|
|
121
80
|
* @summary Deauthorize Stripe
|
|
@@ -123,7 +82,7 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
123
82
|
* @param {*} [options] Override http request option.
|
|
124
83
|
* @throws {RequiredError}
|
|
125
84
|
*/
|
|
126
|
-
deauthorizeStripe: (
|
|
85
|
+
deauthorizeStripe: (project_2, ...args_2) => __awaiter(this, [project_2, ...args_2], void 0, function* (project, options = {}) {
|
|
127
86
|
// verify required parameter 'project' is not null or undefined
|
|
128
87
|
(0, common_1.assertParamExists)('deauthorizeStripe', 'project', project);
|
|
129
88
|
const localVarPath = `/v1/website/payment/stripe/deauthorize`;
|
|
@@ -159,7 +118,7 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
159
118
|
* @param {*} [options] Override http request option.
|
|
160
119
|
* @throws {RequiredError}
|
|
161
120
|
*/
|
|
162
|
-
getStripePaymentAccount: (
|
|
121
|
+
getStripePaymentAccount: (project_3, ...args_3) => __awaiter(this, [project_3, ...args_3], void 0, function* (project, options = {}) {
|
|
163
122
|
// verify required parameter 'project' is not null or undefined
|
|
164
123
|
(0, common_1.assertParamExists)('getStripePaymentAccount', 'project', project);
|
|
165
124
|
const localVarPath = `/v1/website/payment/stripe`;
|
|
@@ -214,23 +173,6 @@ const PaymentApiFp = function (configuration) {
|
|
|
214
173
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
215
174
|
});
|
|
216
175
|
},
|
|
217
|
-
/**
|
|
218
|
-
* Connect a Stripe payment account
|
|
219
|
-
* @summary Connect Stripe
|
|
220
|
-
* @param {string} project What project it is
|
|
221
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
222
|
-
* @param {*} [options] Override http request option.
|
|
223
|
-
* @throws {RequiredError}
|
|
224
|
-
*/
|
|
225
|
-
connectStripe(project, connectStripeRequest, options) {
|
|
226
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
var _a, _b, _c;
|
|
228
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.connectStripe(project, connectStripeRequest, options);
|
|
229
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
230
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.connectStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
231
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
232
|
-
});
|
|
233
|
-
},
|
|
234
176
|
/**
|
|
235
177
|
* Deauthorize a Stripe payment account
|
|
236
178
|
* @summary Deauthorize Stripe
|
|
@@ -283,16 +225,6 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
283
225
|
authorizeStripe(requestParameters, options) {
|
|
284
226
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
285
227
|
},
|
|
286
|
-
/**
|
|
287
|
-
* Connect a Stripe payment account
|
|
288
|
-
* @summary Connect Stripe
|
|
289
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
290
|
-
* @param {*} [options] Override http request option.
|
|
291
|
-
* @throws {RequiredError}
|
|
292
|
-
*/
|
|
293
|
-
connectStripe(requestParameters, options) {
|
|
294
|
-
return localVarFp.connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(axios, basePath));
|
|
295
|
-
},
|
|
296
228
|
/**
|
|
297
229
|
* Deauthorize a Stripe payment account
|
|
298
230
|
* @summary Deauthorize Stripe
|
|
@@ -334,17 +266,6 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
334
266
|
authorizeStripe(requestParameters, options) {
|
|
335
267
|
return (0, exports.PaymentApiFp)(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
336
268
|
}
|
|
337
|
-
/**
|
|
338
|
-
* Connect a Stripe payment account
|
|
339
|
-
* @summary Connect Stripe
|
|
340
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
341
|
-
* @param {*} [options] Override http request option.
|
|
342
|
-
* @throws {RequiredError}
|
|
343
|
-
* @memberof PaymentApi
|
|
344
|
-
*/
|
|
345
|
-
connectStripe(requestParameters, options) {
|
|
346
|
-
return (0, exports.PaymentApiFp)(this.configuration).connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
347
|
-
}
|
|
348
269
|
/**
|
|
349
270
|
* Deauthorize a Stripe payment account
|
|
350
271
|
* @summary Deauthorize Stripe
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6
|
|
9
9
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,25 +45,6 @@ export interface AuthorizeStripe200Response {
|
|
|
45
45
|
*/
|
|
46
46
|
'redirect_url': string;
|
|
47
47
|
}
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @export
|
|
51
|
-
* @interface ConnectStripeRequest
|
|
52
|
-
*/
|
|
53
|
-
export interface ConnectStripeRequest {
|
|
54
|
-
/**
|
|
55
|
-
* The code returned from the Stripe connect flow
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof ConnectStripeRequest
|
|
58
|
-
*/
|
|
59
|
-
'code': string;
|
|
60
|
-
/**
|
|
61
|
-
* The state returned from the Stripe connect flow
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof ConnectStripeRequest
|
|
64
|
-
*/
|
|
65
|
-
'state': string;
|
|
66
|
-
}
|
|
67
48
|
/**
|
|
68
49
|
*
|
|
69
50
|
* @export
|
|
@@ -109,15 +90,6 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
|
|
|
109
90
|
* @throws {RequiredError}
|
|
110
91
|
*/
|
|
111
92
|
authorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
112
|
-
/**
|
|
113
|
-
* Connect a Stripe payment account
|
|
114
|
-
* @summary Connect Stripe
|
|
115
|
-
* @param {string} project What project it is
|
|
116
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
117
|
-
* @param {*} [options] Override http request option.
|
|
118
|
-
* @throws {RequiredError}
|
|
119
|
-
*/
|
|
120
|
-
connectStripe: (project: string, connectStripeRequest: ConnectStripeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
121
93
|
/**
|
|
122
94
|
* Deauthorize a Stripe payment account
|
|
123
95
|
* @summary Deauthorize Stripe
|
|
@@ -148,15 +120,6 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
148
120
|
* @throws {RequiredError}
|
|
149
121
|
*/
|
|
150
122
|
authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>>;
|
|
151
|
-
/**
|
|
152
|
-
* Connect a Stripe payment account
|
|
153
|
-
* @summary Connect Stripe
|
|
154
|
-
* @param {string} project What project it is
|
|
155
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
156
|
-
* @param {*} [options] Override http request option.
|
|
157
|
-
* @throws {RequiredError}
|
|
158
|
-
*/
|
|
159
|
-
connectStripe(project: string, connectStripeRequest: ConnectStripeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>>;
|
|
160
123
|
/**
|
|
161
124
|
* Deauthorize a Stripe payment account
|
|
162
125
|
* @summary Deauthorize Stripe
|
|
@@ -187,14 +150,6 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
187
150
|
* @throws {RequiredError}
|
|
188
151
|
*/
|
|
189
152
|
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
|
|
190
|
-
/**
|
|
191
|
-
* Connect a Stripe payment account
|
|
192
|
-
* @summary Connect Stripe
|
|
193
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
194
|
-
* @param {*} [options] Override http request option.
|
|
195
|
-
* @throws {RequiredError}
|
|
196
|
-
*/
|
|
197
|
-
connectStripe(requestParameters: PaymentApiConnectStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
|
|
198
153
|
/**
|
|
199
154
|
* Deauthorize a Stripe payment account
|
|
200
155
|
* @summary Deauthorize Stripe
|
|
@@ -225,25 +180,6 @@ export interface PaymentApiAuthorizeStripeRequest {
|
|
|
225
180
|
*/
|
|
226
181
|
readonly project: string;
|
|
227
182
|
}
|
|
228
|
-
/**
|
|
229
|
-
* Request parameters for connectStripe operation in PaymentApi.
|
|
230
|
-
* @export
|
|
231
|
-
* @interface PaymentApiConnectStripeRequest
|
|
232
|
-
*/
|
|
233
|
-
export interface PaymentApiConnectStripeRequest {
|
|
234
|
-
/**
|
|
235
|
-
* What project it is
|
|
236
|
-
* @type {string}
|
|
237
|
-
* @memberof PaymentApiConnectStripe
|
|
238
|
-
*/
|
|
239
|
-
readonly project: string;
|
|
240
|
-
/**
|
|
241
|
-
* Connect a Stripe payment account
|
|
242
|
-
* @type {ConnectStripeRequest}
|
|
243
|
-
* @memberof PaymentApiConnectStripe
|
|
244
|
-
*/
|
|
245
|
-
readonly connectStripeRequest: ConnectStripeRequest;
|
|
246
|
-
}
|
|
247
183
|
/**
|
|
248
184
|
* Request parameters for deauthorizeStripe operation in PaymentApi.
|
|
249
185
|
* @export
|
|
@@ -286,15 +222,6 @@ export declare class PaymentApi extends BaseAPI {
|
|
|
286
222
|
* @memberof PaymentApi
|
|
287
223
|
*/
|
|
288
224
|
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
|
|
289
|
-
/**
|
|
290
|
-
* Connect a Stripe payment account
|
|
291
|
-
* @summary Connect Stripe
|
|
292
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
* @memberof PaymentApi
|
|
296
|
-
*/
|
|
297
|
-
connectStripe(requestParameters: PaymentApiConnectStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any>>;
|
|
298
225
|
/**
|
|
299
226
|
* Deauthorize a Stripe payment account
|
|
300
227
|
* @summary Deauthorize Stripe
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams,
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
export const PaymentAccountMethodEnum = {
|
|
@@ -72,47 +72,6 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
72
72
|
options: localVarRequestOptions,
|
|
73
73
|
};
|
|
74
74
|
}),
|
|
75
|
-
/**
|
|
76
|
-
* Connect a Stripe payment account
|
|
77
|
-
* @summary Connect Stripe
|
|
78
|
-
* @param {string} project What project it is
|
|
79
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
80
|
-
* @param {*} [options] Override http request option.
|
|
81
|
-
* @throws {RequiredError}
|
|
82
|
-
*/
|
|
83
|
-
connectStripe: (project_2, connectStripeRequest_1, ...args_2) => __awaiter(this, [project_2, connectStripeRequest_1, ...args_2], void 0, function* (project, connectStripeRequest, options = {}) {
|
|
84
|
-
// verify required parameter 'project' is not null or undefined
|
|
85
|
-
assertParamExists('connectStripe', 'project', project);
|
|
86
|
-
// verify required parameter 'connectStripeRequest' is not null or undefined
|
|
87
|
-
assertParamExists('connectStripe', 'connectStripeRequest', connectStripeRequest);
|
|
88
|
-
const localVarPath = `/v1/website/payment/stripe/connect`;
|
|
89
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
-
let baseOptions;
|
|
92
|
-
if (configuration) {
|
|
93
|
-
baseOptions = configuration.baseOptions;
|
|
94
|
-
}
|
|
95
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
96
|
-
const localVarHeaderParameter = {};
|
|
97
|
-
const localVarQueryParameter = {};
|
|
98
|
-
// authentication session-oauth required
|
|
99
|
-
// oauth required
|
|
100
|
-
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
101
|
-
// authentication api-key required
|
|
102
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
103
|
-
if (project !== undefined) {
|
|
104
|
-
localVarQueryParameter['project'] = project;
|
|
105
|
-
}
|
|
106
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
107
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
110
|
-
localVarRequestOptions.data = serializeDataIfNeeded(connectStripeRequest, localVarRequestOptions, configuration);
|
|
111
|
-
return {
|
|
112
|
-
url: toPathString(localVarUrlObj),
|
|
113
|
-
options: localVarRequestOptions,
|
|
114
|
-
};
|
|
115
|
-
}),
|
|
116
75
|
/**
|
|
117
76
|
* Deauthorize a Stripe payment account
|
|
118
77
|
* @summary Deauthorize Stripe
|
|
@@ -120,7 +79,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
120
79
|
* @param {*} [options] Override http request option.
|
|
121
80
|
* @throws {RequiredError}
|
|
122
81
|
*/
|
|
123
|
-
deauthorizeStripe: (
|
|
82
|
+
deauthorizeStripe: (project_2, ...args_2) => __awaiter(this, [project_2, ...args_2], void 0, function* (project, options = {}) {
|
|
124
83
|
// verify required parameter 'project' is not null or undefined
|
|
125
84
|
assertParamExists('deauthorizeStripe', 'project', project);
|
|
126
85
|
const localVarPath = `/v1/website/payment/stripe/deauthorize`;
|
|
@@ -156,7 +115,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
156
115
|
* @param {*} [options] Override http request option.
|
|
157
116
|
* @throws {RequiredError}
|
|
158
117
|
*/
|
|
159
|
-
getStripePaymentAccount: (
|
|
118
|
+
getStripePaymentAccount: (project_3, ...args_3) => __awaiter(this, [project_3, ...args_3], void 0, function* (project, options = {}) {
|
|
160
119
|
// verify required parameter 'project' is not null or undefined
|
|
161
120
|
assertParamExists('getStripePaymentAccount', 'project', project);
|
|
162
121
|
const localVarPath = `/v1/website/payment/stripe`;
|
|
@@ -210,23 +169,6 @@ export const PaymentApiFp = function (configuration) {
|
|
|
210
169
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
211
170
|
});
|
|
212
171
|
},
|
|
213
|
-
/**
|
|
214
|
-
* Connect a Stripe payment account
|
|
215
|
-
* @summary Connect Stripe
|
|
216
|
-
* @param {string} project What project it is
|
|
217
|
-
* @param {ConnectStripeRequest} connectStripeRequest Connect a Stripe payment account
|
|
218
|
-
* @param {*} [options] Override http request option.
|
|
219
|
-
* @throws {RequiredError}
|
|
220
|
-
*/
|
|
221
|
-
connectStripe(project, connectStripeRequest, options) {
|
|
222
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
-
var _a, _b, _c;
|
|
224
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.connectStripe(project, connectStripeRequest, options);
|
|
225
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
226
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.connectStripe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
227
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
228
|
-
});
|
|
229
|
-
},
|
|
230
172
|
/**
|
|
231
173
|
* Deauthorize a Stripe payment account
|
|
232
174
|
* @summary Deauthorize Stripe
|
|
@@ -278,16 +220,6 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
278
220
|
authorizeStripe(requestParameters, options) {
|
|
279
221
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
280
222
|
},
|
|
281
|
-
/**
|
|
282
|
-
* Connect a Stripe payment account
|
|
283
|
-
* @summary Connect Stripe
|
|
284
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
285
|
-
* @param {*} [options] Override http request option.
|
|
286
|
-
* @throws {RequiredError}
|
|
287
|
-
*/
|
|
288
|
-
connectStripe(requestParameters, options) {
|
|
289
|
-
return localVarFp.connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(axios, basePath));
|
|
290
|
-
},
|
|
291
223
|
/**
|
|
292
224
|
* Deauthorize a Stripe payment account
|
|
293
225
|
* @summary Deauthorize Stripe
|
|
@@ -328,17 +260,6 @@ export class PaymentApi extends BaseAPI {
|
|
|
328
260
|
authorizeStripe(requestParameters, options) {
|
|
329
261
|
return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
330
262
|
}
|
|
331
|
-
/**
|
|
332
|
-
* Connect a Stripe payment account
|
|
333
|
-
* @summary Connect Stripe
|
|
334
|
-
* @param {PaymentApiConnectStripeRequest} requestParameters Request parameters.
|
|
335
|
-
* @param {*} [options] Override http request option.
|
|
336
|
-
* @throws {RequiredError}
|
|
337
|
-
* @memberof PaymentApi
|
|
338
|
-
*/
|
|
339
|
-
connectStripe(requestParameters, options) {
|
|
340
|
-
return PaymentApiFp(this.configuration).connectStripe(requestParameters.project, requestParameters.connectStripeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
341
|
-
}
|
|
342
263
|
/**
|
|
343
264
|
* Deauthorize a Stripe payment account
|
|
344
265
|
* @summary Deauthorize Stripe
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.6
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* 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)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.6
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.6
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|