@tennac-booking/sdk 1.0.72 → 1.0.74

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 (43) hide show
  1. package/.openapi-generator/FILES +1 -6
  2. package/README.md +3 -11
  3. package/api.ts +132 -482
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +86 -353
  8. package/dist/api.js +95 -200
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +86 -353
  16. package/dist/esm/api.js +90 -199
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingInfo.md +2 -2
  28. package/docs/ClubSettingsResponse.md +0 -2
  29. package/docs/CreateBookingRequest.md +2 -2
  30. package/docs/IUserAttributes.md +2 -12
  31. package/docs/SportsPublicApi.md +53 -0
  32. package/docs/StaffUserProfileResponse.md +2 -12
  33. package/docs/SubscribeRequestBody.md +2 -0
  34. package/docs/UserProfileResponse.md +4 -12
  35. package/docs/UsersApi.md +0 -156
  36. package/index.ts +1 -1
  37. package/package.json +1 -1
  38. package/docs/AddPaymentMethodRequestBody.md +0 -20
  39. package/docs/ConfirmPaymentMethodRequestBody.md +0 -20
  40. package/docs/ConfirmPaymentMethodResponse.md +0 -22
  41. package/docs/PaymentMethodSetupResponse.md +0 -24
  42. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  43. package/docs/SetupPaymentMethodResponse.md +0 -24
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.72
7
+ * The version of the OpenAPI document: 1.0.74
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -92,19 +92,6 @@ export interface AddOrganizationRequest {
92
92
  */
93
93
  'organizationId'?: string;
94
94
  }
95
- /**
96
- *
97
- * @export
98
- * @interface AddPaymentMethodRequestBody
99
- */
100
- export interface AddPaymentMethodRequestBody {
101
- /**
102
- *
103
- * @type {string}
104
- * @memberof AddPaymentMethodRequestBody
105
- */
106
- 'paymentMethodId': string;
107
- }
108
95
  /**
109
96
  *
110
97
  * @export
@@ -359,10 +346,10 @@ export interface BookingInfo {
359
346
  'totalPrice': number;
360
347
  /**
361
348
  * ID du créneau
362
- * @type {string}
349
+ * @type {Array<string>}
363
350
  * @memberof BookingInfo
364
351
  */
365
- 'slotId': string;
352
+ 'slotIds': Array<string>;
366
353
  /**
367
354
  * Indique si le créateur paie pour tous
368
355
  * @type {boolean}
@@ -1393,12 +1380,6 @@ export interface ClubSettingsResponse {
1393
1380
  * @memberof ClubSettingsResponse
1394
1381
  */
1395
1382
  'maxWeeklyBookings': number;
1396
- /**
1397
- * Autoriser plusieurs réservations en même temps
1398
- * @type {boolean}
1399
- * @memberof ClubSettingsResponse
1400
- */
1401
- 'allowMultipleBookingsAtTheSameTime': boolean;
1402
1383
  /**
1403
1384
  * Limite de réservations simultanées
1404
1385
  * @type {number}
@@ -1523,38 +1504,6 @@ export interface ClubUserCountResponse {
1523
1504
  */
1524
1505
  'count': number;
1525
1506
  }
1526
- /**
1527
- *
1528
- * @export
1529
- * @interface ConfirmPaymentMethodRequestBody
1530
- */
1531
- export interface ConfirmPaymentMethodRequestBody {
1532
- /**
1533
- *
1534
- * @type {string}
1535
- * @memberof ConfirmPaymentMethodRequestBody
1536
- */
1537
- 'setupIntentId': string;
1538
- }
1539
- /**
1540
- *
1541
- * @export
1542
- * @interface ConfirmPaymentMethodResponse
1543
- */
1544
- export interface ConfirmPaymentMethodResponse {
1545
- /**
1546
- *
1547
- * @type {string}
1548
- * @memberof ConfirmPaymentMethodResponse
1549
- */
1550
- 'message': string;
1551
- /**
1552
- *
1553
- * @type {string}
1554
- * @memberof ConfirmPaymentMethodResponse
1555
- */
1556
- 'paymentMethodId'?: string | null;
1557
- }
1558
1507
  /**
1559
1508
  *
1560
1509
  * @export
@@ -1717,10 +1666,10 @@ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
1717
1666
  export interface CreateBookingRequest {
1718
1667
  /**
1719
1668
  * ID du créneau à réserver
1720
- * @type {string}
1669
+ * @type {Array<string>}
1721
1670
  * @memberof CreateBookingRequest
1722
1671
  */
1723
- 'slotId': string;
1672
+ 'slotIds': Array<string>;
1724
1673
  /**
1725
1674
  * Liste des joueurs avec leurs méthodes de paiement
1726
1675
  * @type {Array<PlayerWithPaymentMethod>}
@@ -3174,24 +3123,12 @@ export interface IUserAttributes {
3174
3123
  * @memberof IUserAttributes
3175
3124
  */
3176
3125
  'isAccountVerified': boolean;
3177
- /**
3178
- *
3179
- * @type {boolean}
3180
- * @memberof IUserAttributes
3181
- */
3182
- 'isCreditCardRegistered'?: boolean;
3183
3126
  /**
3184
3127
  *
3185
3128
  * @type {Array<ILevelBySports>}
3186
3129
  * @memberof IUserAttributes
3187
3130
  */
3188
3131
  'levelBySports'?: Array<ILevelBySports>;
3189
- /**
3190
- *
3191
- * @type {string}
3192
- * @memberof IUserAttributes
3193
- */
3194
- 'stripeCustomerId'?: string;
3195
3132
  /**
3196
3133
  *
3197
3134
  * @type {string}
@@ -3264,30 +3201,6 @@ export interface IUserAttributes {
3264
3201
  * @memberof IUserAttributes
3265
3202
  */
3266
3203
  'isLevelCertified'?: boolean;
3267
- /**
3268
- *
3269
- * @type {Array<string>}
3270
- * @memberof IUserAttributes
3271
- */
3272
- 'paymentMethods'?: Array<string>;
3273
- /**
3274
- *
3275
- * @type {string}
3276
- * @memberof IUserAttributes
3277
- */
3278
- 'defaultPaymentMethodId'?: string;
3279
- /**
3280
- *
3281
- * @type {boolean}
3282
- * @memberof IUserAttributes
3283
- */
3284
- 'paymentMethodSetupCompleted': boolean;
3285
- /**
3286
- *
3287
- * @type {string}
3288
- * @memberof IUserAttributes
3289
- */
3290
- 'setupIntentId'?: string;
3291
3204
  /**
3292
3205
  *
3293
3206
  * @type {Array<string>}
@@ -3318,6 +3231,12 @@ export interface IUserAttributes {
3318
3231
  * @memberof IUserAttributes
3319
3232
  */
3320
3233
  'sports'?: { [key: string]: any; };
3234
+ /**
3235
+ *
3236
+ * @type {string}
3237
+ * @memberof IUserAttributes
3238
+ */
3239
+ 'stripeCustomerId'?: string;
3321
3240
  }
3322
3241
 
3323
3242
 
@@ -3949,31 +3868,6 @@ export const PaymentMethod = {
3949
3868
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
3950
3869
 
3951
3870
 
3952
- /**
3953
- *
3954
- * @export
3955
- * @interface PaymentMethodSetupResponse
3956
- */
3957
- export interface PaymentMethodSetupResponse {
3958
- /**
3959
- *
3960
- * @type {string}
3961
- * @memberof PaymentMethodSetupResponse
3962
- */
3963
- 'message': string;
3964
- /**
3965
- *
3966
- * @type {Array<string>}
3967
- * @memberof PaymentMethodSetupResponse
3968
- */
3969
- 'paymentMethods': Array<string>;
3970
- /**
3971
- *
3972
- * @type {string}
3973
- * @memberof PaymentMethodSetupResponse
3974
- */
3975
- 'defaultPaymentMethodId'?: string | null;
3976
- }
3977
3871
  /**
3978
3872
  * From T, pick a set of properties whose keys are in the union K
3979
3873
  * @export
@@ -4965,44 +4859,6 @@ export interface ResetPasswordRequest {
4965
4859
  */
4966
4860
  'token'?: string;
4967
4861
  }
4968
- /**
4969
- *
4970
- * @export
4971
- * @interface SetupPaymentMethodRequestBody
4972
- */
4973
- export interface SetupPaymentMethodRequestBody {
4974
- /**
4975
- *
4976
- * @type {string}
4977
- * @memberof SetupPaymentMethodRequestBody
4978
- */
4979
- 'clubId': string;
4980
- }
4981
- /**
4982
- *
4983
- * @export
4984
- * @interface SetupPaymentMethodResponse
4985
- */
4986
- export interface SetupPaymentMethodResponse {
4987
- /**
4988
- *
4989
- * @type {string}
4990
- * @memberof SetupPaymentMethodResponse
4991
- */
4992
- 'setupIntentId': string;
4993
- /**
4994
- *
4995
- * @type {string}
4996
- * @memberof SetupPaymentMethodResponse
4997
- */
4998
- 'clientSecret': string;
4999
- /**
5000
- *
5001
- * @type {string}
5002
- * @memberof SetupPaymentMethodResponse
5003
- */
5004
- 'message': string;
5005
- }
5006
4862
  /**
5007
4863
  *
5008
4864
  * @export
@@ -5279,24 +5135,12 @@ export interface StaffUserProfileResponse {
5279
5135
  * @memberof StaffUserProfileResponse
5280
5136
  */
5281
5137
  'isAccountVerified': boolean;
5282
- /**
5283
- *
5284
- * @type {boolean}
5285
- * @memberof StaffUserProfileResponse
5286
- */
5287
- 'isCreditCardRegistered'?: boolean;
5288
5138
  /**
5289
5139
  *
5290
5140
  * @type {Array<ILevelBySports>}
5291
5141
  * @memberof StaffUserProfileResponse
5292
5142
  */
5293
5143
  'levelBySports'?: Array<ILevelBySports>;
5294
- /**
5295
- *
5296
- * @type {string}
5297
- * @memberof StaffUserProfileResponse
5298
- */
5299
- 'stripeCustomerId'?: string;
5300
5144
  /**
5301
5145
  *
5302
5146
  * @type {string}
@@ -5369,30 +5213,6 @@ export interface StaffUserProfileResponse {
5369
5213
  * @memberof StaffUserProfileResponse
5370
5214
  */
5371
5215
  'isLevelCertified'?: boolean;
5372
- /**
5373
- *
5374
- * @type {Array<string>}
5375
- * @memberof StaffUserProfileResponse
5376
- */
5377
- 'paymentMethods'?: Array<string>;
5378
- /**
5379
- *
5380
- * @type {string}
5381
- * @memberof StaffUserProfileResponse
5382
- */
5383
- 'defaultPaymentMethodId'?: string;
5384
- /**
5385
- *
5386
- * @type {boolean}
5387
- * @memberof StaffUserProfileResponse
5388
- */
5389
- 'paymentMethodSetupCompleted': boolean;
5390
- /**
5391
- *
5392
- * @type {string}
5393
- * @memberof StaffUserProfileResponse
5394
- */
5395
- 'setupIntentId'?: string;
5396
5216
  /**
5397
5217
  *
5398
5218
  * @type {Array<string>}
@@ -5423,6 +5243,12 @@ export interface StaffUserProfileResponse {
5423
5243
  * @memberof StaffUserProfileResponse
5424
5244
  */
5425
5245
  'sports'?: { [key: string]: any; };
5246
+ /**
5247
+ *
5248
+ * @type {string}
5249
+ * @memberof StaffUserProfileResponse
5250
+ */
5251
+ 'stripeCustomerId'?: string;
5426
5252
  /**
5427
5253
  *
5428
5254
  * @type {boolean}
@@ -6716,6 +6542,12 @@ export interface SubscribeRequestBody {
6716
6542
  * @memberof SubscribeRequestBody
6717
6543
  */
6718
6544
  'priceId': string;
6545
+ /**
6546
+ *
6547
+ * @type {boolean}
6548
+ * @memberof SubscribeRequestBody
6549
+ */
6550
+ 'useDefaultPaymentMethod'?: boolean;
6719
6551
  }
6720
6552
  /**
6721
6553
  *
@@ -7676,24 +7508,12 @@ export interface UserProfileResponse {
7676
7508
  * @memberof UserProfileResponse
7677
7509
  */
7678
7510
  'isAccountVerified': boolean;
7679
- /**
7680
- *
7681
- * @type {boolean}
7682
- * @memberof UserProfileResponse
7683
- */
7684
- 'isCreditCardRegistered'?: boolean;
7685
7511
  /**
7686
7512
  *
7687
7513
  * @type {Array<ILevelBySports>}
7688
7514
  * @memberof UserProfileResponse
7689
7515
  */
7690
7516
  'levelBySports'?: Array<ILevelBySports>;
7691
- /**
7692
- *
7693
- * @type {string}
7694
- * @memberof UserProfileResponse
7695
- */
7696
- 'stripeCustomerId'?: string;
7697
7517
  /**
7698
7518
  *
7699
7519
  * @type {string}
@@ -7766,30 +7586,6 @@ export interface UserProfileResponse {
7766
7586
  * @memberof UserProfileResponse
7767
7587
  */
7768
7588
  'isLevelCertified'?: boolean;
7769
- /**
7770
- *
7771
- * @type {Array<string>}
7772
- * @memberof UserProfileResponse
7773
- */
7774
- 'paymentMethods'?: Array<string>;
7775
- /**
7776
- *
7777
- * @type {string}
7778
- * @memberof UserProfileResponse
7779
- */
7780
- 'defaultPaymentMethodId'?: string;
7781
- /**
7782
- *
7783
- * @type {boolean}
7784
- * @memberof UserProfileResponse
7785
- */
7786
- 'paymentMethodSetupCompleted': boolean;
7787
- /**
7788
- *
7789
- * @type {string}
7790
- * @memberof UserProfileResponse
7791
- */
7792
- 'setupIntentId'?: string;
7793
7589
  /**
7794
7590
  *
7795
7591
  * @type {Array<string>}
@@ -7820,6 +7616,12 @@ export interface UserProfileResponse {
7820
7616
  * @memberof UserProfileResponse
7821
7617
  */
7822
7618
  'sports'?: { [key: string]: any; };
7619
+ /**
7620
+ *
7621
+ * @type {string}
7622
+ * @memberof UserProfileResponse
7623
+ */
7624
+ 'stripeCustomerId'?: string;
7823
7625
  /**
7824
7626
  *
7825
7627
  * @type {number}
@@ -7856,6 +7658,12 @@ export interface UserProfileResponse {
7856
7658
  * @memberof UserProfileResponse
7857
7659
  */
7858
7660
  'stripeLinks'?: { [key: string]: any; };
7661
+ /**
7662
+ *
7663
+ * @type {Array<SportResponse>}
7664
+ * @memberof UserProfileResponse
7665
+ */
7666
+ 'verifiedSports'?: Array<SportResponse>;
7859
7667
  }
7860
7668
 
7861
7669
 
@@ -15629,6 +15437,103 @@ export class SportsManagerApi extends BaseAPI {
15629
15437
 
15630
15438
 
15631
15439
 
15440
+ /**
15441
+ * SportsPublicApi - axios parameter creator
15442
+ * @export
15443
+ */
15444
+ export const SportsPublicApiAxiosParamCreator = function (configuration?: Configuration) {
15445
+ return {
15446
+ /**
15447
+ * Récupère tous les sports vérifiés, accessibles publiquement
15448
+ * @param {*} [options] Override http request option.
15449
+ * @throws {RequiredError}
15450
+ */
15451
+ getVerifiedSports: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15452
+ const localVarPath = `/api/sports/verified`;
15453
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15454
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15455
+ let baseOptions;
15456
+ if (configuration) {
15457
+ baseOptions = configuration.baseOptions;
15458
+ }
15459
+
15460
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15461
+ const localVarHeaderParameter = {} as any;
15462
+ const localVarQueryParameter = {} as any;
15463
+
15464
+
15465
+
15466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15469
+
15470
+ return {
15471
+ url: toPathString(localVarUrlObj),
15472
+ options: localVarRequestOptions,
15473
+ };
15474
+ },
15475
+ }
15476
+ };
15477
+
15478
+ /**
15479
+ * SportsPublicApi - functional programming interface
15480
+ * @export
15481
+ */
15482
+ export const SportsPublicApiFp = function(configuration?: Configuration) {
15483
+ const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration)
15484
+ return {
15485
+ /**
15486
+ * Récupère tous les sports vérifiés, accessibles publiquement
15487
+ * @param {*} [options] Override http request option.
15488
+ * @throws {RequiredError}
15489
+ */
15490
+ async getVerifiedSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
15491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifiedSports(options);
15492
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15493
+ const localVarOperationServerBasePath = operationServerMap['SportsPublicApi.getVerifiedSports']?.[localVarOperationServerIndex]?.url;
15494
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15495
+ },
15496
+ }
15497
+ };
15498
+
15499
+ /**
15500
+ * SportsPublicApi - factory interface
15501
+ * @export
15502
+ */
15503
+ export const SportsPublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15504
+ const localVarFp = SportsPublicApiFp(configuration)
15505
+ return {
15506
+ /**
15507
+ * Récupère tous les sports vérifiés, accessibles publiquement
15508
+ * @param {*} [options] Override http request option.
15509
+ * @throws {RequiredError}
15510
+ */
15511
+ getVerifiedSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
15512
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
15513
+ },
15514
+ };
15515
+ };
15516
+
15517
+ /**
15518
+ * SportsPublicApi - object-oriented interface
15519
+ * @export
15520
+ * @class SportsPublicApi
15521
+ * @extends {BaseAPI}
15522
+ */
15523
+ export class SportsPublicApi extends BaseAPI {
15524
+ /**
15525
+ * Récupère tous les sports vérifiés, accessibles publiquement
15526
+ * @param {*} [options] Override http request option.
15527
+ * @throws {RequiredError}
15528
+ * @memberof SportsPublicApi
15529
+ */
15530
+ public getVerifiedSports(options?: RawAxiosRequestConfig) {
15531
+ return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
15532
+ }
15533
+ }
15534
+
15535
+
15536
+
15632
15537
  /**
15633
15538
  * SportsStaffApi - axios parameter creator
15634
15539
  * @export
@@ -16740,45 +16645,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
16740
16645
  options: localVarRequestOptions,
16741
16646
  };
16742
16647
  },
16743
- /**
16744
- *
16745
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
16746
- * @param {*} [options] Override http request option.
16747
- * @throws {RequiredError}
16748
- */
16749
- addPaymentMethodSetup: async (addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16750
- // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
16751
- assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody)
16752
- const localVarPath = `/api/users/addPaymentMethodSetup`;
16753
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16754
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16755
- let baseOptions;
16756
- if (configuration) {
16757
- baseOptions = configuration.baseOptions;
16758
- }
16759
-
16760
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16761
- const localVarHeaderParameter = {} as any;
16762
- const localVarQueryParameter = {} as any;
16763
-
16764
- // authentication bearerAuth required
16765
- // http bearer authentication required
16766
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
16767
-
16768
-
16769
-
16770
- localVarHeaderParameter['Content-Type'] = 'application/json';
16771
-
16772
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16773
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16774
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16775
- localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration)
16776
-
16777
- return {
16778
- url: toPathString(localVarUrlObj),
16779
- options: localVarRequestOptions,
16780
- };
16781
- },
16782
16648
  /**
16783
16649
  *
16784
16650
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -16818,45 +16684,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
16818
16684
  options: localVarRequestOptions,
16819
16685
  };
16820
16686
  },
16821
- /**
16822
- *
16823
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
16824
- * @param {*} [options] Override http request option.
16825
- * @throws {RequiredError}
16826
- */
16827
- confirmPaymentMethodSetup: async (confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16828
- // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
16829
- assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody)
16830
- const localVarPath = `/api/users/confirmPaymentMethodSetup`;
16831
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16832
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16833
- let baseOptions;
16834
- if (configuration) {
16835
- baseOptions = configuration.baseOptions;
16836
- }
16837
-
16838
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16839
- const localVarHeaderParameter = {} as any;
16840
- const localVarQueryParameter = {} as any;
16841
-
16842
- // authentication bearerAuth required
16843
- // http bearer authentication required
16844
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
16845
-
16846
-
16847
-
16848
- localVarHeaderParameter['Content-Type'] = 'application/json';
16849
-
16850
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16851
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16852
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16853
- localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration)
16854
-
16855
- return {
16856
- url: toPathString(localVarUrlObj),
16857
- options: localVarRequestOptions,
16858
- };
16859
- },
16860
16687
  /**
16861
16688
  *
16862
16689
  * @param {*} [options] Override http request option.
@@ -17793,45 +17620,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17793
17620
  options: localVarRequestOptions,
17794
17621
  };
17795
17622
  },
17796
- /**
17797
- *
17798
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
17799
- * @param {*} [options] Override http request option.
17800
- * @throws {RequiredError}
17801
- */
17802
- setupOffSessionPaymentMethod: async (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17803
- // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
17804
- assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody)
17805
- const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
17806
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17807
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17808
- let baseOptions;
17809
- if (configuration) {
17810
- baseOptions = configuration.baseOptions;
17811
- }
17812
-
17813
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17814
- const localVarHeaderParameter = {} as any;
17815
- const localVarQueryParameter = {} as any;
17816
-
17817
- // authentication bearerAuth required
17818
- // http bearer authentication required
17819
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
17820
-
17821
-
17822
-
17823
- localVarHeaderParameter['Content-Type'] = 'application/json';
17824
-
17825
- setSearchParams(localVarUrlObj, localVarQueryParameter);
17826
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17827
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17828
- localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration)
17829
-
17830
- return {
17831
- url: toPathString(localVarUrlObj),
17832
- options: localVarRequestOptions,
17833
- };
17834
- },
17835
17623
  /**
17836
17624
  *
17837
17625
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -18139,18 +17927,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
18139
17927
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
18140
17928
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18141
17929
  },
18142
- /**
18143
- *
18144
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
18145
- * @param {*} [options] Override http request option.
18146
- * @throws {RequiredError}
18147
- */
18148
- async addPaymentMethodSetup(addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodSetupResponse>> {
18149
- const localVarAxiosArgs = await localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
18150
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18151
- const localVarOperationServerBasePath = operationServerMap['UsersApi.addPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
18152
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18153
- },
18154
17930
  /**
18155
17931
  *
18156
17932
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -18163,18 +17939,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
18163
17939
  const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
18164
17940
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18165
17941
  },
18166
- /**
18167
- *
18168
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
18169
- * @param {*} [options] Override http request option.
18170
- * @throws {RequiredError}
18171
- */
18172
- async confirmPaymentMethodSetup(confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentMethodResponse>> {
18173
- const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
18174
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18175
- const localVarOperationServerBasePath = operationServerMap['UsersApi.confirmPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
18176
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18177
- },
18178
17942
  /**
18179
17943
  *
18180
17944
  * @param {*} [options] Override http request option.
@@ -18473,18 +18237,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
18473
18237
  const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
18474
18238
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18475
18239
  },
18476
- /**
18477
- *
18478
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
18479
- * @param {*} [options] Override http request option.
18480
- * @throws {RequiredError}
18481
- */
18482
- async setupOffSessionPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>> {
18483
- const localVarAxiosArgs = await localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
18484
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18485
- const localVarOperationServerBasePath = operationServerMap['UsersApi.setupOffSessionPaymentMethod']?.[localVarOperationServerIndex]?.url;
18486
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18487
- },
18488
18240
  /**
18489
18241
  *
18490
18242
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -18606,15 +18358,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18606
18358
  addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
18607
18359
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
18608
18360
  },
18609
- /**
18610
- *
18611
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
18612
- * @param {*} [options] Override http request option.
18613
- * @throws {RequiredError}
18614
- */
18615
- addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentMethodSetupResponse> {
18616
- return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
18617
- },
18618
18361
  /**
18619
18362
  *
18620
18363
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -18624,15 +18367,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18624
18367
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse> {
18625
18368
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
18626
18369
  },
18627
- /**
18628
- *
18629
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
18630
- * @param {*} [options] Override http request option.
18631
- * @throws {RequiredError}
18632
- */
18633
- confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfirmPaymentMethodResponse> {
18634
- return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
18635
- },
18636
18370
  /**
18637
18371
  *
18638
18372
  * @param {*} [options] Override http request option.
@@ -18841,15 +18575,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18841
18575
  resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
18842
18576
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
18843
18577
  },
18844
- /**
18845
- *
18846
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
18847
- * @param {*} [options] Override http request option.
18848
- * @throws {RequiredError}
18849
- */
18850
- setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse> {
18851
- return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
18852
- },
18853
18578
  /**
18854
18579
  *
18855
18580
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -18958,20 +18683,6 @@ export interface UsersApiAddOrganizationRequest {
18958
18683
  readonly addOrganizationRequest: AddOrganizationRequest
18959
18684
  }
18960
18685
 
18961
- /**
18962
- * Request parameters for addPaymentMethodSetup operation in UsersApi.
18963
- * @export
18964
- * @interface UsersApiAddPaymentMethodSetupRequest
18965
- */
18966
- export interface UsersApiAddPaymentMethodSetupRequest {
18967
- /**
18968
- *
18969
- * @type {AddPaymentMethodRequestBody}
18970
- * @memberof UsersApiAddPaymentMethodSetup
18971
- */
18972
- readonly addPaymentMethodRequestBody: AddPaymentMethodRequestBody
18973
- }
18974
-
18975
18686
  /**
18976
18687
  * Request parameters for changePassword operation in UsersApi.
18977
18688
  * @export
@@ -18986,20 +18697,6 @@ export interface UsersApiChangePasswordRequest {
18986
18697
  readonly changePasswordRequestBody: ChangePasswordRequestBody
18987
18698
  }
18988
18699
 
18989
- /**
18990
- * Request parameters for confirmPaymentMethodSetup operation in UsersApi.
18991
- * @export
18992
- * @interface UsersApiConfirmPaymentMethodSetupRequest
18993
- */
18994
- export interface UsersApiConfirmPaymentMethodSetupRequest {
18995
- /**
18996
- *
18997
- * @type {ConfirmPaymentMethodRequestBody}
18998
- * @memberof UsersApiConfirmPaymentMethodSetup
18999
- */
19000
- readonly confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody
19001
- }
19002
-
19003
18700
  /**
19004
18701
  * Request parameters for getBookingDetail operation in UsersApi.
19005
18702
  * @export
@@ -19350,20 +19047,6 @@ export interface UsersApiResetPasswordRequest {
19350
19047
  readonly resetPasswordRequest: ResetPasswordRequest
19351
19048
  }
19352
19049
 
19353
- /**
19354
- * Request parameters for setupOffSessionPaymentMethod operation in UsersApi.
19355
- * @export
19356
- * @interface UsersApiSetupOffSessionPaymentMethodRequest
19357
- */
19358
- export interface UsersApiSetupOffSessionPaymentMethodRequest {
19359
- /**
19360
- *
19361
- * @type {SetupPaymentMethodRequestBody}
19362
- * @memberof UsersApiSetupOffSessionPaymentMethod
19363
- */
19364
- readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody
19365
- }
19366
-
19367
19050
  /**
19368
19051
  * Request parameters for signInOrSignUpWithGoogle operation in UsersApi.
19369
19052
  * @export
@@ -19502,17 +19185,6 @@ export class UsersApi extends BaseAPI {
19502
19185
  return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
19503
19186
  }
19504
19187
 
19505
- /**
19506
- *
19507
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
19508
- * @param {*} [options] Override http request option.
19509
- * @throws {RequiredError}
19510
- * @memberof UsersApi
19511
- */
19512
- public addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
19513
- return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
19514
- }
19515
-
19516
19188
  /**
19517
19189
  *
19518
19190
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -19524,17 +19196,6 @@ export class UsersApi extends BaseAPI {
19524
19196
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
19525
19197
  }
19526
19198
 
19527
- /**
19528
- *
19529
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
19530
- * @param {*} [options] Override http request option.
19531
- * @throws {RequiredError}
19532
- * @memberof UsersApi
19533
- */
19534
- public confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
19535
- return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
19536
- }
19537
-
19538
19199
  /**
19539
19200
  *
19540
19201
  * @param {*} [options] Override http request option.
@@ -19791,17 +19452,6 @@ export class UsersApi extends BaseAPI {
19791
19452
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
19792
19453
  }
19793
19454
 
19794
- /**
19795
- *
19796
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
19797
- * @param {*} [options] Override http request option.
19798
- * @throws {RequiredError}
19799
- * @memberof UsersApi
19800
- */
19801
- public setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig) {
19802
- return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
19803
- }
19804
-
19805
19455
  /**
19806
19456
  *
19807
19457
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.