@gooday_corp/gooday-api-client 1.1.10-beta → 1.1.10-delta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/api.ts +327 -106
  2. 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
- * Business Category
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
- 'numberOfEmployees'?: string;
209
+ 'userId'?: string;
222
210
  /**
223
- * Business Type
211
+ * Business Category
224
212
  * @type {string}
225
213
  * @memberof BusinessEntity
226
214
  */
227
- 'priceRange'?: string;
215
+ 'businessCategory'?: string;
228
216
  /**
229
- * Business Account Confirmation
217
+ * Business verification status
230
218
  * @type {string}
231
219
  * @memberof BusinessEntity
232
220
  */
233
- 'isVerifiedFromAdmin'?: BusinessEntityIsVerifiedFromAdminEnum;
221
+ 'status': BusinessEntityStatusEnum;
234
222
  }
235
223
 
236
- export const BusinessEntityIsVerifiedFromAdminEnum = {
237
- ApplicationSubmitted: 'application_submitted',
238
- UnderVerification: 'under_verification',
239
- PaymentProcessing: 'payment_processing',
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 BusinessEntityIsVerifiedFromAdminEnum = typeof BusinessEntityIsVerifiedFromAdminEnum[keyof typeof BusinessEntityIsVerifiedFromAdminEnum];
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
- 'venue'?: Array<BusinessVenueDTO>;
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
- 'numberOfEmployees'?: string;
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
@@ -1019,6 +996,12 @@ export interface PlanEntity {
1019
996
  * @memberof PlanEntity
1020
997
  */
1021
998
  'description': string;
999
+ /**
1000
+ *
1001
+ * @type {string}
1002
+ * @memberof PlanEntity
1003
+ */
1004
+ 'currency': string;
1022
1005
  /**
1023
1006
  * Array of features included in the plan
1024
1007
  * @type {Array<PlanFeature>}
@@ -1375,6 +1358,50 @@ export interface SkillDto {
1375
1358
  */
1376
1359
  'weightage': number;
1377
1360
  }
1361
+ /**
1362
+ *
1363
+ * @export
1364
+ * @interface StripPaymentDTO
1365
+ */
1366
+ export interface StripPaymentDTO {
1367
+ /**
1368
+ * Strip Customer ID
1369
+ * @type {string}
1370
+ * @memberof StripPaymentDTO
1371
+ */
1372
+ 'customerId': string;
1373
+ /**
1374
+ * Strip ephemeral Key
1375
+ * @type {string}
1376
+ * @memberof StripPaymentDTO
1377
+ */
1378
+ 'ephemeralKey': string;
1379
+ /**
1380
+ * Strip ClientSecret
1381
+ * @type {string}
1382
+ * @memberof StripPaymentDTO
1383
+ */
1384
+ 'clientSecret': string;
1385
+ }
1386
+ /**
1387
+ *
1388
+ * @export
1389
+ * @interface StripePaymentIntentResponseDTO
1390
+ */
1391
+ export interface StripePaymentIntentResponseDTO {
1392
+ /**
1393
+ * statuscCode
1394
+ * @type {number}
1395
+ * @memberof StripePaymentIntentResponseDTO
1396
+ */
1397
+ 'statusCode': number;
1398
+ /**
1399
+ * Strip Intent Data
1400
+ * @type {StripPaymentDTO}
1401
+ * @memberof StripePaymentIntentResponseDTO
1402
+ */
1403
+ 'data': StripPaymentDTO;
1404
+ }
1378
1405
  /**
1379
1406
  *
1380
1407
  * @export
@@ -2403,14 +2430,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2403
2430
  },
2404
2431
  /**
2405
2432
  *
2406
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2407
2433
  * @param {*} [options] Override http request option.
2408
2434
  * @throws {RequiredError}
2409
2435
  */
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`;
2436
+ businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2437
+ const localVarPath = `/v1/business/me`;
2414
2438
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2415
2439
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2416
2440
  let baseOptions;
@@ -2418,7 +2442,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2418
2442
  baseOptions = configuration.baseOptions;
2419
2443
  }
2420
2444
 
2421
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2445
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2422
2446
  const localVarHeaderParameter = {} as any;
2423
2447
  const localVarQueryParameter = {} as any;
2424
2448
 
@@ -2428,12 +2452,9 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2428
2452
 
2429
2453
 
2430
2454
 
2431
- localVarHeaderParameter['Content-Type'] = 'application/json';
2432
-
2433
2455
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2434
2456
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2435
2457
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2436
- localVarRequestOptions.data = serializeDataIfNeeded(businessVerifiedDTO, localVarRequestOptions, configuration)
2437
2458
 
2438
2459
  return {
2439
2460
  url: toPathString(localVarUrlObj),
@@ -2445,8 +2466,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2445
2466
  * @param {*} [options] Override http request option.
2446
2467
  * @throws {RequiredError}
2447
2468
  */
2448
- businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2449
- const localVarPath = `/v1/business/me`;
2469
+ businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2470
+ const localVarPath = `/business`;
2450
2471
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2451
2472
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2452
2473
  let baseOptions;
@@ -2458,10 +2479,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2458
2479
  const localVarHeaderParameter = {} as any;
2459
2480
  const localVarQueryParameter = {} as any;
2460
2481
 
2461
- // authentication bearer required
2462
- // http bearer authentication required
2463
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2464
-
2465
2482
 
2466
2483
 
2467
2484
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2633,14 +2650,13 @@ export const BusinessApiFp = function(configuration?: Configuration) {
2633
2650
  },
2634
2651
  /**
2635
2652
  *
2636
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2637
2653
  * @param {*} [options] Override http request option.
2638
2654
  * @throws {RequiredError}
2639
2655
  */
2640
- async businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2641
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessVerified(businessVerifiedDTO, options);
2656
+ async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2657
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
2642
2658
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2643
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessVerified']?.[localVarOperationServerIndex]?.url;
2659
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
2644
2660
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2645
2661
  },
2646
2662
  /**
@@ -2648,10 +2664,10 @@ export const BusinessApiFp = function(configuration?: Configuration) {
2648
2664
  * @param {*} [options] Override http request option.
2649
2665
  * @throws {RequiredError}
2650
2666
  */
2651
- async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2652
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
2667
+ async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
2653
2669
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2654
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
2670
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
2655
2671
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2656
2672
  },
2657
2673
  /**
@@ -2720,20 +2736,19 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
2720
2736
  },
2721
2737
  /**
2722
2738
  *
2723
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2724
2739
  * @param {*} [options] Override http request option.
2725
2740
  * @throws {RequiredError}
2726
2741
  */
2727
- businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2728
- return localVarFp.businessControllerBusinessVerified(businessVerifiedDTO, options).then((request) => request(axios, basePath));
2742
+ businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2743
+ return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
2729
2744
  },
2730
2745
  /**
2731
2746
  *
2732
2747
  * @param {*} [options] Override http request option.
2733
2748
  * @throws {RequiredError}
2734
2749
  */
2735
- businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2736
- return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
2750
+ businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<void> {
2751
+ return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
2737
2752
  },
2738
2753
  /**
2739
2754
  *
@@ -2791,13 +2806,12 @@ export class BusinessApi extends BaseAPI {
2791
2806
 
2792
2807
  /**
2793
2808
  *
2794
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2795
2809
  * @param {*} [options] Override http request option.
2796
2810
  * @throws {RequiredError}
2797
2811
  * @memberof BusinessApi
2798
2812
  */
2799
- public businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig) {
2800
- return BusinessApiFp(this.configuration).businessControllerBusinessVerified(businessVerifiedDTO, options).then((request) => request(this.axios, this.basePath));
2813
+ public businessControllerGetMe(options?: RawAxiosRequestConfig) {
2814
+ return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
2801
2815
  }
2802
2816
 
2803
2817
  /**
@@ -2806,8 +2820,8 @@ export class BusinessApi extends BaseAPI {
2806
2820
  * @throws {RequiredError}
2807
2821
  * @memberof BusinessApi
2808
2822
  */
2809
- public businessControllerGetMe(options?: RawAxiosRequestConfig) {
2810
- return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
2823
+ public businessControllerListBusinesses(options?: RawAxiosRequestConfig) {
2824
+ return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
2811
2825
  }
2812
2826
 
2813
2827
  /**
@@ -3648,13 +3662,88 @@ export class OAuthApi extends BaseAPI {
3648
3662
  */
3649
3663
  export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
3650
3664
  return {
3665
+ /**
3666
+ *
3667
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3668
+ * @param {*} [options] Override http request option.
3669
+ * @throws {RequiredError}
3670
+ */
3671
+ paymentControllerCreatePaymentLink: async (createPaymentLinkDTO: CreatePaymentLinkDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3672
+ // verify required parameter 'createPaymentLinkDTO' is not null or undefined
3673
+ assertParamExists('paymentControllerCreatePaymentLink', 'createPaymentLinkDTO', createPaymentLinkDTO)
3674
+ const localVarPath = `/v1/payment/payment-link`;
3675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3676
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3677
+ let baseOptions;
3678
+ if (configuration) {
3679
+ baseOptions = configuration.baseOptions;
3680
+ }
3681
+
3682
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3683
+ const localVarHeaderParameter = {} as any;
3684
+ const localVarQueryParameter = {} as any;
3685
+
3686
+
3687
+
3688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3689
+
3690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3692
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3693
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentLinkDTO, localVarRequestOptions, configuration)
3694
+
3695
+ return {
3696
+ url: toPathString(localVarUrlObj),
3697
+ options: localVarRequestOptions,
3698
+ };
3699
+ },
3700
+ /**
3701
+ *
3702
+ * @param {string} planId Strip Plan ID
3703
+ * @param {*} [options] Override http request option.
3704
+ * @throws {RequiredError}
3705
+ */
3706
+ paymentControllerGetPaymentSecretForIntent: async (planId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3707
+ // verify required parameter 'planId' is not null or undefined
3708
+ assertParamExists('paymentControllerGetPaymentSecretForIntent', 'planId', planId)
3709
+ const localVarPath = `/v1/payment/payment-secret-for-intent`;
3710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3711
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3712
+ let baseOptions;
3713
+ if (configuration) {
3714
+ baseOptions = configuration.baseOptions;
3715
+ }
3716
+
3717
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3718
+ const localVarHeaderParameter = {} as any;
3719
+ const localVarQueryParameter = {} as any;
3720
+
3721
+ // authentication bearer required
3722
+ // http bearer authentication required
3723
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3724
+
3725
+ if (planId !== undefined) {
3726
+ localVarQueryParameter['planId'] = planId;
3727
+ }
3728
+
3729
+
3730
+
3731
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3733
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3734
+
3735
+ return {
3736
+ url: toPathString(localVarUrlObj),
3737
+ options: localVarRequestOptions,
3738
+ };
3739
+ },
3651
3740
  /**
3652
3741
  *
3653
3742
  * @param {*} [options] Override http request option.
3654
3743
  * @throws {RequiredError}
3655
3744
  */
3656
3745
  paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3657
- const localVarPath = `/v1/plans`;
3746
+ const localVarPath = `/v1/payment/plans`;
3658
3747
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3659
3748
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3660
3749
  let baseOptions;
@@ -3668,6 +3757,42 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
3668
3757
 
3669
3758
 
3670
3759
 
3760
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3761
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3762
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3763
+
3764
+ return {
3765
+ url: toPathString(localVarUrlObj),
3766
+ options: localVarRequestOptions,
3767
+ };
3768
+ },
3769
+ /**
3770
+ *
3771
+ * @param {string} stripeSignature
3772
+ * @param {*} [options] Override http request option.
3773
+ * @throws {RequiredError}
3774
+ */
3775
+ paymentControllerStripeWebhook: async (stripeSignature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3776
+ // verify required parameter 'stripeSignature' is not null or undefined
3777
+ assertParamExists('paymentControllerStripeWebhook', 'stripeSignature', stripeSignature)
3778
+ const localVarPath = `/v1/payment/stripe-webhook`;
3779
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3780
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3781
+ let baseOptions;
3782
+ if (configuration) {
3783
+ baseOptions = configuration.baseOptions;
3784
+ }
3785
+
3786
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3787
+ const localVarHeaderParameter = {} as any;
3788
+ const localVarQueryParameter = {} as any;
3789
+
3790
+ if (stripeSignature != null) {
3791
+ localVarHeaderParameter['stripe-signature'] = String(stripeSignature);
3792
+ }
3793
+
3794
+
3795
+
3671
3796
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3672
3797
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3673
3798
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3687,6 +3812,30 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
3687
3812
  export const PlansApiFp = function(configuration?: Configuration) {
3688
3813
  const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
3689
3814
  return {
3815
+ /**
3816
+ *
3817
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3818
+ * @param {*} [options] Override http request option.
3819
+ * @throws {RequiredError}
3820
+ */
3821
+ async paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options);
3823
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3824
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
3825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3826
+ },
3827
+ /**
3828
+ *
3829
+ * @param {string} planId Strip Plan ID
3830
+ * @param {*} [options] Override http request option.
3831
+ * @throws {RequiredError}
3832
+ */
3833
+ async paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentResponseDTO>> {
3834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPaymentSecretForIntent(planId, options);
3835
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3836
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPaymentSecretForIntent']?.[localVarOperationServerIndex]?.url;
3837
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3838
+ },
3690
3839
  /**
3691
3840
  *
3692
3841
  * @param {*} [options] Override http request option.
@@ -3698,6 +3847,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
3698
3847
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
3699
3848
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3700
3849
  },
3850
+ /**
3851
+ *
3852
+ * @param {string} stripeSignature
3853
+ * @param {*} [options] Override http request option.
3854
+ * @throws {RequiredError}
3855
+ */
3856
+ async paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerStripeWebhook(stripeSignature, options);
3858
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3859
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerStripeWebhook']?.[localVarOperationServerIndex]?.url;
3860
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3861
+ },
3701
3862
  }
3702
3863
  };
3703
3864
 
@@ -3708,6 +3869,24 @@ export const PlansApiFp = function(configuration?: Configuration) {
3708
3869
  export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3709
3870
  const localVarFp = PlansApiFp(configuration)
3710
3871
  return {
3872
+ /**
3873
+ *
3874
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3875
+ * @param {*} [options] Override http request option.
3876
+ * @throws {RequiredError}
3877
+ */
3878
+ paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3879
+ return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
3880
+ },
3881
+ /**
3882
+ *
3883
+ * @param {string} planId Strip Plan ID
3884
+ * @param {*} [options] Override http request option.
3885
+ * @throws {RequiredError}
3886
+ */
3887
+ paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<StripePaymentIntentResponseDTO> {
3888
+ return localVarFp.paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(axios, basePath));
3889
+ },
3711
3890
  /**
3712
3891
  *
3713
3892
  * @param {*} [options] Override http request option.
@@ -3716,6 +3895,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
3716
3895
  paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
3717
3896
  return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
3718
3897
  },
3898
+ /**
3899
+ *
3900
+ * @param {string} stripeSignature
3901
+ * @param {*} [options] Override http request option.
3902
+ * @throws {RequiredError}
3903
+ */
3904
+ paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3905
+ return localVarFp.paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(axios, basePath));
3906
+ },
3719
3907
  };
3720
3908
  };
3721
3909
 
@@ -3726,6 +3914,28 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
3726
3914
  * @extends {BaseAPI}
3727
3915
  */
3728
3916
  export class PlansApi extends BaseAPI {
3917
+ /**
3918
+ *
3919
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3920
+ * @param {*} [options] Override http request option.
3921
+ * @throws {RequiredError}
3922
+ * @memberof PlansApi
3923
+ */
3924
+ public paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig) {
3925
+ return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
3926
+ }
3927
+
3928
+ /**
3929
+ *
3930
+ * @param {string} planId Strip Plan ID
3931
+ * @param {*} [options] Override http request option.
3932
+ * @throws {RequiredError}
3933
+ * @memberof PlansApi
3934
+ */
3935
+ public paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig) {
3936
+ return PlansApiFp(this.configuration).paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(this.axios, this.basePath));
3937
+ }
3938
+
3729
3939
  /**
3730
3940
  *
3731
3941
  * @param {*} [options] Override http request option.
@@ -3735,6 +3945,17 @@ export class PlansApi extends BaseAPI {
3735
3945
  public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
3736
3946
  return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
3737
3947
  }
3948
+
3949
+ /**
3950
+ *
3951
+ * @param {string} stripeSignature
3952
+ * @param {*} [options] Override http request option.
3953
+ * @throws {RequiredError}
3954
+ * @memberof PlansApi
3955
+ */
3956
+ public paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig) {
3957
+ return PlansApiFp(this.configuration).paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(this.axios, this.basePath));
3958
+ }
3738
3959
  }
3739
3960
 
3740
3961
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.10-beta",
3
+ "version": "1.1.10-delta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},