@gooday_corp/gooday-api-client 1.1.10 → 1.1.12-alpha
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 +825 -134
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -60,6 +60,50 @@ export interface AddDevicePayload {
|
|
|
60
60
|
*/
|
|
61
61
|
'version': string;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @interface AppleOAuthResponseDTO
|
|
67
|
+
*/
|
|
68
|
+
export interface AppleOAuthResponseDTO {
|
|
69
|
+
/**
|
|
70
|
+
* statusCode
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof AppleOAuthResponseDTO
|
|
73
|
+
*/
|
|
74
|
+
'statusCode': number;
|
|
75
|
+
/**
|
|
76
|
+
* User
|
|
77
|
+
* @type {SignupResponse}
|
|
78
|
+
* @memberof AppleOAuthResponseDTO
|
|
79
|
+
*/
|
|
80
|
+
'data': SignupResponse;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
* @interface AppleVerificationPayloadDTO
|
|
86
|
+
*/
|
|
87
|
+
export interface AppleVerificationPayloadDTO {
|
|
88
|
+
/**
|
|
89
|
+
* The ID token provided by Google after authentication
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof AppleVerificationPayloadDTO
|
|
92
|
+
*/
|
|
93
|
+
'token': string;
|
|
94
|
+
/**
|
|
95
|
+
* First name of the user
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AppleVerificationPayloadDTO
|
|
98
|
+
*/
|
|
99
|
+
'firstName': string;
|
|
100
|
+
/**
|
|
101
|
+
* Last name of the user
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof AppleVerificationPayloadDTO
|
|
104
|
+
*/
|
|
105
|
+
'lastName': string;
|
|
106
|
+
}
|
|
63
107
|
/**
|
|
64
108
|
*
|
|
65
109
|
* @export
|
|
@@ -195,12 +239,6 @@ export interface BusinessEntity {
|
|
|
195
239
|
* @memberof BusinessEntity
|
|
196
240
|
*/
|
|
197
241
|
'venues'?: Array<object>;
|
|
198
|
-
/**
|
|
199
|
-
* Business Verification Document
|
|
200
|
-
* @type {string}
|
|
201
|
-
* @memberof BusinessEntity
|
|
202
|
-
*/
|
|
203
|
-
'verificationDoc'?: string;
|
|
204
242
|
/**
|
|
205
243
|
* Business Type
|
|
206
244
|
* @type {string}
|
|
@@ -208,39 +246,32 @@ export interface BusinessEntity {
|
|
|
208
246
|
*/
|
|
209
247
|
'businessType'?: string;
|
|
210
248
|
/**
|
|
211
|
-
*
|
|
212
|
-
* @type {Array<string>}
|
|
213
|
-
* @memberof BusinessEntity
|
|
214
|
-
*/
|
|
215
|
-
'businessCategory'?: Array<string>;
|
|
216
|
-
/**
|
|
217
|
-
* Business Employee
|
|
249
|
+
* User Id
|
|
218
250
|
* @type {string}
|
|
219
251
|
* @memberof BusinessEntity
|
|
220
252
|
*/
|
|
221
|
-
'
|
|
253
|
+
'userId'?: string;
|
|
222
254
|
/**
|
|
223
|
-
* Business
|
|
255
|
+
* Business Category
|
|
224
256
|
* @type {string}
|
|
225
257
|
* @memberof BusinessEntity
|
|
226
258
|
*/
|
|
227
|
-
'
|
|
259
|
+
'businessCategory'?: string;
|
|
228
260
|
/**
|
|
229
|
-
* Business
|
|
261
|
+
* Business verification status
|
|
230
262
|
* @type {string}
|
|
231
263
|
* @memberof BusinessEntity
|
|
232
264
|
*/
|
|
233
|
-
'
|
|
265
|
+
'status': BusinessEntityStatusEnum;
|
|
234
266
|
}
|
|
235
267
|
|
|
236
|
-
export const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
Completed: 'completed'
|
|
268
|
+
export const BusinessEntityStatusEnum = {
|
|
269
|
+
Verified: 'VERIFIED',
|
|
270
|
+
Pending: 'PENDING',
|
|
271
|
+
QuoteRequested: 'QUOTE_REQUESTED'
|
|
241
272
|
} as const;
|
|
242
273
|
|
|
243
|
-
export type
|
|
274
|
+
export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
|
|
244
275
|
|
|
245
276
|
/**
|
|
246
277
|
*
|
|
@@ -259,13 +290,7 @@ export interface BusinessOnBoardingDTO {
|
|
|
259
290
|
* @type {Array<BusinessVenueDTO>}
|
|
260
291
|
* @memberof BusinessOnBoardingDTO
|
|
261
292
|
*/
|
|
262
|
-
'
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
265
|
-
* @type {string}
|
|
266
|
-
* @memberof BusinessOnBoardingDTO
|
|
267
|
-
*/
|
|
268
|
-
'verificationDoc'?: string;
|
|
293
|
+
'venues'?: Array<BusinessVenueDTO>;
|
|
269
294
|
/**
|
|
270
295
|
* Business policies
|
|
271
296
|
* @type {string}
|
|
@@ -298,28 +323,16 @@ export interface BusinessOnBoardingDTO {
|
|
|
298
323
|
'businessType'?: string;
|
|
299
324
|
/**
|
|
300
325
|
* Business Category
|
|
301
|
-
* @type {Array<string>}
|
|
302
|
-
* @memberof BusinessOnBoardingDTO
|
|
303
|
-
*/
|
|
304
|
-
'businessCategory'?: Array<string>;
|
|
305
|
-
/**
|
|
306
|
-
* Business Employee
|
|
307
326
|
* @type {string}
|
|
308
327
|
* @memberof BusinessOnBoardingDTO
|
|
309
328
|
*/
|
|
310
|
-
'
|
|
329
|
+
'businessCategory'?: string;
|
|
311
330
|
/**
|
|
312
331
|
* Assistant ID
|
|
313
332
|
* @type {string}
|
|
314
333
|
* @memberof BusinessOnBoardingDTO
|
|
315
334
|
*/
|
|
316
335
|
'assistant'?: string;
|
|
317
|
-
/**
|
|
318
|
-
* Business Type
|
|
319
|
-
* @type {string}
|
|
320
|
-
* @memberof BusinessOnBoardingDTO
|
|
321
|
-
*/
|
|
322
|
-
'priceRange'?: string;
|
|
323
336
|
}
|
|
324
337
|
/**
|
|
325
338
|
*
|
|
@@ -482,32 +495,16 @@ export interface BusinessVerificationResponse {
|
|
|
482
495
|
/**
|
|
483
496
|
*
|
|
484
497
|
* @export
|
|
485
|
-
* @interface
|
|
498
|
+
* @interface CalendarAccessDTO
|
|
486
499
|
*/
|
|
487
|
-
export interface
|
|
488
|
-
/**
|
|
489
|
-
* User Id
|
|
490
|
-
* @type {string}
|
|
491
|
-
* @memberof BusinessVerifiedDTO
|
|
492
|
-
*/
|
|
493
|
-
'user'?: string;
|
|
500
|
+
export interface CalendarAccessDTO {
|
|
494
501
|
/**
|
|
495
|
-
*
|
|
502
|
+
* authorizationCode
|
|
496
503
|
* @type {string}
|
|
497
|
-
* @memberof
|
|
504
|
+
* @memberof CalendarAccessDTO
|
|
498
505
|
*/
|
|
499
|
-
'
|
|
506
|
+
'authorizationCode': string;
|
|
500
507
|
}
|
|
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
508
|
/**
|
|
512
509
|
*
|
|
513
510
|
* @export
|
|
@@ -552,6 +549,43 @@ export interface CategoryListResponse {
|
|
|
552
549
|
*/
|
|
553
550
|
'data': Array<CategoryEntity>;
|
|
554
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @export
|
|
555
|
+
* @interface CreatePaymentLinkDTO
|
|
556
|
+
*/
|
|
557
|
+
export interface CreatePaymentLinkDTO {
|
|
558
|
+
/**
|
|
559
|
+
* Currency in which the payment is made
|
|
560
|
+
* @type {string}
|
|
561
|
+
* @memberof CreatePaymentLinkDTO
|
|
562
|
+
*/
|
|
563
|
+
'currency': string;
|
|
564
|
+
/**
|
|
565
|
+
* Recurring interval for the payment
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof CreatePaymentLinkDTO
|
|
568
|
+
*/
|
|
569
|
+
'interval': string;
|
|
570
|
+
/**
|
|
571
|
+
* Amount to be charged in the smallest currency unit (e.g., cents for USD)
|
|
572
|
+
* @type {number}
|
|
573
|
+
* @memberof CreatePaymentLinkDTO
|
|
574
|
+
*/
|
|
575
|
+
'amount': number;
|
|
576
|
+
/**
|
|
577
|
+
* Name of the product or service for which payment is being made
|
|
578
|
+
* @type {string}
|
|
579
|
+
* @memberof CreatePaymentLinkDTO
|
|
580
|
+
*/
|
|
581
|
+
'name': string;
|
|
582
|
+
/**
|
|
583
|
+
* User Id
|
|
584
|
+
* @type {string}
|
|
585
|
+
* @memberof CreatePaymentLinkDTO
|
|
586
|
+
*/
|
|
587
|
+
'user': string;
|
|
588
|
+
}
|
|
555
589
|
/**
|
|
556
590
|
*
|
|
557
591
|
* @export
|
|
@@ -748,7 +782,7 @@ export interface GoalListResponse {
|
|
|
748
782
|
*/
|
|
749
783
|
export interface GoogleOAuthResponseDTO {
|
|
750
784
|
/**
|
|
751
|
-
*
|
|
785
|
+
* statusCode
|
|
752
786
|
* @type {number}
|
|
753
787
|
* @memberof GoogleOAuthResponseDTO
|
|
754
788
|
*/
|
|
@@ -773,6 +807,90 @@ export interface GoogleVerificationPayloadDTO {
|
|
|
773
807
|
*/
|
|
774
808
|
'token': string;
|
|
775
809
|
}
|
|
810
|
+
/**
|
|
811
|
+
*
|
|
812
|
+
* @export
|
|
813
|
+
* @interface IntegrationEntity
|
|
814
|
+
*/
|
|
815
|
+
export interface IntegrationEntity {
|
|
816
|
+
/**
|
|
817
|
+
* Unique identifier for the user
|
|
818
|
+
* @type {string}
|
|
819
|
+
* @memberof IntegrationEntity
|
|
820
|
+
*/
|
|
821
|
+
'user': string;
|
|
822
|
+
/**
|
|
823
|
+
* Status of the Integration
|
|
824
|
+
* @type {boolean}
|
|
825
|
+
* @memberof IntegrationEntity
|
|
826
|
+
*/
|
|
827
|
+
'isActive': boolean;
|
|
828
|
+
/**
|
|
829
|
+
* refreshToken
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof IntegrationEntity
|
|
832
|
+
*/
|
|
833
|
+
'refreshToken': string;
|
|
834
|
+
/**
|
|
835
|
+
* Token
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof IntegrationEntity
|
|
838
|
+
*/
|
|
839
|
+
'token': string;
|
|
840
|
+
/**
|
|
841
|
+
* Unique identifier for the user
|
|
842
|
+
* @type {string}
|
|
843
|
+
* @memberof IntegrationEntity
|
|
844
|
+
*/
|
|
845
|
+
'integrationType': IntegrationEntityIntegrationTypeEnum;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
export const IntegrationEntityIntegrationTypeEnum = {
|
|
849
|
+
Google: 'google',
|
|
850
|
+
Microsoft: 'microsoft',
|
|
851
|
+
Apple: 'apple'
|
|
852
|
+
} as const;
|
|
853
|
+
|
|
854
|
+
export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @export
|
|
859
|
+
* @interface IntegrationResponse
|
|
860
|
+
*/
|
|
861
|
+
export interface IntegrationResponse {
|
|
862
|
+
/**
|
|
863
|
+
* Status code of the response
|
|
864
|
+
* @type {number}
|
|
865
|
+
* @memberof IntegrationResponse
|
|
866
|
+
*/
|
|
867
|
+
'statusCode': number;
|
|
868
|
+
/**
|
|
869
|
+
* Integration response
|
|
870
|
+
* @type {IntegrationEntity}
|
|
871
|
+
* @memberof IntegrationResponse
|
|
872
|
+
*/
|
|
873
|
+
'data': IntegrationEntity;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @export
|
|
878
|
+
* @interface IntegrationsResponse
|
|
879
|
+
*/
|
|
880
|
+
export interface IntegrationsResponse {
|
|
881
|
+
/**
|
|
882
|
+
* Status code of the response
|
|
883
|
+
* @type {number}
|
|
884
|
+
* @memberof IntegrationsResponse
|
|
885
|
+
*/
|
|
886
|
+
'statusCode': number;
|
|
887
|
+
/**
|
|
888
|
+
* Integration response
|
|
889
|
+
* @type {Array<IntegrationEntity>}
|
|
890
|
+
* @memberof IntegrationsResponse
|
|
891
|
+
*/
|
|
892
|
+
'data': Array<IntegrationEntity>;
|
|
893
|
+
}
|
|
776
894
|
/**
|
|
777
895
|
*
|
|
778
896
|
* @export
|
|
@@ -805,6 +923,25 @@ export interface LoggedOutResponse {
|
|
|
805
923
|
*/
|
|
806
924
|
'message': string;
|
|
807
925
|
}
|
|
926
|
+
/**
|
|
927
|
+
*
|
|
928
|
+
* @export
|
|
929
|
+
* @interface MicrosoftCalendarAccessDTO
|
|
930
|
+
*/
|
|
931
|
+
export interface MicrosoftCalendarAccessDTO {
|
|
932
|
+
/**
|
|
933
|
+
* accessToken
|
|
934
|
+
* @type {string}
|
|
935
|
+
* @memberof MicrosoftCalendarAccessDTO
|
|
936
|
+
*/
|
|
937
|
+
'accessToken': string;
|
|
938
|
+
/**
|
|
939
|
+
* refreshToken
|
|
940
|
+
* @type {string}
|
|
941
|
+
* @memberof MicrosoftCalendarAccessDTO
|
|
942
|
+
*/
|
|
943
|
+
'refreshToken': string;
|
|
944
|
+
}
|
|
808
945
|
/**
|
|
809
946
|
*
|
|
810
947
|
* @export
|
|
@@ -942,6 +1079,12 @@ export interface PlanEntity {
|
|
|
942
1079
|
* @memberof PlanEntity
|
|
943
1080
|
*/
|
|
944
1081
|
'description': string;
|
|
1082
|
+
/**
|
|
1083
|
+
*
|
|
1084
|
+
* @type {string}
|
|
1085
|
+
* @memberof PlanEntity
|
|
1086
|
+
*/
|
|
1087
|
+
'currency': string;
|
|
945
1088
|
/**
|
|
946
1089
|
* Array of features included in the plan
|
|
947
1090
|
* @type {Array<PlanFeature>}
|
|
@@ -1298,6 +1441,50 @@ export interface SkillDto {
|
|
|
1298
1441
|
*/
|
|
1299
1442
|
'weightage': number;
|
|
1300
1443
|
}
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @export
|
|
1447
|
+
* @interface StripPaymentDTO
|
|
1448
|
+
*/
|
|
1449
|
+
export interface StripPaymentDTO {
|
|
1450
|
+
/**
|
|
1451
|
+
* Strip Customer ID
|
|
1452
|
+
* @type {string}
|
|
1453
|
+
* @memberof StripPaymentDTO
|
|
1454
|
+
*/
|
|
1455
|
+
'customerId': string;
|
|
1456
|
+
/**
|
|
1457
|
+
* Strip ephemeral Key
|
|
1458
|
+
* @type {string}
|
|
1459
|
+
* @memberof StripPaymentDTO
|
|
1460
|
+
*/
|
|
1461
|
+
'ephemeralKey': string;
|
|
1462
|
+
/**
|
|
1463
|
+
* Strip ClientSecret
|
|
1464
|
+
* @type {string}
|
|
1465
|
+
* @memberof StripPaymentDTO
|
|
1466
|
+
*/
|
|
1467
|
+
'clientSecret': string;
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @export
|
|
1472
|
+
* @interface StripePaymentIntentResponseDTO
|
|
1473
|
+
*/
|
|
1474
|
+
export interface StripePaymentIntentResponseDTO {
|
|
1475
|
+
/**
|
|
1476
|
+
* statuscCode
|
|
1477
|
+
* @type {number}
|
|
1478
|
+
* @memberof StripePaymentIntentResponseDTO
|
|
1479
|
+
*/
|
|
1480
|
+
'statusCode': number;
|
|
1481
|
+
/**
|
|
1482
|
+
* Strip Intent Data
|
|
1483
|
+
* @type {StripPaymentDTO}
|
|
1484
|
+
* @memberof StripePaymentIntentResponseDTO
|
|
1485
|
+
*/
|
|
1486
|
+
'data': StripPaymentDTO;
|
|
1487
|
+
}
|
|
1301
1488
|
/**
|
|
1302
1489
|
*
|
|
1303
1490
|
* @export
|
|
@@ -1379,7 +1566,7 @@ export interface UserEntity {
|
|
|
1379
1566
|
}
|
|
1380
1567
|
|
|
1381
1568
|
export const UserEntityRoleEnum = {
|
|
1382
|
-
|
|
1569
|
+
Business: 'business',
|
|
1383
1570
|
User: 'user'
|
|
1384
1571
|
} as const;
|
|
1385
1572
|
|
|
@@ -2326,14 +2513,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2326
2513
|
},
|
|
2327
2514
|
/**
|
|
2328
2515
|
*
|
|
2329
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2330
2516
|
* @param {*} [options] Override http request option.
|
|
2331
2517
|
* @throws {RequiredError}
|
|
2332
2518
|
*/
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
assertParamExists('businessControllerBusinessVerified', 'businessVerifiedDTO', businessVerifiedDTO)
|
|
2336
|
-
const localVarPath = `/v1/business/verified`;
|
|
2519
|
+
businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2520
|
+
const localVarPath = `/v1/business/me`;
|
|
2337
2521
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2338
2522
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2339
2523
|
let baseOptions;
|
|
@@ -2341,7 +2525,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2341
2525
|
baseOptions = configuration.baseOptions;
|
|
2342
2526
|
}
|
|
2343
2527
|
|
|
2344
|
-
const localVarRequestOptions = { method: '
|
|
2528
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2345
2529
|
const localVarHeaderParameter = {} as any;
|
|
2346
2530
|
const localVarQueryParameter = {} as any;
|
|
2347
2531
|
|
|
@@ -2351,12 +2535,9 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2351
2535
|
|
|
2352
2536
|
|
|
2353
2537
|
|
|
2354
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2355
|
-
|
|
2356
2538
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2357
2539
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2358
2540
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2359
|
-
localVarRequestOptions.data = serializeDataIfNeeded(businessVerifiedDTO, localVarRequestOptions, configuration)
|
|
2360
2541
|
|
|
2361
2542
|
return {
|
|
2362
2543
|
url: toPathString(localVarUrlObj),
|
|
@@ -2368,8 +2549,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2368
2549
|
* @param {*} [options] Override http request option.
|
|
2369
2550
|
* @throws {RequiredError}
|
|
2370
2551
|
*/
|
|
2371
|
-
|
|
2372
|
-
const localVarPath = `/
|
|
2552
|
+
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2553
|
+
const localVarPath = `/business`;
|
|
2373
2554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2374
2555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2375
2556
|
let baseOptions;
|
|
@@ -2381,10 +2562,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2381
2562
|
const localVarHeaderParameter = {} as any;
|
|
2382
2563
|
const localVarQueryParameter = {} as any;
|
|
2383
2564
|
|
|
2384
|
-
// authentication bearer required
|
|
2385
|
-
// http bearer authentication required
|
|
2386
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2387
|
-
|
|
2388
2565
|
|
|
2389
2566
|
|
|
2390
2567
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2556,14 +2733,13 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2556
2733
|
},
|
|
2557
2734
|
/**
|
|
2558
2735
|
*
|
|
2559
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2560
2736
|
* @param {*} [options] Override http request option.
|
|
2561
2737
|
* @throws {RequiredError}
|
|
2562
2738
|
*/
|
|
2563
|
-
async
|
|
2564
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2739
|
+
async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
|
|
2565
2741
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2566
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.
|
|
2742
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
2567
2743
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2568
2744
|
},
|
|
2569
2745
|
/**
|
|
@@ -2571,10 +2747,10 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2571
2747
|
* @param {*} [options] Override http request option.
|
|
2572
2748
|
* @throws {RequiredError}
|
|
2573
2749
|
*/
|
|
2574
|
-
async
|
|
2575
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2750
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2751
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2576
2752
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2577
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.
|
|
2753
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2578
2754
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2579
2755
|
},
|
|
2580
2756
|
/**
|
|
@@ -2643,20 +2819,19 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2643
2819
|
},
|
|
2644
2820
|
/**
|
|
2645
2821
|
*
|
|
2646
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2647
2822
|
* @param {*} [options] Override http request option.
|
|
2648
2823
|
* @throws {RequiredError}
|
|
2649
2824
|
*/
|
|
2650
|
-
|
|
2651
|
-
return localVarFp.
|
|
2825
|
+
businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2826
|
+
return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
|
|
2652
2827
|
},
|
|
2653
2828
|
/**
|
|
2654
2829
|
*
|
|
2655
2830
|
* @param {*} [options] Override http request option.
|
|
2656
2831
|
* @throws {RequiredError}
|
|
2657
2832
|
*/
|
|
2658
|
-
|
|
2659
|
-
return localVarFp.
|
|
2833
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2834
|
+
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
2660
2835
|
},
|
|
2661
2836
|
/**
|
|
2662
2837
|
*
|
|
@@ -2714,13 +2889,12 @@ export class BusinessApi extends BaseAPI {
|
|
|
2714
2889
|
|
|
2715
2890
|
/**
|
|
2716
2891
|
*
|
|
2717
|
-
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2718
2892
|
* @param {*} [options] Override http request option.
|
|
2719
2893
|
* @throws {RequiredError}
|
|
2720
2894
|
* @memberof BusinessApi
|
|
2721
2895
|
*/
|
|
2722
|
-
public
|
|
2723
|
-
return BusinessApiFp(this.configuration).
|
|
2896
|
+
public businessControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
2897
|
+
return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
2724
2898
|
}
|
|
2725
2899
|
|
|
2726
2900
|
/**
|
|
@@ -2729,8 +2903,8 @@ export class BusinessApi extends BaseAPI {
|
|
|
2729
2903
|
* @throws {RequiredError}
|
|
2730
2904
|
* @memberof BusinessApi
|
|
2731
2905
|
*/
|
|
2732
|
-
public
|
|
2733
|
-
return BusinessApiFp(this.configuration).
|
|
2906
|
+
public businessControllerListBusinesses(options?: RawAxiosRequestConfig) {
|
|
2907
|
+
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
2734
2908
|
}
|
|
2735
2909
|
|
|
2736
2910
|
/**
|
|
@@ -3212,21 +3386,18 @@ export class GoalsApi extends BaseAPI {
|
|
|
3212
3386
|
|
|
3213
3387
|
|
|
3214
3388
|
/**
|
|
3215
|
-
*
|
|
3389
|
+
* IntegrationApi - axios parameter creator
|
|
3216
3390
|
* @export
|
|
3217
3391
|
*/
|
|
3218
|
-
export const
|
|
3392
|
+
export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3219
3393
|
return {
|
|
3220
3394
|
/**
|
|
3221
3395
|
*
|
|
3222
|
-
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3223
3396
|
* @param {*} [options] Override http request option.
|
|
3224
3397
|
* @throws {RequiredError}
|
|
3225
3398
|
*/
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
|
|
3229
|
-
const localVarPath = `/v1/oauth/google`;
|
|
3399
|
+
integrationControllerFetchIntegration: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3400
|
+
const localVarPath = `/v1/calendar`;
|
|
3230
3401
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3231
3402
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3232
3403
|
let baseOptions;
|
|
@@ -3234,18 +3405,19 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3234
3405
|
baseOptions = configuration.baseOptions;
|
|
3235
3406
|
}
|
|
3236
3407
|
|
|
3237
|
-
const localVarRequestOptions = { method: '
|
|
3408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3238
3409
|
const localVarHeaderParameter = {} as any;
|
|
3239
3410
|
const localVarQueryParameter = {} as any;
|
|
3240
3411
|
|
|
3412
|
+
// authentication bearer required
|
|
3413
|
+
// http bearer authentication required
|
|
3414
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3415
|
+
|
|
3241
3416
|
|
|
3242
3417
|
|
|
3243
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3244
|
-
|
|
3245
3418
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3246
3419
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3247
3420
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3248
|
-
localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3249
3421
|
|
|
3250
3422
|
return {
|
|
3251
3423
|
url: toPathString(localVarUrlObj),
|
|
@@ -3254,14 +3426,14 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3254
3426
|
},
|
|
3255
3427
|
/**
|
|
3256
3428
|
*
|
|
3257
|
-
* @param {
|
|
3429
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3258
3430
|
* @param {*} [options] Override http request option.
|
|
3259
3431
|
* @throws {RequiredError}
|
|
3260
3432
|
*/
|
|
3261
|
-
|
|
3262
|
-
// verify required parameter '
|
|
3263
|
-
assertParamExists('
|
|
3264
|
-
const localVarPath = `/v1/
|
|
3433
|
+
integrationControllerGoogleCalendarAccess: async (calendarAccessDTO: CalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3434
|
+
// verify required parameter 'calendarAccessDTO' is not null or undefined
|
|
3435
|
+
assertParamExists('integrationControllerGoogleCalendarAccess', 'calendarAccessDTO', calendarAccessDTO)
|
|
3436
|
+
const localVarPath = `/v1/calendar/google`;
|
|
3265
3437
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3266
3438
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3267
3439
|
let baseOptions;
|
|
@@ -3273,6 +3445,10 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3273
3445
|
const localVarHeaderParameter = {} as any;
|
|
3274
3446
|
const localVarQueryParameter = {} as any;
|
|
3275
3447
|
|
|
3448
|
+
// authentication bearer required
|
|
3449
|
+
// http bearer authentication required
|
|
3450
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3451
|
+
|
|
3276
3452
|
|
|
3277
3453
|
|
|
3278
3454
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -3280,35 +3456,323 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3280
3456
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3281
3457
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3282
3458
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3283
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3459
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calendarAccessDTO, localVarRequestOptions, configuration)
|
|
3284
3460
|
|
|
3285
3461
|
return {
|
|
3286
3462
|
url: toPathString(localVarUrlObj),
|
|
3287
3463
|
options: localVarRequestOptions,
|
|
3288
3464
|
};
|
|
3289
3465
|
},
|
|
3290
|
-
}
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
/**
|
|
3294
|
-
* OAuthApi - functional programming interface
|
|
3295
|
-
* @export
|
|
3296
|
-
*/
|
|
3297
|
-
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
3298
|
-
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
3299
|
-
return {
|
|
3300
3466
|
/**
|
|
3301
3467
|
*
|
|
3302
|
-
* @param {
|
|
3468
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3303
3469
|
* @param {*} [options] Override http request option.
|
|
3304
3470
|
* @throws {RequiredError}
|
|
3305
3471
|
*/
|
|
3306
|
-
async
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
const
|
|
3310
|
-
|
|
3311
|
-
|
|
3472
|
+
integrationControllerMicrosoftCalendar: async (microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3473
|
+
// verify required parameter 'microsoftCalendarAccessDTO' is not null or undefined
|
|
3474
|
+
assertParamExists('integrationControllerMicrosoftCalendar', 'microsoftCalendarAccessDTO', microsoftCalendarAccessDTO)
|
|
3475
|
+
const localVarPath = `/v1/calendar/microsoft`;
|
|
3476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3477
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3478
|
+
let baseOptions;
|
|
3479
|
+
if (configuration) {
|
|
3480
|
+
baseOptions = configuration.baseOptions;
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3484
|
+
const localVarHeaderParameter = {} as any;
|
|
3485
|
+
const localVarQueryParameter = {} as any;
|
|
3486
|
+
|
|
3487
|
+
// authentication bearer required
|
|
3488
|
+
// http bearer authentication required
|
|
3489
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3490
|
+
|
|
3491
|
+
|
|
3492
|
+
|
|
3493
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3494
|
+
|
|
3495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3497
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(microsoftCalendarAccessDTO, localVarRequestOptions, configuration)
|
|
3499
|
+
|
|
3500
|
+
return {
|
|
3501
|
+
url: toPathString(localVarUrlObj),
|
|
3502
|
+
options: localVarRequestOptions,
|
|
3503
|
+
};
|
|
3504
|
+
},
|
|
3505
|
+
}
|
|
3506
|
+
};
|
|
3507
|
+
|
|
3508
|
+
/**
|
|
3509
|
+
* IntegrationApi - functional programming interface
|
|
3510
|
+
* @export
|
|
3511
|
+
*/
|
|
3512
|
+
export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
3513
|
+
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
|
|
3514
|
+
return {
|
|
3515
|
+
/**
|
|
3516
|
+
*
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
*/
|
|
3520
|
+
async integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
|
|
3521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerFetchIntegration(options);
|
|
3522
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3523
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerFetchIntegration']?.[localVarOperationServerIndex]?.url;
|
|
3524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3525
|
+
},
|
|
3526
|
+
/**
|
|
3527
|
+
*
|
|
3528
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3529
|
+
* @param {*} [options] Override http request option.
|
|
3530
|
+
* @throws {RequiredError}
|
|
3531
|
+
*/
|
|
3532
|
+
async integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
|
|
3533
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options);
|
|
3534
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3535
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerGoogleCalendarAccess']?.[localVarOperationServerIndex]?.url;
|
|
3536
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3537
|
+
},
|
|
3538
|
+
/**
|
|
3539
|
+
*
|
|
3540
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3541
|
+
* @param {*} [options] Override http request option.
|
|
3542
|
+
* @throws {RequiredError}
|
|
3543
|
+
*/
|
|
3544
|
+
async integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
|
|
3545
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options);
|
|
3546
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3547
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerMicrosoftCalendar']?.[localVarOperationServerIndex]?.url;
|
|
3548
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3549
|
+
},
|
|
3550
|
+
}
|
|
3551
|
+
};
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* IntegrationApi - factory interface
|
|
3555
|
+
* @export
|
|
3556
|
+
*/
|
|
3557
|
+
export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3558
|
+
const localVarFp = IntegrationApiFp(configuration)
|
|
3559
|
+
return {
|
|
3560
|
+
/**
|
|
3561
|
+
*
|
|
3562
|
+
* @param {*} [options] Override http request option.
|
|
3563
|
+
* @throws {RequiredError}
|
|
3564
|
+
*/
|
|
3565
|
+
integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
|
|
3566
|
+
return localVarFp.integrationControllerFetchIntegration(options).then((request) => request(axios, basePath));
|
|
3567
|
+
},
|
|
3568
|
+
/**
|
|
3569
|
+
*
|
|
3570
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3571
|
+
* @param {*} [options] Override http request option.
|
|
3572
|
+
* @throws {RequiredError}
|
|
3573
|
+
*/
|
|
3574
|
+
integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
|
|
3575
|
+
return localVarFp.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(axios, basePath));
|
|
3576
|
+
},
|
|
3577
|
+
/**
|
|
3578
|
+
*
|
|
3579
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3580
|
+
* @param {*} [options] Override http request option.
|
|
3581
|
+
* @throws {RequiredError}
|
|
3582
|
+
*/
|
|
3583
|
+
integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
|
|
3584
|
+
return localVarFp.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(axios, basePath));
|
|
3585
|
+
},
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
3588
|
+
|
|
3589
|
+
/**
|
|
3590
|
+
* IntegrationApi - object-oriented interface
|
|
3591
|
+
* @export
|
|
3592
|
+
* @class IntegrationApi
|
|
3593
|
+
* @extends {BaseAPI}
|
|
3594
|
+
*/
|
|
3595
|
+
export class IntegrationApi extends BaseAPI {
|
|
3596
|
+
/**
|
|
3597
|
+
*
|
|
3598
|
+
* @param {*} [options] Override http request option.
|
|
3599
|
+
* @throws {RequiredError}
|
|
3600
|
+
* @memberof IntegrationApi
|
|
3601
|
+
*/
|
|
3602
|
+
public integrationControllerFetchIntegration(options?: RawAxiosRequestConfig) {
|
|
3603
|
+
return IntegrationApiFp(this.configuration).integrationControllerFetchIntegration(options).then((request) => request(this.axios, this.basePath));
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
*
|
|
3608
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3609
|
+
* @param {*} [options] Override http request option.
|
|
3610
|
+
* @throws {RequiredError}
|
|
3611
|
+
* @memberof IntegrationApi
|
|
3612
|
+
*/
|
|
3613
|
+
public integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig) {
|
|
3614
|
+
return IntegrationApiFp(this.configuration).integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
*
|
|
3619
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3620
|
+
* @param {*} [options] Override http request option.
|
|
3621
|
+
* @throws {RequiredError}
|
|
3622
|
+
* @memberof IntegrationApi
|
|
3623
|
+
*/
|
|
3624
|
+
public integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig) {
|
|
3625
|
+
return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* OAuthApi - axios parameter creator
|
|
3633
|
+
* @export
|
|
3634
|
+
*/
|
|
3635
|
+
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3636
|
+
return {
|
|
3637
|
+
/**
|
|
3638
|
+
*
|
|
3639
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3640
|
+
* @param {*} [options] Override http request option.
|
|
3641
|
+
* @throws {RequiredError}
|
|
3642
|
+
*/
|
|
3643
|
+
oAuthControllerValidateAppleToken: async (appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3644
|
+
// verify required parameter 'appleVerificationPayloadDTO' is not null or undefined
|
|
3645
|
+
assertParamExists('oAuthControllerValidateAppleToken', 'appleVerificationPayloadDTO', appleVerificationPayloadDTO)
|
|
3646
|
+
const localVarPath = `/v1/oauth/apple`;
|
|
3647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3649
|
+
let baseOptions;
|
|
3650
|
+
if (configuration) {
|
|
3651
|
+
baseOptions = configuration.baseOptions;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3655
|
+
const localVarHeaderParameter = {} as any;
|
|
3656
|
+
const localVarQueryParameter = {} as any;
|
|
3657
|
+
|
|
3658
|
+
|
|
3659
|
+
|
|
3660
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3661
|
+
|
|
3662
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3663
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3664
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3665
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3666
|
+
|
|
3667
|
+
return {
|
|
3668
|
+
url: toPathString(localVarUrlObj),
|
|
3669
|
+
options: localVarRequestOptions,
|
|
3670
|
+
};
|
|
3671
|
+
},
|
|
3672
|
+
/**
|
|
3673
|
+
*
|
|
3674
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3675
|
+
* @param {*} [options] Override http request option.
|
|
3676
|
+
* @throws {RequiredError}
|
|
3677
|
+
*/
|
|
3678
|
+
oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3679
|
+
// verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
|
|
3680
|
+
assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
|
|
3681
|
+
const localVarPath = `/v1/oauth/google`;
|
|
3682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3683
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3684
|
+
let baseOptions;
|
|
3685
|
+
if (configuration) {
|
|
3686
|
+
baseOptions = configuration.baseOptions;
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3690
|
+
const localVarHeaderParameter = {} as any;
|
|
3691
|
+
const localVarQueryParameter = {} as any;
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
|
|
3695
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3696
|
+
|
|
3697
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3699
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3700
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3701
|
+
|
|
3702
|
+
return {
|
|
3703
|
+
url: toPathString(localVarUrlObj),
|
|
3704
|
+
options: localVarRequestOptions,
|
|
3705
|
+
};
|
|
3706
|
+
},
|
|
3707
|
+
/**
|
|
3708
|
+
*
|
|
3709
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3710
|
+
* @param {*} [options] Override http request option.
|
|
3711
|
+
* @throws {RequiredError}
|
|
3712
|
+
*/
|
|
3713
|
+
oAuthControllerValidateGoogleTokenBusiness: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3714
|
+
// verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
|
|
3715
|
+
assertParamExists('oAuthControllerValidateGoogleTokenBusiness', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
|
|
3716
|
+
const localVarPath = `/v1/oauth/google/business`;
|
|
3717
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3718
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3719
|
+
let baseOptions;
|
|
3720
|
+
if (configuration) {
|
|
3721
|
+
baseOptions = configuration.baseOptions;
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3725
|
+
const localVarHeaderParameter = {} as any;
|
|
3726
|
+
const localVarQueryParameter = {} as any;
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3731
|
+
|
|
3732
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3734
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3735
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3736
|
+
|
|
3737
|
+
return {
|
|
3738
|
+
url: toPathString(localVarUrlObj),
|
|
3739
|
+
options: localVarRequestOptions,
|
|
3740
|
+
};
|
|
3741
|
+
},
|
|
3742
|
+
}
|
|
3743
|
+
};
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* OAuthApi - functional programming interface
|
|
3747
|
+
* @export
|
|
3748
|
+
*/
|
|
3749
|
+
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
3750
|
+
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
3751
|
+
return {
|
|
3752
|
+
/**
|
|
3753
|
+
*
|
|
3754
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
async oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleOAuthResponseDTO>> {
|
|
3759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options);
|
|
3760
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3761
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleToken']?.[localVarOperationServerIndex]?.url;
|
|
3762
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3763
|
+
},
|
|
3764
|
+
/**
|
|
3765
|
+
*
|
|
3766
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3767
|
+
* @param {*} [options] Override http request option.
|
|
3768
|
+
* @throws {RequiredError}
|
|
3769
|
+
*/
|
|
3770
|
+
async oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
|
|
3771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options);
|
|
3772
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3773
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
|
|
3774
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3775
|
+
},
|
|
3312
3776
|
/**
|
|
3313
3777
|
*
|
|
3314
3778
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
@@ -3331,6 +3795,15 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
3331
3795
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3332
3796
|
const localVarFp = OAuthApiFp(configuration)
|
|
3333
3797
|
return {
|
|
3798
|
+
/**
|
|
3799
|
+
*
|
|
3800
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
*/
|
|
3804
|
+
oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
|
|
3805
|
+
return localVarFp.oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
3806
|
+
},
|
|
3334
3807
|
/**
|
|
3335
3808
|
*
|
|
3336
3809
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
@@ -3359,6 +3832,17 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
3359
3832
|
* @extends {BaseAPI}
|
|
3360
3833
|
*/
|
|
3361
3834
|
export class OAuthApi extends BaseAPI {
|
|
3835
|
+
/**
|
|
3836
|
+
*
|
|
3837
|
+
* @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
* @memberof OAuthApi
|
|
3841
|
+
*/
|
|
3842
|
+
public oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
3843
|
+
return OAuthApiFp(this.configuration).oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3362
3846
|
/**
|
|
3363
3847
|
*
|
|
3364
3848
|
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
@@ -3390,13 +3874,88 @@ export class OAuthApi extends BaseAPI {
|
|
|
3390
3874
|
*/
|
|
3391
3875
|
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3392
3876
|
return {
|
|
3877
|
+
/**
|
|
3878
|
+
*
|
|
3879
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
paymentControllerCreatePaymentLink: async (createPaymentLinkDTO: CreatePaymentLinkDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3884
|
+
// verify required parameter 'createPaymentLinkDTO' is not null or undefined
|
|
3885
|
+
assertParamExists('paymentControllerCreatePaymentLink', 'createPaymentLinkDTO', createPaymentLinkDTO)
|
|
3886
|
+
const localVarPath = `/v1/payment/payment-link`;
|
|
3887
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3888
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3889
|
+
let baseOptions;
|
|
3890
|
+
if (configuration) {
|
|
3891
|
+
baseOptions = configuration.baseOptions;
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3895
|
+
const localVarHeaderParameter = {} as any;
|
|
3896
|
+
const localVarQueryParameter = {} as any;
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
|
|
3900
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3901
|
+
|
|
3902
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3904
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3905
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentLinkDTO, localVarRequestOptions, configuration)
|
|
3906
|
+
|
|
3907
|
+
return {
|
|
3908
|
+
url: toPathString(localVarUrlObj),
|
|
3909
|
+
options: localVarRequestOptions,
|
|
3910
|
+
};
|
|
3911
|
+
},
|
|
3912
|
+
/**
|
|
3913
|
+
*
|
|
3914
|
+
* @param {string} planId Strip Plan ID
|
|
3915
|
+
* @param {*} [options] Override http request option.
|
|
3916
|
+
* @throws {RequiredError}
|
|
3917
|
+
*/
|
|
3918
|
+
paymentControllerGetPaymentSecretForIntent: async (planId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3919
|
+
// verify required parameter 'planId' is not null or undefined
|
|
3920
|
+
assertParamExists('paymentControllerGetPaymentSecretForIntent', 'planId', planId)
|
|
3921
|
+
const localVarPath = `/v1/payment/payment-secret-for-intent`;
|
|
3922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3923
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3924
|
+
let baseOptions;
|
|
3925
|
+
if (configuration) {
|
|
3926
|
+
baseOptions = configuration.baseOptions;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3930
|
+
const localVarHeaderParameter = {} as any;
|
|
3931
|
+
const localVarQueryParameter = {} as any;
|
|
3932
|
+
|
|
3933
|
+
// authentication bearer required
|
|
3934
|
+
// http bearer authentication required
|
|
3935
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3936
|
+
|
|
3937
|
+
if (planId !== undefined) {
|
|
3938
|
+
localVarQueryParameter['planId'] = planId;
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3945
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3946
|
+
|
|
3947
|
+
return {
|
|
3948
|
+
url: toPathString(localVarUrlObj),
|
|
3949
|
+
options: localVarRequestOptions,
|
|
3950
|
+
};
|
|
3951
|
+
},
|
|
3393
3952
|
/**
|
|
3394
3953
|
*
|
|
3395
3954
|
* @param {*} [options] Override http request option.
|
|
3396
3955
|
* @throws {RequiredError}
|
|
3397
3956
|
*/
|
|
3398
3957
|
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3399
|
-
const localVarPath = `/v1/plans`;
|
|
3958
|
+
const localVarPath = `/v1/payment/plans`;
|
|
3400
3959
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3401
3960
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3402
3961
|
let baseOptions;
|
|
@@ -3410,6 +3969,42 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3410
3969
|
|
|
3411
3970
|
|
|
3412
3971
|
|
|
3972
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3973
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3974
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3975
|
+
|
|
3976
|
+
return {
|
|
3977
|
+
url: toPathString(localVarUrlObj),
|
|
3978
|
+
options: localVarRequestOptions,
|
|
3979
|
+
};
|
|
3980
|
+
},
|
|
3981
|
+
/**
|
|
3982
|
+
*
|
|
3983
|
+
* @param {string} stripeSignature
|
|
3984
|
+
* @param {*} [options] Override http request option.
|
|
3985
|
+
* @throws {RequiredError}
|
|
3986
|
+
*/
|
|
3987
|
+
paymentControllerStripeWebhook: async (stripeSignature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3988
|
+
// verify required parameter 'stripeSignature' is not null or undefined
|
|
3989
|
+
assertParamExists('paymentControllerStripeWebhook', 'stripeSignature', stripeSignature)
|
|
3990
|
+
const localVarPath = `/v1/payment/stripe-webhook`;
|
|
3991
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3992
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3993
|
+
let baseOptions;
|
|
3994
|
+
if (configuration) {
|
|
3995
|
+
baseOptions = configuration.baseOptions;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3999
|
+
const localVarHeaderParameter = {} as any;
|
|
4000
|
+
const localVarQueryParameter = {} as any;
|
|
4001
|
+
|
|
4002
|
+
if (stripeSignature != null) {
|
|
4003
|
+
localVarHeaderParameter['stripe-signature'] = String(stripeSignature);
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
|
|
3413
4008
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3414
4009
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3415
4010
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3429,6 +4024,30 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3429
4024
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
3430
4025
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
3431
4026
|
return {
|
|
4027
|
+
/**
|
|
4028
|
+
*
|
|
4029
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
4030
|
+
* @param {*} [options] Override http request option.
|
|
4031
|
+
* @throws {RequiredError}
|
|
4032
|
+
*/
|
|
4033
|
+
async paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options);
|
|
4035
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4036
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
|
|
4037
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4038
|
+
},
|
|
4039
|
+
/**
|
|
4040
|
+
*
|
|
4041
|
+
* @param {string} planId Strip Plan ID
|
|
4042
|
+
* @param {*} [options] Override http request option.
|
|
4043
|
+
* @throws {RequiredError}
|
|
4044
|
+
*/
|
|
4045
|
+
async paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentResponseDTO>> {
|
|
4046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPaymentSecretForIntent(planId, options);
|
|
4047
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4048
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPaymentSecretForIntent']?.[localVarOperationServerIndex]?.url;
|
|
4049
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4050
|
+
},
|
|
3432
4051
|
/**
|
|
3433
4052
|
*
|
|
3434
4053
|
* @param {*} [options] Override http request option.
|
|
@@ -3440,6 +4059,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
3440
4059
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
3441
4060
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3442
4061
|
},
|
|
4062
|
+
/**
|
|
4063
|
+
*
|
|
4064
|
+
* @param {string} stripeSignature
|
|
4065
|
+
* @param {*} [options] Override http request option.
|
|
4066
|
+
* @throws {RequiredError}
|
|
4067
|
+
*/
|
|
4068
|
+
async paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4069
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerStripeWebhook(stripeSignature, options);
|
|
4070
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4071
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerStripeWebhook']?.[localVarOperationServerIndex]?.url;
|
|
4072
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4073
|
+
},
|
|
3443
4074
|
}
|
|
3444
4075
|
};
|
|
3445
4076
|
|
|
@@ -3450,6 +4081,24 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
3450
4081
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3451
4082
|
const localVarFp = PlansApiFp(configuration)
|
|
3452
4083
|
return {
|
|
4084
|
+
/**
|
|
4085
|
+
*
|
|
4086
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
4087
|
+
* @param {*} [options] Override http request option.
|
|
4088
|
+
* @throws {RequiredError}
|
|
4089
|
+
*/
|
|
4090
|
+
paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4091
|
+
return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
|
|
4092
|
+
},
|
|
4093
|
+
/**
|
|
4094
|
+
*
|
|
4095
|
+
* @param {string} planId Strip Plan ID
|
|
4096
|
+
* @param {*} [options] Override http request option.
|
|
4097
|
+
* @throws {RequiredError}
|
|
4098
|
+
*/
|
|
4099
|
+
paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<StripePaymentIntentResponseDTO> {
|
|
4100
|
+
return localVarFp.paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(axios, basePath));
|
|
4101
|
+
},
|
|
3453
4102
|
/**
|
|
3454
4103
|
*
|
|
3455
4104
|
* @param {*} [options] Override http request option.
|
|
@@ -3458,6 +4107,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
3458
4107
|
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
3459
4108
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
3460
4109
|
},
|
|
4110
|
+
/**
|
|
4111
|
+
*
|
|
4112
|
+
* @param {string} stripeSignature
|
|
4113
|
+
* @param {*} [options] Override http request option.
|
|
4114
|
+
* @throws {RequiredError}
|
|
4115
|
+
*/
|
|
4116
|
+
paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4117
|
+
return localVarFp.paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(axios, basePath));
|
|
4118
|
+
},
|
|
3461
4119
|
};
|
|
3462
4120
|
};
|
|
3463
4121
|
|
|
@@ -3468,6 +4126,28 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
3468
4126
|
* @extends {BaseAPI}
|
|
3469
4127
|
*/
|
|
3470
4128
|
export class PlansApi extends BaseAPI {
|
|
4129
|
+
/**
|
|
4130
|
+
*
|
|
4131
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
4132
|
+
* @param {*} [options] Override http request option.
|
|
4133
|
+
* @throws {RequiredError}
|
|
4134
|
+
* @memberof PlansApi
|
|
4135
|
+
*/
|
|
4136
|
+
public paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig) {
|
|
4137
|
+
return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
/**
|
|
4141
|
+
*
|
|
4142
|
+
* @param {string} planId Strip Plan ID
|
|
4143
|
+
* @param {*} [options] Override http request option.
|
|
4144
|
+
* @throws {RequiredError}
|
|
4145
|
+
* @memberof PlansApi
|
|
4146
|
+
*/
|
|
4147
|
+
public paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig) {
|
|
4148
|
+
return PlansApiFp(this.configuration).paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(this.axios, this.basePath));
|
|
4149
|
+
}
|
|
4150
|
+
|
|
3471
4151
|
/**
|
|
3472
4152
|
*
|
|
3473
4153
|
* @param {*} [options] Override http request option.
|
|
@@ -3477,6 +4157,17 @@ export class PlansApi extends BaseAPI {
|
|
|
3477
4157
|
public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
|
|
3478
4158
|
return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
|
|
3479
4159
|
}
|
|
4160
|
+
|
|
4161
|
+
/**
|
|
4162
|
+
*
|
|
4163
|
+
* @param {string} stripeSignature
|
|
4164
|
+
* @param {*} [options] Override http request option.
|
|
4165
|
+
* @throws {RequiredError}
|
|
4166
|
+
* @memberof PlansApi
|
|
4167
|
+
*/
|
|
4168
|
+
public paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig) {
|
|
4169
|
+
return PlansApiFp(this.configuration).paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(this.axios, this.basePath));
|
|
4170
|
+
}
|
|
3480
4171
|
}
|
|
3481
4172
|
|
|
3482
4173
|
|