@gooday_corp/gooday-api-client 1.1.10-beta → 1.1.10-geta
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/api.ts +442 -121
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -195,12 +195,6 @@ export interface BusinessEntity {
|
|
|
195
195
|
* @memberof BusinessEntity
|
|
196
196
|
*/
|
|
197
197
|
'venues'?: Array<object>;
|
|
198
|
-
/**
|
|
199
|
-
* Business Verification Document
|
|
200
|
-
* @type {string}
|
|
201
|
-
* @memberof BusinessEntity
|
|
202
|
-
*/
|
|
203
|
-
'verificationDoc'?: string;
|
|
204
198
|
/**
|
|
205
199
|
* Business Type
|
|
206
200
|
* @type {string}
|
|
@@ -208,39 +202,32 @@ export interface BusinessEntity {
|
|
|
208
202
|
*/
|
|
209
203
|
'businessType'?: string;
|
|
210
204
|
/**
|
|
211
|
-
*
|
|
212
|
-
* @type {Array<string>}
|
|
213
|
-
* @memberof BusinessEntity
|
|
214
|
-
*/
|
|
215
|
-
'businessCategory'?: Array<string>;
|
|
216
|
-
/**
|
|
217
|
-
* Business Employee
|
|
205
|
+
* User Id
|
|
218
206
|
* @type {string}
|
|
219
207
|
* @memberof BusinessEntity
|
|
220
208
|
*/
|
|
221
|
-
'
|
|
209
|
+
'userId'?: string;
|
|
222
210
|
/**
|
|
223
|
-
* Business
|
|
211
|
+
* Business Category
|
|
224
212
|
* @type {string}
|
|
225
213
|
* @memberof BusinessEntity
|
|
226
214
|
*/
|
|
227
|
-
'
|
|
215
|
+
'businessCategory'?: string;
|
|
228
216
|
/**
|
|
229
|
-
* Business
|
|
217
|
+
* Business verification status
|
|
230
218
|
* @type {string}
|
|
231
219
|
* @memberof BusinessEntity
|
|
232
220
|
*/
|
|
233
|
-
'
|
|
221
|
+
'status': BusinessEntityStatusEnum;
|
|
234
222
|
}
|
|
235
223
|
|
|
236
|
-
export const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
Completed: 'completed'
|
|
224
|
+
export const BusinessEntityStatusEnum = {
|
|
225
|
+
Verified: 'VERIFIED',
|
|
226
|
+
Pending: 'PENDING',
|
|
227
|
+
QuoteRequested: 'QUOTE_REQUESTED'
|
|
241
228
|
} as const;
|
|
242
229
|
|
|
243
|
-
export type
|
|
230
|
+
export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
|
|
244
231
|
|
|
245
232
|
/**
|
|
246
233
|
*
|
|
@@ -259,13 +246,7 @@ export interface BusinessOnBoardingDTO {
|
|
|
259
246
|
* @type {Array<BusinessVenueDTO>}
|
|
260
247
|
* @memberof BusinessOnBoardingDTO
|
|
261
248
|
*/
|
|
262
|
-
'
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
265
|
-
* @type {string}
|
|
266
|
-
* @memberof BusinessOnBoardingDTO
|
|
267
|
-
*/
|
|
268
|
-
'verificationDoc'?: string;
|
|
249
|
+
'venues'?: Array<BusinessVenueDTO>;
|
|
269
250
|
/**
|
|
270
251
|
* Business policies
|
|
271
252
|
* @type {string}
|
|
@@ -298,28 +279,16 @@ export interface BusinessOnBoardingDTO {
|
|
|
298
279
|
'businessType'?: string;
|
|
299
280
|
/**
|
|
300
281
|
* Business Category
|
|
301
|
-
* @type {Array<string>}
|
|
302
|
-
* @memberof BusinessOnBoardingDTO
|
|
303
|
-
*/
|
|
304
|
-
'businessCategory'?: Array<string>;
|
|
305
|
-
/**
|
|
306
|
-
* Business Employee
|
|
307
282
|
* @type {string}
|
|
308
283
|
* @memberof BusinessOnBoardingDTO
|
|
309
284
|
*/
|
|
310
|
-
'
|
|
285
|
+
'businessCategory'?: string;
|
|
311
286
|
/**
|
|
312
287
|
* Assistant ID
|
|
313
288
|
* @type {string}
|
|
314
289
|
* @memberof BusinessOnBoardingDTO
|
|
315
290
|
*/
|
|
316
291
|
'assistant'?: string;
|
|
317
|
-
/**
|
|
318
|
-
* Business Type
|
|
319
|
-
* @type {string}
|
|
320
|
-
* @memberof BusinessOnBoardingDTO
|
|
321
|
-
*/
|
|
322
|
-
'priceRange'?: string;
|
|
323
292
|
}
|
|
324
293
|
/**
|
|
325
294
|
*
|
|
@@ -479,35 +448,6 @@ export interface BusinessVerificationResponse {
|
|
|
479
448
|
*/
|
|
480
449
|
'data': BusinessVerificationEntity;
|
|
481
450
|
}
|
|
482
|
-
/**
|
|
483
|
-
*
|
|
484
|
-
* @export
|
|
485
|
-
* @interface BusinessVerifiedDTO
|
|
486
|
-
*/
|
|
487
|
-
export interface BusinessVerifiedDTO {
|
|
488
|
-
/**
|
|
489
|
-
* User Id
|
|
490
|
-
* @type {string}
|
|
491
|
-
* @memberof BusinessVerifiedDTO
|
|
492
|
-
*/
|
|
493
|
-
'user'?: string;
|
|
494
|
-
/**
|
|
495
|
-
* Business Account Confirmation
|
|
496
|
-
* @type {string}
|
|
497
|
-
* @memberof BusinessVerifiedDTO
|
|
498
|
-
*/
|
|
499
|
-
'isVerifiedFromAdmin'?: BusinessVerifiedDTOIsVerifiedFromAdminEnum;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
export const BusinessVerifiedDTOIsVerifiedFromAdminEnum = {
|
|
503
|
-
ApplicationSubmitted: 'application_submitted',
|
|
504
|
-
UnderVerification: 'under_verification',
|
|
505
|
-
PaymentProcessing: 'payment_processing',
|
|
506
|
-
Completed: 'completed'
|
|
507
|
-
} as const;
|
|
508
|
-
|
|
509
|
-
export type BusinessVerifiedDTOIsVerifiedFromAdminEnum = typeof BusinessVerifiedDTOIsVerifiedFromAdminEnum[keyof typeof BusinessVerifiedDTOIsVerifiedFromAdminEnum];
|
|
510
|
-
|
|
511
451
|
/**
|
|
512
452
|
*
|
|
513
453
|
* @export
|
|
@@ -565,6 +505,43 @@ export interface CategoryListResponse {
|
|
|
565
505
|
*/
|
|
566
506
|
'data': Array<CategoryEntity>;
|
|
567
507
|
}
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @export
|
|
511
|
+
* @interface CreatePaymentLinkDTO
|
|
512
|
+
*/
|
|
513
|
+
export interface CreatePaymentLinkDTO {
|
|
514
|
+
/**
|
|
515
|
+
* Currency in which the payment is made
|
|
516
|
+
* @type {string}
|
|
517
|
+
* @memberof CreatePaymentLinkDTO
|
|
518
|
+
*/
|
|
519
|
+
'currency': string;
|
|
520
|
+
/**
|
|
521
|
+
* Recurring interval for the payment
|
|
522
|
+
* @type {string}
|
|
523
|
+
* @memberof CreatePaymentLinkDTO
|
|
524
|
+
*/
|
|
525
|
+
'interval': string;
|
|
526
|
+
/**
|
|
527
|
+
* Amount to be charged in the smallest currency unit (e.g., cents for USD)
|
|
528
|
+
* @type {number}
|
|
529
|
+
* @memberof CreatePaymentLinkDTO
|
|
530
|
+
*/
|
|
531
|
+
'amount': number;
|
|
532
|
+
/**
|
|
533
|
+
* Name of the product or service for which payment is being made
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof CreatePaymentLinkDTO
|
|
536
|
+
*/
|
|
537
|
+
'name': string;
|
|
538
|
+
/**
|
|
539
|
+
* User Id
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof CreatePaymentLinkDTO
|
|
542
|
+
*/
|
|
543
|
+
'user': string;
|
|
544
|
+
}
|
|
568
545
|
/**
|
|
569
546
|
*
|
|
570
547
|
* @export
|
|
@@ -850,6 +827,25 @@ export interface IntegrationResponse {
|
|
|
850
827
|
*/
|
|
851
828
|
'data': IntegrationEntity;
|
|
852
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @export
|
|
833
|
+
* @interface IntegrationsResponse
|
|
834
|
+
*/
|
|
835
|
+
export interface IntegrationsResponse {
|
|
836
|
+
/**
|
|
837
|
+
* Status code of the response
|
|
838
|
+
* @type {number}
|
|
839
|
+
* @memberof IntegrationsResponse
|
|
840
|
+
*/
|
|
841
|
+
'statusCode': number;
|
|
842
|
+
/**
|
|
843
|
+
* Integration response
|
|
844
|
+
* @type {Array<IntegrationEntity>}
|
|
845
|
+
* @memberof IntegrationsResponse
|
|
846
|
+
*/
|
|
847
|
+
'data': Array<IntegrationEntity>;
|
|
848
|
+
}
|
|
853
849
|
/**
|
|
854
850
|
*
|
|
855
851
|
* @export
|
|
@@ -882,6 +878,25 @@ export interface LoggedOutResponse {
|
|
|
882
878
|
*/
|
|
883
879
|
'message': string;
|
|
884
880
|
}
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @export
|
|
884
|
+
* @interface MicrosoftCalendarAccessDTO
|
|
885
|
+
*/
|
|
886
|
+
export interface MicrosoftCalendarAccessDTO {
|
|
887
|
+
/**
|
|
888
|
+
* accessToken
|
|
889
|
+
* @type {string}
|
|
890
|
+
* @memberof MicrosoftCalendarAccessDTO
|
|
891
|
+
*/
|
|
892
|
+
'accessToken': string;
|
|
893
|
+
/**
|
|
894
|
+
* refreshToken
|
|
895
|
+
* @type {string}
|
|
896
|
+
* @memberof MicrosoftCalendarAccessDTO
|
|
897
|
+
*/
|
|
898
|
+
'refreshToken': string;
|
|
899
|
+
}
|
|
885
900
|
/**
|
|
886
901
|
*
|
|
887
902
|
* @export
|
|
@@ -1019,6 +1034,12 @@ export interface PlanEntity {
|
|
|
1019
1034
|
* @memberof PlanEntity
|
|
1020
1035
|
*/
|
|
1021
1036
|
'description': string;
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @type {string}
|
|
1040
|
+
* @memberof PlanEntity
|
|
1041
|
+
*/
|
|
1042
|
+
'currency': string;
|
|
1022
1043
|
/**
|
|
1023
1044
|
* Array of features included in the plan
|
|
1024
1045
|
* @type {Array<PlanFeature>}
|
|
@@ -1375,6 +1396,50 @@ export interface SkillDto {
|
|
|
1375
1396
|
*/
|
|
1376
1397
|
'weightage': number;
|
|
1377
1398
|
}
|
|
1399
|
+
/**
|
|
1400
|
+
*
|
|
1401
|
+
* @export
|
|
1402
|
+
* @interface StripPaymentDTO
|
|
1403
|
+
*/
|
|
1404
|
+
export interface StripPaymentDTO {
|
|
1405
|
+
/**
|
|
1406
|
+
* Strip Customer ID
|
|
1407
|
+
* @type {string}
|
|
1408
|
+
* @memberof StripPaymentDTO
|
|
1409
|
+
*/
|
|
1410
|
+
'customerId': string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Strip ephemeral Key
|
|
1413
|
+
* @type {string}
|
|
1414
|
+
* @memberof StripPaymentDTO
|
|
1415
|
+
*/
|
|
1416
|
+
'ephemeralKey': string;
|
|
1417
|
+
/**
|
|
1418
|
+
* Strip ClientSecret
|
|
1419
|
+
* @type {string}
|
|
1420
|
+
* @memberof StripPaymentDTO
|
|
1421
|
+
*/
|
|
1422
|
+
'clientSecret': string;
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
* @export
|
|
1427
|
+
* @interface StripePaymentIntentResponseDTO
|
|
1428
|
+
*/
|
|
1429
|
+
export interface StripePaymentIntentResponseDTO {
|
|
1430
|
+
/**
|
|
1431
|
+
* statuscCode
|
|
1432
|
+
* @type {number}
|
|
1433
|
+
* @memberof StripePaymentIntentResponseDTO
|
|
1434
|
+
*/
|
|
1435
|
+
'statusCode': number;
|
|
1436
|
+
/**
|
|
1437
|
+
* Strip Intent Data
|
|
1438
|
+
* @type {StripPaymentDTO}
|
|
1439
|
+
* @memberof StripePaymentIntentResponseDTO
|
|
1440
|
+
*/
|
|
1441
|
+
'data': StripPaymentDTO;
|
|
1442
|
+
}
|
|
1378
1443
|
/**
|
|
1379
1444
|
*
|
|
1380
1445
|
* @export
|
|
@@ -1456,7 +1521,7 @@ export interface UserEntity {
|
|
|
1456
1521
|
}
|
|
1457
1522
|
|
|
1458
1523
|
export const UserEntityRoleEnum = {
|
|
1459
|
-
|
|
1524
|
+
Business: 'business',
|
|
1460
1525
|
User: 'user'
|
|
1461
1526
|
} as const;
|
|
1462
1527
|
|
|
@@ -2403,14 +2468,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2403
2468
|
},
|
|
2404
2469
|
/**
|
|
2405
2470
|
*
|
|
2406
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2407
2471
|
* @param {*} [options] Override http request option.
|
|
2408
2472
|
* @throws {RequiredError}
|
|
2409
2473
|
*/
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
assertParamExists('businessControllerBusinessVerified', 'businessVerifiedDTO', businessVerifiedDTO)
|
|
2413
|
-
const localVarPath = `/v1/business/verified`;
|
|
2474
|
+
businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2475
|
+
const localVarPath = `/v1/business/me`;
|
|
2414
2476
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2415
2477
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2416
2478
|
let baseOptions;
|
|
@@ -2418,7 +2480,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2418
2480
|
baseOptions = configuration.baseOptions;
|
|
2419
2481
|
}
|
|
2420
2482
|
|
|
2421
|
-
const localVarRequestOptions = { method: '
|
|
2483
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2422
2484
|
const localVarHeaderParameter = {} as any;
|
|
2423
2485
|
const localVarQueryParameter = {} as any;
|
|
2424
2486
|
|
|
@@ -2428,12 +2490,9 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2428
2490
|
|
|
2429
2491
|
|
|
2430
2492
|
|
|
2431
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2432
|
-
|
|
2433
2493
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2434
2494
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2435
2495
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2436
|
-
localVarRequestOptions.data = serializeDataIfNeeded(businessVerifiedDTO, localVarRequestOptions, configuration)
|
|
2437
2496
|
|
|
2438
2497
|
return {
|
|
2439
2498
|
url: toPathString(localVarUrlObj),
|
|
@@ -2445,8 +2504,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2445
2504
|
* @param {*} [options] Override http request option.
|
|
2446
2505
|
* @throws {RequiredError}
|
|
2447
2506
|
*/
|
|
2448
|
-
|
|
2449
|
-
const localVarPath = `/
|
|
2507
|
+
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2508
|
+
const localVarPath = `/business`;
|
|
2450
2509
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2451
2510
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2452
2511
|
let baseOptions;
|
|
@@ -2458,10 +2517,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2458
2517
|
const localVarHeaderParameter = {} as any;
|
|
2459
2518
|
const localVarQueryParameter = {} as any;
|
|
2460
2519
|
|
|
2461
|
-
// authentication bearer required
|
|
2462
|
-
// http bearer authentication required
|
|
2463
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2464
|
-
|
|
2465
2520
|
|
|
2466
2521
|
|
|
2467
2522
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2633,14 +2688,13 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2633
2688
|
},
|
|
2634
2689
|
/**
|
|
2635
2690
|
*
|
|
2636
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2637
2691
|
* @param {*} [options] Override http request option.
|
|
2638
2692
|
* @throws {RequiredError}
|
|
2639
2693
|
*/
|
|
2640
|
-
async
|
|
2641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2694
|
+
async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2695
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
|
|
2642
2696
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2643
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.
|
|
2697
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
2644
2698
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2645
2699
|
},
|
|
2646
2700
|
/**
|
|
@@ -2648,10 +2702,10 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2648
2702
|
* @param {*} [options] Override http request option.
|
|
2649
2703
|
* @throws {RequiredError}
|
|
2650
2704
|
*/
|
|
2651
|
-
async
|
|
2652
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2705
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2653
2707
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2654
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.
|
|
2708
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2655
2709
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2656
2710
|
},
|
|
2657
2711
|
/**
|
|
@@ -2720,20 +2774,19 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2720
2774
|
},
|
|
2721
2775
|
/**
|
|
2722
2776
|
*
|
|
2723
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2724
2777
|
* @param {*} [options] Override http request option.
|
|
2725
2778
|
* @throws {RequiredError}
|
|
2726
2779
|
*/
|
|
2727
|
-
|
|
2728
|
-
return localVarFp.
|
|
2780
|
+
businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2781
|
+
return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
|
|
2729
2782
|
},
|
|
2730
2783
|
/**
|
|
2731
2784
|
*
|
|
2732
2785
|
* @param {*} [options] Override http request option.
|
|
2733
2786
|
* @throws {RequiredError}
|
|
2734
2787
|
*/
|
|
2735
|
-
|
|
2736
|
-
return localVarFp.
|
|
2788
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2789
|
+
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
2737
2790
|
},
|
|
2738
2791
|
/**
|
|
2739
2792
|
*
|
|
@@ -2791,13 +2844,12 @@ export class BusinessApi extends BaseAPI {
|
|
|
2791
2844
|
|
|
2792
2845
|
/**
|
|
2793
2846
|
*
|
|
2794
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2795
2847
|
* @param {*} [options] Override http request option.
|
|
2796
2848
|
* @throws {RequiredError}
|
|
2797
2849
|
* @memberof BusinessApi
|
|
2798
2850
|
*/
|
|
2799
|
-
public
|
|
2800
|
-
return BusinessApiFp(this.configuration).
|
|
2851
|
+
public businessControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
2852
|
+
return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
2801
2853
|
}
|
|
2802
2854
|
|
|
2803
2855
|
/**
|
|
@@ -2806,8 +2858,8 @@ export class BusinessApi extends BaseAPI {
|
|
|
2806
2858
|
* @throws {RequiredError}
|
|
2807
2859
|
* @memberof BusinessApi
|
|
2808
2860
|
*/
|
|
2809
|
-
public
|
|
2810
|
-
return BusinessApiFp(this.configuration).
|
|
2861
|
+
public businessControllerListBusinesses(options?: RawAxiosRequestConfig) {
|
|
2862
|
+
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
2811
2863
|
}
|
|
2812
2864
|
|
|
2813
2865
|
/**
|
|
@@ -3294,6 +3346,39 @@ export class GoalsApi extends BaseAPI {
|
|
|
3294
3346
|
*/
|
|
3295
3347
|
export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3296
3348
|
return {
|
|
3349
|
+
/**
|
|
3350
|
+
*
|
|
3351
|
+
* @param {*} [options] Override http request option.
|
|
3352
|
+
* @throws {RequiredError}
|
|
3353
|
+
*/
|
|
3354
|
+
integrationControllerFetchIntegration: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3355
|
+
const localVarPath = `/v1/calendar`;
|
|
3356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3358
|
+
let baseOptions;
|
|
3359
|
+
if (configuration) {
|
|
3360
|
+
baseOptions = configuration.baseOptions;
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3364
|
+
const localVarHeaderParameter = {} as any;
|
|
3365
|
+
const localVarQueryParameter = {} as any;
|
|
3366
|
+
|
|
3367
|
+
// authentication bearer required
|
|
3368
|
+
// http bearer authentication required
|
|
3369
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3374
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3375
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3376
|
+
|
|
3377
|
+
return {
|
|
3378
|
+
url: toPathString(localVarUrlObj),
|
|
3379
|
+
options: localVarRequestOptions,
|
|
3380
|
+
};
|
|
3381
|
+
},
|
|
3297
3382
|
/**
|
|
3298
3383
|
*
|
|
3299
3384
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3335,13 +3420,13 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
3335
3420
|
},
|
|
3336
3421
|
/**
|
|
3337
3422
|
*
|
|
3338
|
-
* @param {
|
|
3423
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3339
3424
|
* @param {*} [options] Override http request option.
|
|
3340
3425
|
* @throws {RequiredError}
|
|
3341
3426
|
*/
|
|
3342
|
-
integrationControllerMicrosoftCalendar: async (
|
|
3343
|
-
// verify required parameter '
|
|
3344
|
-
assertParamExists('integrationControllerMicrosoftCalendar', '
|
|
3427
|
+
integrationControllerMicrosoftCalendar: async (microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3428
|
+
// verify required parameter 'microsoftCalendarAccessDTO' is not null or undefined
|
|
3429
|
+
assertParamExists('integrationControllerMicrosoftCalendar', 'microsoftCalendarAccessDTO', microsoftCalendarAccessDTO)
|
|
3345
3430
|
const localVarPath = `/v1/calendar/microsoft`;
|
|
3346
3431
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3347
3432
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3365,7 +3450,7 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
3365
3450
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3366
3451
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3367
3452
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3368
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3453
|
+
localVarRequestOptions.data = serializeDataIfNeeded(microsoftCalendarAccessDTO, localVarRequestOptions, configuration)
|
|
3369
3454
|
|
|
3370
3455
|
return {
|
|
3371
3456
|
url: toPathString(localVarUrlObj),
|
|
@@ -3382,6 +3467,17 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
3382
3467
|
export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
3383
3468
|
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
|
|
3384
3469
|
return {
|
|
3470
|
+
/**
|
|
3471
|
+
*
|
|
3472
|
+
* @param {*} [options] Override http request option.
|
|
3473
|
+
* @throws {RequiredError}
|
|
3474
|
+
*/
|
|
3475
|
+
async integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
|
|
3476
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerFetchIntegration(options);
|
|
3477
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3478
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerFetchIntegration']?.[localVarOperationServerIndex]?.url;
|
|
3479
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3480
|
+
},
|
|
3385
3481
|
/**
|
|
3386
3482
|
*
|
|
3387
3483
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3396,12 +3492,12 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
3396
3492
|
},
|
|
3397
3493
|
/**
|
|
3398
3494
|
*
|
|
3399
|
-
* @param {
|
|
3495
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3400
3496
|
* @param {*} [options] Override http request option.
|
|
3401
3497
|
* @throws {RequiredError}
|
|
3402
3498
|
*/
|
|
3403
|
-
async integrationControllerMicrosoftCalendar(
|
|
3404
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(
|
|
3499
|
+
async integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
|
|
3500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options);
|
|
3405
3501
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3406
3502
|
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerMicrosoftCalendar']?.[localVarOperationServerIndex]?.url;
|
|
3407
3503
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3416,6 +3512,14 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
3416
3512
|
export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3417
3513
|
const localVarFp = IntegrationApiFp(configuration)
|
|
3418
3514
|
return {
|
|
3515
|
+
/**
|
|
3516
|
+
*
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
*/
|
|
3520
|
+
integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
|
|
3521
|
+
return localVarFp.integrationControllerFetchIntegration(options).then((request) => request(axios, basePath));
|
|
3522
|
+
},
|
|
3419
3523
|
/**
|
|
3420
3524
|
*
|
|
3421
3525
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3427,12 +3531,12 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
3427
3531
|
},
|
|
3428
3532
|
/**
|
|
3429
3533
|
*
|
|
3430
|
-
* @param {
|
|
3534
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3431
3535
|
* @param {*} [options] Override http request option.
|
|
3432
3536
|
* @throws {RequiredError}
|
|
3433
3537
|
*/
|
|
3434
|
-
integrationControllerMicrosoftCalendar(
|
|
3435
|
-
return localVarFp.integrationControllerMicrosoftCalendar(
|
|
3538
|
+
integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
|
|
3539
|
+
return localVarFp.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(axios, basePath));
|
|
3436
3540
|
},
|
|
3437
3541
|
};
|
|
3438
3542
|
};
|
|
@@ -3444,6 +3548,16 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
3444
3548
|
* @extends {BaseAPI}
|
|
3445
3549
|
*/
|
|
3446
3550
|
export class IntegrationApi extends BaseAPI {
|
|
3551
|
+
/**
|
|
3552
|
+
*
|
|
3553
|
+
* @param {*} [options] Override http request option.
|
|
3554
|
+
* @throws {RequiredError}
|
|
3555
|
+
* @memberof IntegrationApi
|
|
3556
|
+
*/
|
|
3557
|
+
public integrationControllerFetchIntegration(options?: RawAxiosRequestConfig) {
|
|
3558
|
+
return IntegrationApiFp(this.configuration).integrationControllerFetchIntegration(options).then((request) => request(this.axios, this.basePath));
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3447
3561
|
/**
|
|
3448
3562
|
*
|
|
3449
3563
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3457,13 +3571,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
3457
3571
|
|
|
3458
3572
|
/**
|
|
3459
3573
|
*
|
|
3460
|
-
* @param {
|
|
3574
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3461
3575
|
* @param {*} [options] Override http request option.
|
|
3462
3576
|
* @throws {RequiredError}
|
|
3463
3577
|
* @memberof IntegrationApi
|
|
3464
3578
|
*/
|
|
3465
|
-
public integrationControllerMicrosoftCalendar(
|
|
3466
|
-
return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(
|
|
3579
|
+
public integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig) {
|
|
3580
|
+
return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3467
3581
|
}
|
|
3468
3582
|
}
|
|
3469
3583
|
|
|
@@ -3648,13 +3762,88 @@ export class OAuthApi extends BaseAPI {
|
|
|
3648
3762
|
*/
|
|
3649
3763
|
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3650
3764
|
return {
|
|
3765
|
+
/**
|
|
3766
|
+
*
|
|
3767
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3768
|
+
* @param {*} [options] Override http request option.
|
|
3769
|
+
* @throws {RequiredError}
|
|
3770
|
+
*/
|
|
3771
|
+
paymentControllerCreatePaymentLink: async (createPaymentLinkDTO: CreatePaymentLinkDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3772
|
+
// verify required parameter 'createPaymentLinkDTO' is not null or undefined
|
|
3773
|
+
assertParamExists('paymentControllerCreatePaymentLink', 'createPaymentLinkDTO', createPaymentLinkDTO)
|
|
3774
|
+
const localVarPath = `/v1/payment/payment-link`;
|
|
3775
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3776
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3777
|
+
let baseOptions;
|
|
3778
|
+
if (configuration) {
|
|
3779
|
+
baseOptions = configuration.baseOptions;
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3783
|
+
const localVarHeaderParameter = {} as any;
|
|
3784
|
+
const localVarQueryParameter = {} as any;
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3789
|
+
|
|
3790
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3792
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3793
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentLinkDTO, localVarRequestOptions, configuration)
|
|
3794
|
+
|
|
3795
|
+
return {
|
|
3796
|
+
url: toPathString(localVarUrlObj),
|
|
3797
|
+
options: localVarRequestOptions,
|
|
3798
|
+
};
|
|
3799
|
+
},
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @param {string} planId Strip Plan ID
|
|
3803
|
+
* @param {*} [options] Override http request option.
|
|
3804
|
+
* @throws {RequiredError}
|
|
3805
|
+
*/
|
|
3806
|
+
paymentControllerGetPaymentSecretForIntent: async (planId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3807
|
+
// verify required parameter 'planId' is not null or undefined
|
|
3808
|
+
assertParamExists('paymentControllerGetPaymentSecretForIntent', 'planId', planId)
|
|
3809
|
+
const localVarPath = `/v1/payment/payment-secret-for-intent`;
|
|
3810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3811
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3812
|
+
let baseOptions;
|
|
3813
|
+
if (configuration) {
|
|
3814
|
+
baseOptions = configuration.baseOptions;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3818
|
+
const localVarHeaderParameter = {} as any;
|
|
3819
|
+
const localVarQueryParameter = {} as any;
|
|
3820
|
+
|
|
3821
|
+
// authentication bearer required
|
|
3822
|
+
// http bearer authentication required
|
|
3823
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3824
|
+
|
|
3825
|
+
if (planId !== undefined) {
|
|
3826
|
+
localVarQueryParameter['planId'] = planId;
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3833
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3834
|
+
|
|
3835
|
+
return {
|
|
3836
|
+
url: toPathString(localVarUrlObj),
|
|
3837
|
+
options: localVarRequestOptions,
|
|
3838
|
+
};
|
|
3839
|
+
},
|
|
3651
3840
|
/**
|
|
3652
3841
|
*
|
|
3653
3842
|
* @param {*} [options] Override http request option.
|
|
3654
3843
|
* @throws {RequiredError}
|
|
3655
3844
|
*/
|
|
3656
3845
|
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3657
|
-
const localVarPath = `/v1/plans`;
|
|
3846
|
+
const localVarPath = `/v1/payment/plans`;
|
|
3658
3847
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3659
3848
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3660
3849
|
let baseOptions;
|
|
@@ -3668,6 +3857,42 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3668
3857
|
|
|
3669
3858
|
|
|
3670
3859
|
|
|
3860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3862
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3863
|
+
|
|
3864
|
+
return {
|
|
3865
|
+
url: toPathString(localVarUrlObj),
|
|
3866
|
+
options: localVarRequestOptions,
|
|
3867
|
+
};
|
|
3868
|
+
},
|
|
3869
|
+
/**
|
|
3870
|
+
*
|
|
3871
|
+
* @param {string} stripeSignature
|
|
3872
|
+
* @param {*} [options] Override http request option.
|
|
3873
|
+
* @throws {RequiredError}
|
|
3874
|
+
*/
|
|
3875
|
+
paymentControllerStripeWebhook: async (stripeSignature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3876
|
+
// verify required parameter 'stripeSignature' is not null or undefined
|
|
3877
|
+
assertParamExists('paymentControllerStripeWebhook', 'stripeSignature', stripeSignature)
|
|
3878
|
+
const localVarPath = `/v1/payment/stripe-webhook`;
|
|
3879
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3880
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3881
|
+
let baseOptions;
|
|
3882
|
+
if (configuration) {
|
|
3883
|
+
baseOptions = configuration.baseOptions;
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3887
|
+
const localVarHeaderParameter = {} as any;
|
|
3888
|
+
const localVarQueryParameter = {} as any;
|
|
3889
|
+
|
|
3890
|
+
if (stripeSignature != null) {
|
|
3891
|
+
localVarHeaderParameter['stripe-signature'] = String(stripeSignature);
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
|
|
3671
3896
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3672
3897
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3673
3898
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3687,6 +3912,30 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3687
3912
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
3688
3913
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
3689
3914
|
return {
|
|
3915
|
+
/**
|
|
3916
|
+
*
|
|
3917
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3918
|
+
* @param {*} [options] Override http request option.
|
|
3919
|
+
* @throws {RequiredError}
|
|
3920
|
+
*/
|
|
3921
|
+
async paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options);
|
|
3923
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3924
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
|
|
3925
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3926
|
+
},
|
|
3927
|
+
/**
|
|
3928
|
+
*
|
|
3929
|
+
* @param {string} planId Strip Plan ID
|
|
3930
|
+
* @param {*} [options] Override http request option.
|
|
3931
|
+
* @throws {RequiredError}
|
|
3932
|
+
*/
|
|
3933
|
+
async paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentResponseDTO>> {
|
|
3934
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPaymentSecretForIntent(planId, options);
|
|
3935
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3936
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPaymentSecretForIntent']?.[localVarOperationServerIndex]?.url;
|
|
3937
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3938
|
+
},
|
|
3690
3939
|
/**
|
|
3691
3940
|
*
|
|
3692
3941
|
* @param {*} [options] Override http request option.
|
|
@@ -3698,6 +3947,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
3698
3947
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
3699
3948
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3700
3949
|
},
|
|
3950
|
+
/**
|
|
3951
|
+
*
|
|
3952
|
+
* @param {string} stripeSignature
|
|
3953
|
+
* @param {*} [options] Override http request option.
|
|
3954
|
+
* @throws {RequiredError}
|
|
3955
|
+
*/
|
|
3956
|
+
async paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerStripeWebhook(stripeSignature, options);
|
|
3958
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3959
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerStripeWebhook']?.[localVarOperationServerIndex]?.url;
|
|
3960
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3961
|
+
},
|
|
3701
3962
|
}
|
|
3702
3963
|
};
|
|
3703
3964
|
|
|
@@ -3708,6 +3969,24 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
3708
3969
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3709
3970
|
const localVarFp = PlansApiFp(configuration)
|
|
3710
3971
|
return {
|
|
3972
|
+
/**
|
|
3973
|
+
*
|
|
3974
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3975
|
+
* @param {*} [options] Override http request option.
|
|
3976
|
+
* @throws {RequiredError}
|
|
3977
|
+
*/
|
|
3978
|
+
paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3979
|
+
return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
|
|
3980
|
+
},
|
|
3981
|
+
/**
|
|
3982
|
+
*
|
|
3983
|
+
* @param {string} planId Strip Plan ID
|
|
3984
|
+
* @param {*} [options] Override http request option.
|
|
3985
|
+
* @throws {RequiredError}
|
|
3986
|
+
*/
|
|
3987
|
+
paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<StripePaymentIntentResponseDTO> {
|
|
3988
|
+
return localVarFp.paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(axios, basePath));
|
|
3989
|
+
},
|
|
3711
3990
|
/**
|
|
3712
3991
|
*
|
|
3713
3992
|
* @param {*} [options] Override http request option.
|
|
@@ -3716,6 +3995,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
3716
3995
|
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
3717
3996
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
3718
3997
|
},
|
|
3998
|
+
/**
|
|
3999
|
+
*
|
|
4000
|
+
* @param {string} stripeSignature
|
|
4001
|
+
* @param {*} [options] Override http request option.
|
|
4002
|
+
* @throws {RequiredError}
|
|
4003
|
+
*/
|
|
4004
|
+
paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4005
|
+
return localVarFp.paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(axios, basePath));
|
|
4006
|
+
},
|
|
3719
4007
|
};
|
|
3720
4008
|
};
|
|
3721
4009
|
|
|
@@ -3726,6 +4014,28 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
3726
4014
|
* @extends {BaseAPI}
|
|
3727
4015
|
*/
|
|
3728
4016
|
export class PlansApi extends BaseAPI {
|
|
4017
|
+
/**
|
|
4018
|
+
*
|
|
4019
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
4020
|
+
* @param {*} [options] Override http request option.
|
|
4021
|
+
* @throws {RequiredError}
|
|
4022
|
+
* @memberof PlansApi
|
|
4023
|
+
*/
|
|
4024
|
+
public paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig) {
|
|
4025
|
+
return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
/**
|
|
4029
|
+
*
|
|
4030
|
+
* @param {string} planId Strip Plan ID
|
|
4031
|
+
* @param {*} [options] Override http request option.
|
|
4032
|
+
* @throws {RequiredError}
|
|
4033
|
+
* @memberof PlansApi
|
|
4034
|
+
*/
|
|
4035
|
+
public paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig) {
|
|
4036
|
+
return PlansApiFp(this.configuration).paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(this.axios, this.basePath));
|
|
4037
|
+
}
|
|
4038
|
+
|
|
3729
4039
|
/**
|
|
3730
4040
|
*
|
|
3731
4041
|
* @param {*} [options] Override http request option.
|
|
@@ -3735,6 +4045,17 @@ export class PlansApi extends BaseAPI {
|
|
|
3735
4045
|
public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
|
|
3736
4046
|
return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
|
|
3737
4047
|
}
|
|
4048
|
+
|
|
4049
|
+
/**
|
|
4050
|
+
*
|
|
4051
|
+
* @param {string} stripeSignature
|
|
4052
|
+
* @param {*} [options] Override http request option.
|
|
4053
|
+
* @throws {RequiredError}
|
|
4054
|
+
* @memberof PlansApi
|
|
4055
|
+
*/
|
|
4056
|
+
public paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig) {
|
|
4057
|
+
return PlansApiFp(this.configuration).paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(this.axios, this.basePath));
|
|
4058
|
+
}
|
|
3738
4059
|
}
|
|
3739
4060
|
|
|
3740
4061
|
|