@gooday_corp/gooday-api-client 1.1.10-alpha → 1.1.10-beta
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 +106 -205
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -195,6 +195,12 @@ 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;
|
|
198
204
|
/**
|
|
199
205
|
* Business Type
|
|
200
206
|
* @type {string}
|
|
@@ -202,32 +208,39 @@ export interface BusinessEntity {
|
|
|
202
208
|
*/
|
|
203
209
|
'businessType'?: string;
|
|
204
210
|
/**
|
|
205
|
-
*
|
|
211
|
+
* Business Category
|
|
212
|
+
* @type {Array<string>}
|
|
213
|
+
* @memberof BusinessEntity
|
|
214
|
+
*/
|
|
215
|
+
'businessCategory'?: Array<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Business Employee
|
|
206
218
|
* @type {string}
|
|
207
219
|
* @memberof BusinessEntity
|
|
208
220
|
*/
|
|
209
|
-
'
|
|
221
|
+
'numberOfEmployees'?: string;
|
|
210
222
|
/**
|
|
211
|
-
* Business
|
|
223
|
+
* Business Type
|
|
212
224
|
* @type {string}
|
|
213
225
|
* @memberof BusinessEntity
|
|
214
226
|
*/
|
|
215
|
-
'
|
|
227
|
+
'priceRange'?: string;
|
|
216
228
|
/**
|
|
217
|
-
* Business
|
|
229
|
+
* Business Account Confirmation
|
|
218
230
|
* @type {string}
|
|
219
231
|
* @memberof BusinessEntity
|
|
220
232
|
*/
|
|
221
|
-
'
|
|
233
|
+
'isVerifiedFromAdmin'?: BusinessEntityIsVerifiedFromAdminEnum;
|
|
222
234
|
}
|
|
223
235
|
|
|
224
|
-
export const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
236
|
+
export const BusinessEntityIsVerifiedFromAdminEnum = {
|
|
237
|
+
ApplicationSubmitted: 'application_submitted',
|
|
238
|
+
UnderVerification: 'under_verification',
|
|
239
|
+
PaymentProcessing: 'payment_processing',
|
|
240
|
+
Completed: 'completed'
|
|
228
241
|
} as const;
|
|
229
242
|
|
|
230
|
-
export type
|
|
243
|
+
export type BusinessEntityIsVerifiedFromAdminEnum = typeof BusinessEntityIsVerifiedFromAdminEnum[keyof typeof BusinessEntityIsVerifiedFromAdminEnum];
|
|
231
244
|
|
|
232
245
|
/**
|
|
233
246
|
*
|
|
@@ -246,7 +259,13 @@ export interface BusinessOnBoardingDTO {
|
|
|
246
259
|
* @type {Array<BusinessVenueDTO>}
|
|
247
260
|
* @memberof BusinessOnBoardingDTO
|
|
248
261
|
*/
|
|
249
|
-
'
|
|
262
|
+
'venue'?: Array<BusinessVenueDTO>;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {string}
|
|
266
|
+
* @memberof BusinessOnBoardingDTO
|
|
267
|
+
*/
|
|
268
|
+
'verificationDoc'?: string;
|
|
250
269
|
/**
|
|
251
270
|
* Business policies
|
|
252
271
|
* @type {string}
|
|
@@ -279,16 +298,28 @@ export interface BusinessOnBoardingDTO {
|
|
|
279
298
|
'businessType'?: string;
|
|
280
299
|
/**
|
|
281
300
|
* Business Category
|
|
301
|
+
* @type {Array<string>}
|
|
302
|
+
* @memberof BusinessOnBoardingDTO
|
|
303
|
+
*/
|
|
304
|
+
'businessCategory'?: Array<string>;
|
|
305
|
+
/**
|
|
306
|
+
* Business Employee
|
|
282
307
|
* @type {string}
|
|
283
308
|
* @memberof BusinessOnBoardingDTO
|
|
284
309
|
*/
|
|
285
|
-
'
|
|
310
|
+
'numberOfEmployees'?: string;
|
|
286
311
|
/**
|
|
287
312
|
* Assistant ID
|
|
288
313
|
* @type {string}
|
|
289
314
|
* @memberof BusinessOnBoardingDTO
|
|
290
315
|
*/
|
|
291
316
|
'assistant'?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Business Type
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof BusinessOnBoardingDTO
|
|
321
|
+
*/
|
|
322
|
+
'priceRange'?: string;
|
|
292
323
|
}
|
|
293
324
|
/**
|
|
294
325
|
*
|
|
@@ -448,6 +479,35 @@ export interface BusinessVerificationResponse {
|
|
|
448
479
|
*/
|
|
449
480
|
'data': BusinessVerificationEntity;
|
|
450
481
|
}
|
|
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
|
+
|
|
451
511
|
/**
|
|
452
512
|
*
|
|
453
513
|
* @export
|
|
@@ -505,43 +565,6 @@ export interface CategoryListResponse {
|
|
|
505
565
|
*/
|
|
506
566
|
'data': Array<CategoryEntity>;
|
|
507
567
|
}
|
|
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
|
-
}
|
|
545
568
|
/**
|
|
546
569
|
*
|
|
547
570
|
* @export
|
|
@@ -2380,11 +2403,14 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2380
2403
|
},
|
|
2381
2404
|
/**
|
|
2382
2405
|
*
|
|
2406
|
+
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2383
2407
|
* @param {*} [options] Override http request option.
|
|
2384
2408
|
* @throws {RequiredError}
|
|
2385
2409
|
*/
|
|
2386
|
-
|
|
2387
|
-
|
|
2410
|
+
businessControllerBusinessVerified: async (businessVerifiedDTO: BusinessVerifiedDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2411
|
+
// verify required parameter 'businessVerifiedDTO' is not null or undefined
|
|
2412
|
+
assertParamExists('businessControllerBusinessVerified', 'businessVerifiedDTO', businessVerifiedDTO)
|
|
2413
|
+
const localVarPath = `/v1/business/verified`;
|
|
2388
2414
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2389
2415
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2390
2416
|
let baseOptions;
|
|
@@ -2392,7 +2418,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2392
2418
|
baseOptions = configuration.baseOptions;
|
|
2393
2419
|
}
|
|
2394
2420
|
|
|
2395
|
-
const localVarRequestOptions = { method: '
|
|
2421
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2396
2422
|
const localVarHeaderParameter = {} as any;
|
|
2397
2423
|
const localVarQueryParameter = {} as any;
|
|
2398
2424
|
|
|
@@ -2402,9 +2428,12 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2402
2428
|
|
|
2403
2429
|
|
|
2404
2430
|
|
|
2431
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2432
|
+
|
|
2405
2433
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2406
2434
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2407
2435
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2436
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessVerifiedDTO, localVarRequestOptions, configuration)
|
|
2408
2437
|
|
|
2409
2438
|
return {
|
|
2410
2439
|
url: toPathString(localVarUrlObj),
|
|
@@ -2416,8 +2445,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2416
2445
|
* @param {*} [options] Override http request option.
|
|
2417
2446
|
* @throws {RequiredError}
|
|
2418
2447
|
*/
|
|
2419
|
-
|
|
2420
|
-
const localVarPath = `/business`;
|
|
2448
|
+
businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2449
|
+
const localVarPath = `/v1/business/me`;
|
|
2421
2450
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2422
2451
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2423
2452
|
let baseOptions;
|
|
@@ -2429,6 +2458,10 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2429
2458
|
const localVarHeaderParameter = {} as any;
|
|
2430
2459
|
const localVarQueryParameter = {} as any;
|
|
2431
2460
|
|
|
2461
|
+
// authentication bearer required
|
|
2462
|
+
// http bearer authentication required
|
|
2463
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2464
|
+
|
|
2432
2465
|
|
|
2433
2466
|
|
|
2434
2467
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2600,13 +2633,14 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2600
2633
|
},
|
|
2601
2634
|
/**
|
|
2602
2635
|
*
|
|
2636
|
+
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2603
2637
|
* @param {*} [options] Override http request option.
|
|
2604
2638
|
* @throws {RequiredError}
|
|
2605
2639
|
*/
|
|
2606
|
-
async
|
|
2607
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2640
|
+
async businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessVerified(businessVerifiedDTO, options);
|
|
2608
2642
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2609
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.
|
|
2643
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessVerified']?.[localVarOperationServerIndex]?.url;
|
|
2610
2644
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2611
2645
|
},
|
|
2612
2646
|
/**
|
|
@@ -2614,10 +2648,10 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2614
2648
|
* @param {*} [options] Override http request option.
|
|
2615
2649
|
* @throws {RequiredError}
|
|
2616
2650
|
*/
|
|
2617
|
-
async
|
|
2618
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2651
|
+
async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
|
|
2619
2653
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2620
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessApi.
|
|
2654
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
2621
2655
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2622
2656
|
},
|
|
2623
2657
|
/**
|
|
@@ -2686,19 +2720,20 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2686
2720
|
},
|
|
2687
2721
|
/**
|
|
2688
2722
|
*
|
|
2723
|
+
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2689
2724
|
* @param {*} [options] Override http request option.
|
|
2690
2725
|
* @throws {RequiredError}
|
|
2691
2726
|
*/
|
|
2692
|
-
|
|
2693
|
-
return localVarFp.
|
|
2727
|
+
businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2728
|
+
return localVarFp.businessControllerBusinessVerified(businessVerifiedDTO, options).then((request) => request(axios, basePath));
|
|
2694
2729
|
},
|
|
2695
2730
|
/**
|
|
2696
2731
|
*
|
|
2697
2732
|
* @param {*} [options] Override http request option.
|
|
2698
2733
|
* @throws {RequiredError}
|
|
2699
2734
|
*/
|
|
2700
|
-
|
|
2701
|
-
return localVarFp.
|
|
2735
|
+
businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2736
|
+
return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
|
|
2702
2737
|
},
|
|
2703
2738
|
/**
|
|
2704
2739
|
*
|
|
@@ -2756,12 +2791,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
2756
2791
|
|
|
2757
2792
|
/**
|
|
2758
2793
|
*
|
|
2794
|
+
* @param {BusinessVerifiedDTO} businessVerifiedDTO
|
|
2759
2795
|
* @param {*} [options] Override http request option.
|
|
2760
2796
|
* @throws {RequiredError}
|
|
2761
2797
|
* @memberof BusinessApi
|
|
2762
2798
|
*/
|
|
2763
|
-
public
|
|
2764
|
-
return BusinessApiFp(this.configuration).
|
|
2799
|
+
public businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig) {
|
|
2800
|
+
return BusinessApiFp(this.configuration).businessControllerBusinessVerified(businessVerifiedDTO, options).then((request) => request(this.axios, this.basePath));
|
|
2765
2801
|
}
|
|
2766
2802
|
|
|
2767
2803
|
/**
|
|
@@ -2770,8 +2806,8 @@ export class BusinessApi extends BaseAPI {
|
|
|
2770
2806
|
* @throws {RequiredError}
|
|
2771
2807
|
* @memberof BusinessApi
|
|
2772
2808
|
*/
|
|
2773
|
-
public
|
|
2774
|
-
return BusinessApiFp(this.configuration).
|
|
2809
|
+
public businessControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
2810
|
+
return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
2775
2811
|
}
|
|
2776
2812
|
|
|
2777
2813
|
/**
|
|
@@ -3612,48 +3648,13 @@ export class OAuthApi extends BaseAPI {
|
|
|
3612
3648
|
*/
|
|
3613
3649
|
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3614
3650
|
return {
|
|
3615
|
-
/**
|
|
3616
|
-
*
|
|
3617
|
-
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3618
|
-
* @param {*} [options] Override http request option.
|
|
3619
|
-
* @throws {RequiredError}
|
|
3620
|
-
*/
|
|
3621
|
-
paymentControllerCreatePaymentLink: async (createPaymentLinkDTO: CreatePaymentLinkDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3622
|
-
// verify required parameter 'createPaymentLinkDTO' is not null or undefined
|
|
3623
|
-
assertParamExists('paymentControllerCreatePaymentLink', 'createPaymentLinkDTO', createPaymentLinkDTO)
|
|
3624
|
-
const localVarPath = `/v1/payment/payment-link`;
|
|
3625
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3626
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3627
|
-
let baseOptions;
|
|
3628
|
-
if (configuration) {
|
|
3629
|
-
baseOptions = configuration.baseOptions;
|
|
3630
|
-
}
|
|
3631
|
-
|
|
3632
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3633
|
-
const localVarHeaderParameter = {} as any;
|
|
3634
|
-
const localVarQueryParameter = {} as any;
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3639
|
-
|
|
3640
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3641
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3642
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3643
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentLinkDTO, localVarRequestOptions, configuration)
|
|
3644
|
-
|
|
3645
|
-
return {
|
|
3646
|
-
url: toPathString(localVarUrlObj),
|
|
3647
|
-
options: localVarRequestOptions,
|
|
3648
|
-
};
|
|
3649
|
-
},
|
|
3650
3651
|
/**
|
|
3651
3652
|
*
|
|
3652
3653
|
* @param {*} [options] Override http request option.
|
|
3653
3654
|
* @throws {RequiredError}
|
|
3654
3655
|
*/
|
|
3655
3656
|
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3656
|
-
const localVarPath = `/v1/
|
|
3657
|
+
const localVarPath = `/v1/plans`;
|
|
3657
3658
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3658
3659
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3659
3660
|
let baseOptions;
|
|
@@ -3667,42 +3668,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3667
3668
|
|
|
3668
3669
|
|
|
3669
3670
|
|
|
3670
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3671
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3672
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3673
|
-
|
|
3674
|
-
return {
|
|
3675
|
-
url: toPathString(localVarUrlObj),
|
|
3676
|
-
options: localVarRequestOptions,
|
|
3677
|
-
};
|
|
3678
|
-
},
|
|
3679
|
-
/**
|
|
3680
|
-
*
|
|
3681
|
-
* @param {string} stripeSignature
|
|
3682
|
-
* @param {*} [options] Override http request option.
|
|
3683
|
-
* @throws {RequiredError}
|
|
3684
|
-
*/
|
|
3685
|
-
paymentControllerStripeWebhook: async (stripeSignature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3686
|
-
// verify required parameter 'stripeSignature' is not null or undefined
|
|
3687
|
-
assertParamExists('paymentControllerStripeWebhook', 'stripeSignature', stripeSignature)
|
|
3688
|
-
const localVarPath = `/v1/payment/stripe-webhook`;
|
|
3689
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3690
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3691
|
-
let baseOptions;
|
|
3692
|
-
if (configuration) {
|
|
3693
|
-
baseOptions = configuration.baseOptions;
|
|
3694
|
-
}
|
|
3695
|
-
|
|
3696
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3697
|
-
const localVarHeaderParameter = {} as any;
|
|
3698
|
-
const localVarQueryParameter = {} as any;
|
|
3699
|
-
|
|
3700
|
-
if (stripeSignature != null) {
|
|
3701
|
-
localVarHeaderParameter['stripe-signature'] = String(stripeSignature);
|
|
3702
|
-
}
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
3671
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3707
3672
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3708
3673
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3722,18 +3687,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3722
3687
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
3723
3688
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
3724
3689
|
return {
|
|
3725
|
-
/**
|
|
3726
|
-
*
|
|
3727
|
-
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3728
|
-
* @param {*} [options] Override http request option.
|
|
3729
|
-
* @throws {RequiredError}
|
|
3730
|
-
*/
|
|
3731
|
-
async paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3732
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options);
|
|
3733
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3734
|
-
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
|
|
3735
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3736
|
-
},
|
|
3737
3690
|
/**
|
|
3738
3691
|
*
|
|
3739
3692
|
* @param {*} [options] Override http request option.
|
|
@@ -3745,18 +3698,6 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
3745
3698
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
3746
3699
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3747
3700
|
},
|
|
3748
|
-
/**
|
|
3749
|
-
*
|
|
3750
|
-
* @param {string} stripeSignature
|
|
3751
|
-
* @param {*} [options] Override http request option.
|
|
3752
|
-
* @throws {RequiredError}
|
|
3753
|
-
*/
|
|
3754
|
-
async paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerStripeWebhook(stripeSignature, options);
|
|
3756
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3757
|
-
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerStripeWebhook']?.[localVarOperationServerIndex]?.url;
|
|
3758
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3759
|
-
},
|
|
3760
3701
|
}
|
|
3761
3702
|
};
|
|
3762
3703
|
|
|
@@ -3767,15 +3708,6 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
3767
3708
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3768
3709
|
const localVarFp = PlansApiFp(configuration)
|
|
3769
3710
|
return {
|
|
3770
|
-
/**
|
|
3771
|
-
*
|
|
3772
|
-
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3773
|
-
* @param {*} [options] Override http request option.
|
|
3774
|
-
* @throws {RequiredError}
|
|
3775
|
-
*/
|
|
3776
|
-
paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3777
|
-
return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
|
|
3778
|
-
},
|
|
3779
3711
|
/**
|
|
3780
3712
|
*
|
|
3781
3713
|
* @param {*} [options] Override http request option.
|
|
@@ -3784,15 +3716,6 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
3784
3716
|
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
3785
3717
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
3786
3718
|
},
|
|
3787
|
-
/**
|
|
3788
|
-
*
|
|
3789
|
-
* @param {string} stripeSignature
|
|
3790
|
-
* @param {*} [options] Override http request option.
|
|
3791
|
-
* @throws {RequiredError}
|
|
3792
|
-
*/
|
|
3793
|
-
paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3794
|
-
return localVarFp.paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(axios, basePath));
|
|
3795
|
-
},
|
|
3796
3719
|
};
|
|
3797
3720
|
};
|
|
3798
3721
|
|
|
@@ -3803,17 +3726,6 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
3803
3726
|
* @extends {BaseAPI}
|
|
3804
3727
|
*/
|
|
3805
3728
|
export class PlansApi extends BaseAPI {
|
|
3806
|
-
/**
|
|
3807
|
-
*
|
|
3808
|
-
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3809
|
-
* @param {*} [options] Override http request option.
|
|
3810
|
-
* @throws {RequiredError}
|
|
3811
|
-
* @memberof PlansApi
|
|
3812
|
-
*/
|
|
3813
|
-
public paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig) {
|
|
3814
|
-
return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3815
|
-
}
|
|
3816
|
-
|
|
3817
3729
|
/**
|
|
3818
3730
|
*
|
|
3819
3731
|
* @param {*} [options] Override http request option.
|
|
@@ -3823,17 +3735,6 @@ export class PlansApi extends BaseAPI {
|
|
|
3823
3735
|
public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
|
|
3824
3736
|
return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
|
|
3825
3737
|
}
|
|
3826
|
-
|
|
3827
|
-
/**
|
|
3828
|
-
*
|
|
3829
|
-
* @param {string} stripeSignature
|
|
3830
|
-
* @param {*} [options] Override http request option.
|
|
3831
|
-
* @throws {RequiredError}
|
|
3832
|
-
* @memberof PlansApi
|
|
3833
|
-
*/
|
|
3834
|
-
public paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig) {
|
|
3835
|
-
return PlansApiFp(this.configuration).paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(this.axios, this.basePath));
|
|
3836
|
-
}
|
|
3837
3738
|
}
|
|
3838
3739
|
|
|
3839
3740
|
|