@tennac-booking/sdk 1.0.106 → 1.0.108

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 (45) hide show
  1. package/.openapi-generator/FILES +284 -291
  2. package/README.md +7 -20
  3. package/api.ts +161 -908
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +128 -593
  8. package/dist/api.js +75 -537
  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 +128 -593
  16. package/dist/esm/api.js +67 -525
  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/ClientApi.md +59 -4
  28. package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
  29. package/docs/ClientFullOnboardingResponseClub.md +24 -0
  30. package/docs/ClientRegister201Response.md +26 -0
  31. package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
  32. package/docs/ClubEvent.md +8 -2
  33. package/docs/ClubPageResponse.md +8 -2
  34. package/docs/PaymentMethod.md +4 -0
  35. package/index.ts +1 -1
  36. package/package.json +1 -1
  37. package/docs/ActiveSubscriptionResponse.md +0 -22
  38. package/docs/ClientAccountOnboardingRequest.md +0 -29
  39. package/docs/ClientAccountResponse.md +0 -44
  40. package/docs/ClientAccountsApi.md +0 -408
  41. package/docs/ClientMeResponse.md +0 -28
  42. package/docs/ClientOnboardingResponse.md +0 -27
  43. package/docs/ClientRegisterResponse.md +0 -22
  44. package/docs/ClientSubscriptionResponse.md +0 -34
  45. package/docs/GetSubscriptionsHistory200Response.md +0 -22
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.104
7
+ * The version of the OpenAPI document: 1.0.108
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,25 +23,6 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
- /**
27
- *
28
- * @export
29
- * @interface ActiveSubscriptionResponse
30
- */
31
- export interface ActiveSubscriptionResponse {
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof ActiveSubscriptionResponse
36
- */
37
- 'clientAccountId': string;
38
- /**
39
- *
40
- * @type {ClientSubscriptionResponse}
41
- * @memberof ActiveSubscriptionResponse
42
- */
43
- 'subscription': ClientSubscriptionResponse | null;
44
- }
45
26
  /**
46
27
  *
47
28
  * @export
@@ -1358,233 +1339,73 @@ export interface CheckedInPlayer {
1358
1339
  }
1359
1340
 
1360
1341
 
1361
- /**
1362
- * Types pour les requêtes/réponses
1363
- * @export
1364
- * @interface ClientAccountOnboardingRequest
1365
- */
1366
- export interface ClientAccountOnboardingRequest {
1367
- /**
1368
- *
1369
- * @type {string}
1370
- * @memberof ClientAccountOnboardingRequest
1371
- */
1372
- 'businessName': string;
1373
- /**
1374
- *
1375
- * @type {string}
1376
- * @memberof ClientAccountOnboardingRequest
1377
- */
1378
- 'businessType'?: ClientAccountOnboardingRequestBusinessTypeEnum;
1379
- /**
1380
- *
1381
- * @type {string}
1382
- * @memberof ClientAccountOnboardingRequest
1383
- */
1384
- 'subscriptionType'?: ClientAccountOnboardingRequestSubscriptionTypeEnum;
1385
- /**
1386
- *
1387
- * @type {boolean}
1388
- * @memberof ClientAccountOnboardingRequest
1389
- */
1390
- 'isPublicOrganization'?: boolean;
1391
- /**
1392
- *
1393
- * @type {string}
1394
- * @memberof ClientAccountOnboardingRequest
1395
- */
1396
- 'priceId': string;
1397
- }
1398
-
1399
- export const ClientAccountOnboardingRequestBusinessTypeEnum = {
1400
- Individual: 'individual',
1401
- Company: 'company'
1402
- } as const;
1403
-
1404
- export type ClientAccountOnboardingRequestBusinessTypeEnum = typeof ClientAccountOnboardingRequestBusinessTypeEnum[keyof typeof ClientAccountOnboardingRequestBusinessTypeEnum];
1405
- export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
1406
- Basic: 'basic',
1407
- PlatformWithConnect: 'platform_with_connect'
1408
- } as const;
1409
-
1410
- export type ClientAccountOnboardingRequestSubscriptionTypeEnum = typeof ClientAccountOnboardingRequestSubscriptionTypeEnum[keyof typeof ClientAccountOnboardingRequestSubscriptionTypeEnum];
1411
-
1412
1342
  /**
1413
1343
  *
1414
1344
  * @export
1415
- * @interface ClientAccountOnboardingResponse
1345
+ * @interface ClientFullOnboardingResponse
1416
1346
  */
1417
- export interface ClientAccountOnboardingResponse {
1347
+ export interface ClientFullOnboardingResponse {
1418
1348
  /**
1419
1349
  *
1420
1350
  * @type {string}
1421
- * @memberof ClientAccountOnboardingResponse
1351
+ * @memberof ClientFullOnboardingResponse
1422
1352
  */
1423
1353
  'clientAccountId': string;
1424
1354
  /**
1425
1355
  *
1426
1356
  * @type {string}
1427
- * @memberof ClientAccountOnboardingResponse
1357
+ * @memberof ClientFullOnboardingResponse
1428
1358
  */
1429
1359
  'stripeCustomerId': string;
1430
1360
  /**
1431
1361
  *
1432
1362
  * @type {string}
1433
- * @memberof ClientAccountOnboardingResponse
1363
+ * @memberof ClientFullOnboardingResponse
1434
1364
  */
1435
1365
  'stripeConnectedAccountId'?: string;
1436
1366
  /**
1437
1367
  *
1438
1368
  * @type {string}
1439
- * @memberof ClientAccountOnboardingResponse
1369
+ * @memberof ClientFullOnboardingResponse
1440
1370
  */
1441
- 'connectedAccountOnboardingLink'?: string;
1371
+ 'clientOnboardingLink'?: string;
1442
1372
  /**
1443
1373
  *
1444
- * @type {string}
1445
- * @memberof ClientAccountOnboardingResponse
1374
+ * @type {ClientFullOnboardingResponseClub}
1375
+ * @memberof ClientFullOnboardingResponse
1446
1376
  */
1447
- 'status': string;
1377
+ 'club': ClientFullOnboardingResponseClub;
1448
1378
  /**
1449
1379
  *
1450
1380
  * @type {string}
1451
- * @memberof ClientAccountOnboardingResponse
1381
+ * @memberof ClientFullOnboardingResponse
1452
1382
  */
1453
1383
  'message': string;
1454
- /**
1455
- *
1456
- * @type {boolean}
1457
- * @memberof ClientAccountOnboardingResponse
1458
- */
1459
- 'isPublicOrganization': boolean;
1460
- /**
1461
- *
1462
- * @type {boolean}
1463
- * @memberof ClientAccountOnboardingResponse
1464
- */
1465
- 'manualInvoiceRequired'?: boolean;
1466
- }
1467
- /**
1468
- *
1469
- * @export
1470
- * @interface ClientAccountResponse
1471
- */
1472
- export interface ClientAccountResponse {
1473
- /**
1474
- *
1475
- * @type {string}
1476
- * @memberof ClientAccountResponse
1477
- */
1478
- 'id': string;
1479
- /**
1480
- *
1481
- * @type {string}
1482
- * @memberof ClientAccountResponse
1483
- */
1484
- 'email': string;
1485
- /**
1486
- *
1487
- * @type {string}
1488
- * @memberof ClientAccountResponse
1489
- */
1490
- 'businessName': string;
1491
- /**
1492
- *
1493
- * @type {string}
1494
- * @memberof ClientAccountResponse
1495
- */
1496
- 'businessType': string;
1497
- /**
1498
- *
1499
- * @type {string}
1500
- * @memberof ClientAccountResponse
1501
- */
1502
- 'subscriptionType': string;
1503
- /**
1504
- *
1505
- * @type {string}
1506
- * @memberof ClientAccountResponse
1507
- */
1508
- 'status': string;
1509
- /**
1510
- *
1511
- * @type {boolean}
1512
- * @memberof ClientAccountResponse
1513
- */
1514
- 'platformPaymentMethodSetup': boolean;
1515
- /**
1516
- *
1517
- * @type {string}
1518
- * @memberof ClientAccountResponse
1519
- */
1520
- 'stripeConnectedAccountId'?: string;
1521
- /**
1522
- *
1523
- * @type {boolean}
1524
- * @memberof ClientAccountResponse
1525
- */
1526
- 'connectedAccountOnboardingRequired'?: boolean;
1527
- /**
1528
- *
1529
- * @type {boolean}
1530
- * @memberof ClientAccountResponse
1531
- */
1532
- 'isPublicOrganization': boolean;
1533
- /**
1534
- *
1535
- * @type {boolean}
1536
- * @memberof ClientAccountResponse
1537
- */
1538
- 'manualInvoiceRequired'?: boolean;
1539
- /**
1540
- *
1541
- * @type {string}
1542
- * @memberof ClientAccountResponse
1543
- */
1544
- 'createdAt': string;
1545
- /**
1546
- *
1547
- * @type {string}
1548
- * @memberof ClientAccountResponse
1549
- */
1550
- 'updatedAt': string;
1551
1384
  }
1552
1385
  /**
1553
1386
  *
1554
1387
  * @export
1555
- * @interface ClientMeResponse
1388
+ * @interface ClientFullOnboardingResponseClub
1556
1389
  */
1557
- export interface ClientMeResponse {
1558
- /**
1559
- *
1560
- * @type {string}
1561
- * @memberof ClientMeResponse
1562
- */
1563
- 'id': string;
1390
+ export interface ClientFullOnboardingResponseClub {
1564
1391
  /**
1565
1392
  *
1566
1393
  * @type {string}
1567
- * @memberof ClientMeResponse
1394
+ * @memberof ClientFullOnboardingResponseClub
1568
1395
  */
1569
- 'email': string;
1396
+ 'clubOnboardingLink'?: string;
1570
1397
  /**
1571
1398
  *
1572
1399
  * @type {string}
1573
- * @memberof ClientMeResponse
1400
+ * @memberof ClientFullOnboardingResponseClub
1574
1401
  */
1575
- 'firstName': string;
1402
+ 'stripeAccountId': string;
1576
1403
  /**
1577
1404
  *
1578
1405
  * @type {string}
1579
- * @memberof ClientMeResponse
1580
- */
1581
- 'lastName': string;
1582
- /**
1583
- *
1584
- * @type {boolean}
1585
- * @memberof ClientMeResponse
1406
+ * @memberof ClientFullOnboardingResponseClub
1586
1407
  */
1587
- 'isClient': boolean;
1408
+ 'clubId': string;
1588
1409
  }
1589
1410
  /**
1590
1411
  * Requête pour l\'onboarding d\'un club
@@ -1635,141 +1456,67 @@ export interface ClientOnboardingRequestBody {
1635
1456
  */
1636
1457
  'country'?: string;
1637
1458
  }
1638
- /**
1639
- * Réponse pour l\'onboarding d\'un club
1640
- * @export
1641
- * @interface ClientOnboardingResponse
1642
- */
1643
- export interface ClientOnboardingResponse {
1644
- /**
1645
- * ID unique du club créé
1646
- * @type {string}
1647
- * @memberof ClientOnboardingResponse
1648
- */
1649
- 'clubId': string;
1650
- /**
1651
- * ID du compte Stripe Connect du club
1652
- * @type {string}
1653
- * @memberof ClientOnboardingResponse
1654
- */
1655
- 'stripeAccountId': string;
1656
- /**
1657
- * Lien d\'onboarding Stripe pour configurer le compte
1658
- * @type {string}
1659
- * @memberof ClientOnboardingResponse
1660
- */
1661
- 'onboardingLink': string;
1662
- /**
1663
- * Message de confirmation
1664
- * @type {string}
1665
- * @memberof ClientOnboardingResponse
1666
- */
1667
- 'message': string;
1668
- }
1669
1459
  /**
1670
1460
  *
1671
1461
  * @export
1672
- * @interface ClientRegisterRequestBody
1462
+ * @interface ClientRegister201Response
1673
1463
  */
1674
- export interface ClientRegisterRequestBody {
1675
- /**
1676
- *
1677
- * @type {string}
1678
- * @memberof ClientRegisterRequestBody
1679
- */
1680
- 'email': string;
1681
- /**
1682
- *
1683
- * @type {string}
1684
- * @memberof ClientRegisterRequestBody
1685
- */
1686
- 'password': string;
1464
+ export interface ClientRegister201Response {
1687
1465
  /**
1688
1466
  *
1689
1467
  * @type {string}
1690
- * @memberof ClientRegisterRequestBody
1468
+ * @memberof ClientRegister201Response
1691
1469
  */
1692
- 'firstName': string;
1470
+ 'message': string;
1693
1471
  /**
1694
1472
  *
1695
1473
  * @type {string}
1696
- * @memberof ClientRegisterRequestBody
1474
+ * @memberof ClientRegister201Response
1697
1475
  */
1698
- 'lastName': string;
1699
- }
1700
- /**
1701
- *
1702
- * @export
1703
- * @interface ClientRegisterResponse
1704
- */
1705
- export interface ClientRegisterResponse {
1476
+ 'stripeCustomerId': string;
1706
1477
  /**
1707
1478
  *
1708
1479
  * @type {string}
1709
- * @memberof ClientRegisterResponse
1480
+ * @memberof ClientRegister201Response
1710
1481
  */
1711
- 'id': string;
1482
+ 'email': string;
1712
1483
  /**
1713
1484
  *
1714
1485
  * @type {string}
1715
- * @memberof ClientRegisterResponse
1486
+ * @memberof ClientRegister201Response
1716
1487
  */
1717
- 'token': string;
1488
+ 'userId': string;
1718
1489
  }
1719
1490
  /**
1720
1491
  *
1721
1492
  * @export
1722
- * @interface ClientSubscriptionResponse
1493
+ * @interface ClientRegisterRequest
1723
1494
  */
1724
- export interface ClientSubscriptionResponse {
1725
- /**
1726
- *
1727
- * @type {string}
1728
- * @memberof ClientSubscriptionResponse
1729
- */
1730
- 'id': string;
1731
- /**
1732
- *
1733
- * @type {string}
1734
- * @memberof ClientSubscriptionResponse
1735
- */
1736
- 'subscriptionType': string;
1737
- /**
1738
- *
1739
- * @type {string}
1740
- * @memberof ClientSubscriptionResponse
1741
- */
1742
- 'status': string;
1495
+ export interface ClientRegisterRequest {
1743
1496
  /**
1744
1497
  *
1745
1498
  * @type {string}
1746
- * @memberof ClientSubscriptionResponse
1499
+ * @memberof ClientRegisterRequest
1747
1500
  */
1748
- 'startDate': string;
1501
+ 'password': string;
1749
1502
  /**
1750
1503
  *
1751
1504
  * @type {string}
1752
- * @memberof ClientSubscriptionResponse
1753
- */
1754
- 'endDate'?: string;
1755
- /**
1756
- *
1757
- * @type {number}
1758
- * @memberof ClientSubscriptionResponse
1505
+ * @memberof ClientRegisterRequest
1759
1506
  */
1760
- 'priceAmountInCents': number;
1507
+ 'email': string;
1761
1508
  /**
1762
1509
  *
1763
1510
  * @type {string}
1764
- * @memberof ClientSubscriptionResponse
1511
+ * @memberof ClientRegisterRequest
1765
1512
  */
1766
- 'currency': string;
1513
+ 'lastName': string;
1767
1514
  /**
1768
1515
  *
1769
1516
  * @type {string}
1770
- * @memberof ClientSubscriptionResponse
1517
+ * @memberof ClientRegisterRequest
1771
1518
  */
1772
- 'billingCycle': string;
1519
+ 'firstName': string;
1773
1520
  }
1774
1521
  /**
1775
1522
  *
@@ -1796,6 +1543,12 @@ export interface ClubDaySchedule {
1796
1543
  * @interface ClubEvent
1797
1544
  */
1798
1545
  export interface ClubEvent {
1546
+ /**
1547
+ *
1548
+ * @type {string}
1549
+ * @memberof ClubEvent
1550
+ */
1551
+ 'imageSrc'?: string;
1799
1552
  /**
1800
1553
  *
1801
1554
  * @type {string}
@@ -1813,13 +1566,25 @@ export interface ClubEvent {
1813
1566
  * @type {string}
1814
1567
  * @memberof ClubEvent
1815
1568
  */
1816
- 'date': string;
1569
+ 'endDate': string;
1570
+ /**
1571
+ *
1572
+ * @type {string}
1573
+ * @memberof ClubEvent
1574
+ */
1575
+ 'startDate': string;
1817
1576
  /**
1818
1577
  *
1819
1578
  * @type {string}
1820
1579
  * @memberof ClubEvent
1821
1580
  */
1822
1581
  'name': string;
1582
+ /**
1583
+ *
1584
+ * @type {string}
1585
+ * @memberof ClubEvent
1586
+ */
1587
+ 'id': string;
1823
1588
  }
1824
1589
  /**
1825
1590
  *
@@ -2065,7 +1830,25 @@ export interface ClubPageResponse {
2065
1830
  * @type {Array<ClubEvent>}
2066
1831
  * @memberof ClubPageResponse
2067
1832
  */
2068
- 'comingEvent': Array<ClubEvent>;
1833
+ 'comingEvents': Array<ClubEvent>;
1834
+ /**
1835
+ *
1836
+ * @type {Array<ClubEvent>}
1837
+ * @memberof ClubPageResponse
1838
+ */
1839
+ 'comingClosures': Array<ClubEvent>;
1840
+ /**
1841
+ *
1842
+ * @type {Array<ClubEvent>}
1843
+ * @memberof ClubPageResponse
1844
+ */
1845
+ 'lastNews': Array<ClubEvent>;
1846
+ /**
1847
+ *
1848
+ * @type {ClubHoursSettingsResponse}
1849
+ * @memberof ClubPageResponse
1850
+ */
1851
+ 'openingHours'?: ClubHoursSettingsResponse;
2069
1852
  /**
2070
1853
  *
2071
1854
  * @type {ClubResponseCreatedAt}
@@ -4454,25 +4237,6 @@ export interface GetSlotsByClubById200Response {
4454
4237
  */
4455
4238
  'slots': Array<any>;
4456
4239
  }
4457
- /**
4458
- *
4459
- * @export
4460
- * @interface GetSubscriptionsHistory200Response
4461
- */
4462
- export interface GetSubscriptionsHistory200Response {
4463
- /**
4464
- *
4465
- * @type {Array<ClientSubscriptionResponse>}
4466
- * @memberof GetSubscriptionsHistory200Response
4467
- */
4468
- 'subscriptions': Array<ClientSubscriptionResponse>;
4469
- /**
4470
- *
4471
- * @type {string}
4472
- * @memberof GetSubscriptionsHistory200Response
4473
- */
4474
- 'clientAccountId': string;
4475
- }
4476
4240
  /**
4477
4241
  *
4478
4242
  * @export
@@ -5561,6 +5325,8 @@ export interface PaymentByPlayerInfo {
5561
5325
  export const PaymentMethod = {
5562
5326
  Online: 'online',
5563
5327
  Onsite: 'onsite',
5328
+ OnsiteCard: 'onsite_card',
5329
+ OnsiteCash: 'onsite_cash',
5564
5330
  Free: 'free'
5565
5331
  } as const;
5566
5332
 
@@ -11231,12 +10997,15 @@ export class BookingsUserApi extends BaseAPI {
11231
10997
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
11232
10998
  return {
11233
10999
  /**
11234
- * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11000
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11001
+ * @param {ClientRegisterRequest} clientRegisterRequest
11235
11002
  * @param {*} [options] Override http request option.
11236
11003
  * @throws {RequiredError}
11237
11004
  */
11238
- getManagedClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11239
- const localVarPath = `/clients/managed-clubs`;
11005
+ clientRegister: async (clientRegisterRequest: ClientRegisterRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11006
+ // verify required parameter 'clientRegisterRequest' is not null or undefined
11007
+ assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest)
11008
+ const localVarPath = `/clients/register`;
11240
11009
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11241
11010
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11242
11011
  let baseOptions;
@@ -11244,350 +11013,31 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11244
11013
  baseOptions = configuration.baseOptions;
11245
11014
  }
11246
11015
 
11247
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11016
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11248
11017
  const localVarHeaderParameter = {} as any;
11249
11018
  const localVarQueryParameter = {} as any;
11250
11019
 
11251
- // authentication bearerAuth required
11252
- // http bearer authentication required
11253
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11254
-
11255
11020
 
11256
11021
 
11022
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11023
+
11257
11024
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11258
11025
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11259
11026
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11027
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
11260
11028
 
11261
11029
  return {
11262
11030
  url: toPathString(localVarUrlObj),
11263
11031
  options: localVarRequestOptions,
11264
11032
  };
11265
11033
  },
11266
- /**
11267
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11268
- * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11269
- * @param {*} [options] Override http request option.
11270
- * @throws {RequiredError}
11271
- */
11272
- onboardClub: async (clientOnboardingRequestBody: ClientOnboardingRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11273
- // verify required parameter 'clientOnboardingRequestBody' is not null or undefined
11274
- assertParamExists('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody)
11275
- const localVarPath = `/clients/onboarding`;
11276
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11277
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11278
- let baseOptions;
11279
- if (configuration) {
11280
- baseOptions = configuration.baseOptions;
11281
- }
11282
-
11283
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11284
- const localVarHeaderParameter = {} as any;
11285
- const localVarQueryParameter = {} as any;
11286
-
11287
-
11288
-
11289
- localVarHeaderParameter['Content-Type'] = 'application/json';
11290
-
11291
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11292
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11293
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11294
- localVarRequestOptions.data = serializeDataIfNeeded(clientOnboardingRequestBody, localVarRequestOptions, configuration)
11295
-
11296
- return {
11297
- url: toPathString(localVarUrlObj),
11298
- options: localVarRequestOptions,
11299
- };
11300
- },
11301
- }
11302
- };
11303
-
11304
- /**
11305
- * ClientApi - functional programming interface
11306
- * @export
11307
- */
11308
- export const ClientApiFp = function(configuration?: Configuration) {
11309
- const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
11310
- return {
11311
- /**
11312
- * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11313
- * @param {*} [options] Override http request option.
11314
- * @throws {RequiredError}
11315
- */
11316
- async getManagedClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagedClubsResponse>> {
11317
- const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClubs(options);
11318
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11319
- const localVarOperationServerBasePath = operationServerMap['ClientApi.getManagedClubs']?.[localVarOperationServerIndex]?.url;
11320
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11321
- },
11322
- /**
11323
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11324
- * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11325
- * @param {*} [options] Override http request option.
11326
- * @throws {RequiredError}
11327
- */
11328
- async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientOnboardingResponse>> {
11329
- const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
11330
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11331
- const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
11332
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11333
- },
11334
- }
11335
- };
11336
-
11337
- /**
11338
- * ClientApi - factory interface
11339
- * @export
11340
- */
11341
- export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11342
- const localVarFp = ClientApiFp(configuration)
11343
- return {
11344
11034
  /**
11345
11035
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11346
11036
  * @param {*} [options] Override http request option.
11347
11037
  * @throws {RequiredError}
11348
11038
  */
11349
- getManagedClubs(options?: RawAxiosRequestConfig): AxiosPromise<ManagedClubsResponse> {
11350
- return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
11351
- },
11352
- /**
11353
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11354
- * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11355
- * @param {*} [options] Override http request option.
11356
- * @throws {RequiredError}
11357
- */
11358
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientOnboardingResponse> {
11359
- return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
11360
- },
11361
- };
11362
- };
11363
-
11364
- /**
11365
- * Request parameters for onboardClub operation in ClientApi.
11366
- * @export
11367
- * @interface ClientApiOnboardClubRequest
11368
- */
11369
- export interface ClientApiOnboardClubRequest {
11370
- /**
11371
- * Les données du club à créer
11372
- * @type {ClientOnboardingRequestBody}
11373
- * @memberof ClientApiOnboardClub
11374
- */
11375
- readonly clientOnboardingRequestBody: ClientOnboardingRequestBody
11376
- }
11377
-
11378
- /**
11379
- * ClientApi - object-oriented interface
11380
- * @export
11381
- * @class ClientApi
11382
- * @extends {BaseAPI}
11383
- */
11384
- export class ClientApi extends BaseAPI {
11385
- /**
11386
- * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11387
- * @param {*} [options] Override http request option.
11388
- * @throws {RequiredError}
11389
- * @memberof ClientApi
11390
- */
11391
- public getManagedClubs(options?: RawAxiosRequestConfig) {
11392
- return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
11393
- }
11394
-
11395
- /**
11396
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11397
- * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11398
- * @param {*} [options] Override http request option.
11399
- * @throws {RequiredError}
11400
- * @memberof ClientApi
11401
- */
11402
- public onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig) {
11403
- return ClientApiFp(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
11404
- }
11405
- }
11406
-
11407
-
11408
-
11409
- /**
11410
- * ClientAccountsApi - axios parameter creator
11411
- * @export
11412
- */
11413
- export const ClientAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
11414
- return {
11415
- /**
11416
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11417
- * @param {*} [options] Override http request option.
11418
- * @throws {RequiredError}
11419
- */
11420
- clientAuthMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11421
- const localVarPath = `/client-accounts/client-auth/me`;
11422
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11423
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11424
- let baseOptions;
11425
- if (configuration) {
11426
- baseOptions = configuration.baseOptions;
11427
- }
11428
-
11429
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11430
- const localVarHeaderParameter = {} as any;
11431
- const localVarQueryParameter = {} as any;
11432
-
11433
- // authentication clientAuth required
11434
- // http bearer authentication required
11435
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11436
-
11437
-
11438
-
11439
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11440
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11441
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11442
-
11443
- return {
11444
- url: toPathString(localVarUrlObj),
11445
- options: localVarRequestOptions,
11446
- };
11447
- },
11448
- /**
11449
- * Récupère le compte client par son ID
11450
- * @param {string} accountId L\&#39;ID du compte client
11451
- * @param {*} [options] Override http request option.
11452
- * @throws {RequiredError}
11453
- */
11454
- getClientAccountById: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11455
- // verify required parameter 'accountId' is not null or undefined
11456
- assertParamExists('getClientAccountById', 'accountId', accountId)
11457
- const localVarPath = `/client-accounts/{accountId}`
11458
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
11459
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11460
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11461
- let baseOptions;
11462
- if (configuration) {
11463
- baseOptions = configuration.baseOptions;
11464
- }
11465
-
11466
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11467
- const localVarHeaderParameter = {} as any;
11468
- const localVarQueryParameter = {} as any;
11469
-
11470
- // authentication bearerAuth required
11471
- // http bearer authentication required
11472
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11473
-
11474
-
11475
-
11476
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11477
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11478
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11479
-
11480
- return {
11481
- url: toPathString(localVarUrlObj),
11482
- options: localVarRequestOptions,
11483
- };
11484
- },
11485
- /**
11486
- * Récupère l\'abonnement actif du compte client authentifié
11487
- * @param {*} [options] Override http request option.
11488
- * @throws {RequiredError}
11489
- */
11490
- getMyActiveSubscription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11491
- const localVarPath = `/client-accounts/me/subscription`;
11492
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11493
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11494
- let baseOptions;
11495
- if (configuration) {
11496
- baseOptions = configuration.baseOptions;
11497
- }
11498
-
11499
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11500
- const localVarHeaderParameter = {} as any;
11501
- const localVarQueryParameter = {} as any;
11502
-
11503
- // authentication bearerAuth required
11504
- // http bearer authentication required
11505
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11506
-
11507
-
11508
-
11509
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11510
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11511
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11512
-
11513
- return {
11514
- url: toPathString(localVarUrlObj),
11515
- options: localVarRequestOptions,
11516
- };
11517
- },
11518
- /**
11519
- * Récupère le compte client de l\'utilisateur authentifié
11520
- * @param {*} [options] Override http request option.
11521
- * @throws {RequiredError}
11522
- */
11523
- getMyClientAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11524
- const localVarPath = `/client-accounts/me`;
11525
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11526
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11527
- let baseOptions;
11528
- if (configuration) {
11529
- baseOptions = configuration.baseOptions;
11530
- }
11531
-
11532
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11533
- const localVarHeaderParameter = {} as any;
11534
- const localVarQueryParameter = {} as any;
11535
-
11536
- // authentication bearerAuth required
11537
- // http bearer authentication required
11538
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11539
-
11540
-
11541
-
11542
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11543
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11544
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11545
-
11546
- return {
11547
- url: toPathString(localVarUrlObj),
11548
- options: localVarRequestOptions,
11549
- };
11550
- },
11551
- /**
11552
- * Récupère l\'historique des abonnements du compte client authentifié
11553
- * @param {*} [options] Override http request option.
11554
- * @throws {RequiredError}
11555
- */
11556
- getSubscriptionsHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11557
- const localVarPath = `/client-accounts/me/subscriptions-history`;
11558
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11559
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11560
- let baseOptions;
11561
- if (configuration) {
11562
- baseOptions = configuration.baseOptions;
11563
- }
11564
-
11565
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11566
- const localVarHeaderParameter = {} as any;
11567
- const localVarQueryParameter = {} as any;
11568
-
11569
- // authentication bearerAuth required
11570
- // http bearer authentication required
11571
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11572
-
11573
-
11574
-
11575
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11576
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11577
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11578
-
11579
- return {
11580
- url: toPathString(localVarUrlObj),
11581
- options: localVarRequestOptions,
11582
- };
11583
- },
11584
- /**
11585
- * Liste les prix Stripe disponibles pour les abonnements client
11586
- * @param {*} [options] Override http request option.
11587
- * @throws {RequiredError}
11588
- */
11589
- listAvailablePrices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11590
- const localVarPath = `/client-accounts/plans/available-prices`;
11039
+ getManagedClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11040
+ const localVarPath = `/clients/managed-clubs`;
11591
11041
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11592
11042
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11593
11043
  let baseOptions;
@@ -11615,15 +11065,15 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11615
11065
  };
11616
11066
  },
11617
11067
  /**
11618
- * Crée un nouveau compte client avec onboarding Stripe
11619
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11068
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11069
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11620
11070
  * @param {*} [options] Override http request option.
11621
11071
  * @throws {RequiredError}
11622
11072
  */
11623
- onboardClientAccount: async (clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11624
- // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
11625
- assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest)
11626
- const localVarPath = `/client-accounts/onboarding`;
11073
+ onboardClub: async (clientOnboardingRequestBody: ClientOnboardingRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11074
+ // verify required parameter 'clientOnboardingRequestBody' is not null or undefined
11075
+ assertParamExists('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody)
11076
+ const localVarPath = `/clients/onboarding`;
11627
11077
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11628
11078
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11629
11079
  let baseOptions;
@@ -11646,42 +11096,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11646
11096
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11647
11097
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11648
11098
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11649
- localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration)
11650
-
11651
- return {
11652
- url: toPathString(localVarUrlObj),
11653
- options: localVarRequestOptions,
11654
- };
11655
- },
11656
- /**
11657
- * Route d\'inscription d\'un utilisateur client (publique)
11658
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11659
- * @param {*} [options] Override http request option.
11660
- * @throws {RequiredError}
11661
- */
11662
- registerClientUser: async (clientRegisterRequestBody: ClientRegisterRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11663
- // verify required parameter 'clientRegisterRequestBody' is not null or undefined
11664
- assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody)
11665
- const localVarPath = `/client-accounts/register-client-user`;
11666
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11667
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11668
- let baseOptions;
11669
- if (configuration) {
11670
- baseOptions = configuration.baseOptions;
11671
- }
11672
-
11673
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11674
- const localVarHeaderParameter = {} as any;
11675
- const localVarQueryParameter = {} as any;
11676
-
11677
-
11678
-
11679
- localVarHeaderParameter['Content-Type'] = 'application/json';
11680
-
11681
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11682
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11683
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11684
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration)
11099
+ localVarRequestOptions.data = serializeDataIfNeeded(clientOnboardingRequestBody, localVarRequestOptions, configuration)
11685
11100
 
11686
11101
  return {
11687
11102
  url: toPathString(localVarUrlObj),
@@ -11692,313 +11107,151 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11692
11107
  };
11693
11108
 
11694
11109
  /**
11695
- * ClientAccountsApi - functional programming interface
11110
+ * ClientApi - functional programming interface
11696
11111
  * @export
11697
11112
  */
11698
- export const ClientAccountsApiFp = function(configuration?: Configuration) {
11699
- const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration)
11113
+ export const ClientApiFp = function(configuration?: Configuration) {
11114
+ const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
11700
11115
  return {
11701
11116
  /**
11702
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11117
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11118
+ * @param {ClientRegisterRequest} clientRegisterRequest
11703
11119
  * @param {*} [options] Override http request option.
11704
11120
  * @throws {RequiredError}
11705
11121
  */
11706
- async clientAuthMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientMeResponse>> {
11707
- const localVarAxiosArgs = await localVarAxiosParamCreator.clientAuthMe(options);
11122
+ async clientRegister(clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegister201Response>> {
11123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
11708
11124
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11709
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.clientAuthMe']?.[localVarOperationServerIndex]?.url;
11125
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
11710
11126
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11711
11127
  },
11712
11128
  /**
11713
- * Récupère le compte client par son ID
11714
- * @param {string} accountId L\&#39;ID du compte client
11715
- * @param {*} [options] Override http request option.
11716
- * @throws {RequiredError}
11717
- */
11718
- async getClientAccountById(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
11719
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClientAccountById(accountId, options);
11720
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11721
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getClientAccountById']?.[localVarOperationServerIndex]?.url;
11722
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11723
- },
11724
- /**
11725
- * Récupère l\'abonnement actif du compte client authentifié
11726
- * @param {*} [options] Override http request option.
11727
- * @throws {RequiredError}
11728
- */
11729
- async getMyActiveSubscription(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveSubscriptionResponse>> {
11730
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyActiveSubscription(options);
11731
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11732
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyActiveSubscription']?.[localVarOperationServerIndex]?.url;
11733
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11734
- },
11735
- /**
11736
- * Récupère le compte client de l\'utilisateur authentifié
11737
- * @param {*} [options] Override http request option.
11738
- * @throws {RequiredError}
11739
- */
11740
- async getMyClientAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
11741
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClientAccount(options);
11742
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11743
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyClientAccount']?.[localVarOperationServerIndex]?.url;
11744
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11745
- },
11746
- /**
11747
- * Récupère l\'historique des abonnements du compte client authentifié
11748
- * @param {*} [options] Override http request option.
11749
- * @throws {RequiredError}
11750
- */
11751
- async getSubscriptionsHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionsHistory200Response>> {
11752
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionsHistory(options);
11753
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11754
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']?.[localVarOperationServerIndex]?.url;
11755
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11756
- },
11757
- /**
11758
- * Liste les prix Stripe disponibles pour les abonnements client
11759
- * @param {*} [options] Override http request option.
11760
- * @throws {RequiredError}
11761
- */
11762
- async listAvailablePrices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11763
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailablePrices(options);
11764
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11765
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.listAvailablePrices']?.[localVarOperationServerIndex]?.url;
11766
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11767
- },
11768
- /**
11769
- * Crée un nouveau compte client avec onboarding Stripe
11770
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11129
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11771
11130
  * @param {*} [options] Override http request option.
11772
11131
  * @throws {RequiredError}
11773
11132
  */
11774
- async onboardClientAccount(clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountOnboardingResponse>> {
11775
- const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
11133
+ async getManagedClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagedClubsResponse>> {
11134
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClubs(options);
11776
11135
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11777
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.onboardClientAccount']?.[localVarOperationServerIndex]?.url;
11136
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.getManagedClubs']?.[localVarOperationServerIndex]?.url;
11778
11137
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11779
11138
  },
11780
11139
  /**
11781
- * Route d\'inscription d\'un utilisateur client (publique)
11782
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11140
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11141
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11783
11142
  * @param {*} [options] Override http request option.
11784
11143
  * @throws {RequiredError}
11785
11144
  */
11786
- async registerClientUser(clientRegisterRequestBody: ClientRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegisterResponse>> {
11787
- const localVarAxiosArgs = await localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
11145
+ async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>> {
11146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
11788
11147
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11789
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.registerClientUser']?.[localVarOperationServerIndex]?.url;
11148
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
11790
11149
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11791
11150
  },
11792
11151
  }
11793
11152
  };
11794
11153
 
11795
11154
  /**
11796
- * ClientAccountsApi - factory interface
11155
+ * ClientApi - factory interface
11797
11156
  * @export
11798
11157
  */
11799
- export const ClientAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11800
- const localVarFp = ClientAccountsApiFp(configuration)
11158
+ export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11159
+ const localVarFp = ClientApiFp(configuration)
11801
11160
  return {
11802
11161
  /**
11803
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11804
- * @param {*} [options] Override http request option.
11805
- * @throws {RequiredError}
11806
- */
11807
- clientAuthMe(options?: RawAxiosRequestConfig): AxiosPromise<ClientMeResponse> {
11808
- return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
11809
- },
11810
- /**
11811
- * Récupère le compte client par son ID
11812
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
11813
- * @param {*} [options] Override http request option.
11814
- * @throws {RequiredError}
11815
- */
11816
- getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
11817
- return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
11818
- },
11819
- /**
11820
- * Récupère l\'abonnement actif du compte client authentifié
11162
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11163
+ * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
11821
11164
  * @param {*} [options] Override http request option.
11822
11165
  * @throws {RequiredError}
11823
11166
  */
11824
- getMyActiveSubscription(options?: RawAxiosRequestConfig): AxiosPromise<ActiveSubscriptionResponse> {
11825
- return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
11167
+ clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
11168
+ return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
11826
11169
  },
11827
11170
  /**
11828
- * Récupère le compte client de l\'utilisateur authentifié
11829
- * @param {*} [options] Override http request option.
11830
- * @throws {RequiredError}
11831
- */
11832
- getMyClientAccount(options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
11833
- return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
11834
- },
11835
- /**
11836
- * Récupère l\'historique des abonnements du compte client authentifié
11837
- * @param {*} [options] Override http request option.
11838
- * @throws {RequiredError}
11839
- */
11840
- getSubscriptionsHistory(options?: RawAxiosRequestConfig): AxiosPromise<GetSubscriptionsHistory200Response> {
11841
- return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
11842
- },
11843
- /**
11844
- * Liste les prix Stripe disponibles pour les abonnements client
11845
- * @param {*} [options] Override http request option.
11846
- * @throws {RequiredError}
11847
- */
11848
- listAvailablePrices(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
11849
- return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
11850
- },
11851
- /**
11852
- * Crée un nouveau compte client avec onboarding Stripe
11853
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
11171
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11854
11172
  * @param {*} [options] Override http request option.
11855
11173
  * @throws {RequiredError}
11856
11174
  */
11857
- onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountOnboardingResponse> {
11858
- return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
11175
+ getManagedClubs(options?: RawAxiosRequestConfig): AxiosPromise<ManagedClubsResponse> {
11176
+ return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
11859
11177
  },
11860
11178
  /**
11861
- * Route d\'inscription d\'un utilisateur client (publique)
11862
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
11179
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11180
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11863
11181
  * @param {*} [options] Override http request option.
11864
11182
  * @throws {RequiredError}
11865
11183
  */
11866
- registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegisterResponse> {
11867
- return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
11184
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse> {
11185
+ return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
11868
11186
  },
11869
11187
  };
11870
11188
  };
11871
11189
 
11872
11190
  /**
11873
- * Request parameters for getClientAccountById operation in ClientAccountsApi.
11191
+ * Request parameters for clientRegister operation in ClientApi.
11874
11192
  * @export
11875
- * @interface ClientAccountsApiGetClientAccountByIdRequest
11193
+ * @interface ClientApiClientRegisterRequest
11876
11194
  */
11877
- export interface ClientAccountsApiGetClientAccountByIdRequest {
11195
+ export interface ClientApiClientRegisterRequest {
11878
11196
  /**
11879
- * L\&#39;ID du compte client
11880
- * @type {string}
11881
- * @memberof ClientAccountsApiGetClientAccountById
11882
- */
11883
- readonly accountId: string
11884
- }
11885
-
11886
- /**
11887
- * Request parameters for onboardClientAccount operation in ClientAccountsApi.
11888
- * @export
11889
- * @interface ClientAccountsApiOnboardClientAccountRequest
11890
- */
11891
- export interface ClientAccountsApiOnboardClientAccountRequest {
11892
- /**
11893
- * Les données du compte à créer
11894
- * @type {ClientAccountOnboardingRequest}
11895
- * @memberof ClientAccountsApiOnboardClientAccount
11197
+ *
11198
+ * @type {ClientRegisterRequest}
11199
+ * @memberof ClientApiClientRegister
11896
11200
  */
11897
- readonly clientAccountOnboardingRequest: ClientAccountOnboardingRequest
11201
+ readonly clientRegisterRequest: ClientRegisterRequest
11898
11202
  }
11899
11203
 
11900
11204
  /**
11901
- * Request parameters for registerClientUser operation in ClientAccountsApi.
11205
+ * Request parameters for onboardClub operation in ClientApi.
11902
11206
  * @export
11903
- * @interface ClientAccountsApiRegisterClientUserRequest
11207
+ * @interface ClientApiOnboardClubRequest
11904
11208
  */
11905
- export interface ClientAccountsApiRegisterClientUserRequest {
11209
+ export interface ClientApiOnboardClubRequest {
11906
11210
  /**
11907
- *
11908
- * @type {ClientRegisterRequestBody}
11909
- * @memberof ClientAccountsApiRegisterClientUser
11211
+ * Les données du club à créer
11212
+ * @type {ClientOnboardingRequestBody}
11213
+ * @memberof ClientApiOnboardClub
11910
11214
  */
11911
- readonly clientRegisterRequestBody: ClientRegisterRequestBody
11215
+ readonly clientOnboardingRequestBody: ClientOnboardingRequestBody
11912
11216
  }
11913
11217
 
11914
11218
  /**
11915
- * ClientAccountsApi - object-oriented interface
11219
+ * ClientApi - object-oriented interface
11916
11220
  * @export
11917
- * @class ClientAccountsApi
11221
+ * @class ClientApi
11918
11222
  * @extends {BaseAPI}
11919
11223
  */
11920
- export class ClientAccountsApi extends BaseAPI {
11921
- /**
11922
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11923
- * @param {*} [options] Override http request option.
11924
- * @throws {RequiredError}
11925
- * @memberof ClientAccountsApi
11926
- */
11927
- public clientAuthMe(options?: RawAxiosRequestConfig) {
11928
- return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
11929
- }
11930
-
11931
- /**
11932
- * Récupère le compte client par son ID
11933
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
11934
- * @param {*} [options] Override http request option.
11935
- * @throws {RequiredError}
11936
- * @memberof ClientAccountsApi
11937
- */
11938
- public getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig) {
11939
- return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
11940
- }
11941
-
11942
- /**
11943
- * Récupère l\'abonnement actif du compte client authentifié
11944
- * @param {*} [options] Override http request option.
11945
- * @throws {RequiredError}
11946
- * @memberof ClientAccountsApi
11947
- */
11948
- public getMyActiveSubscription(options?: RawAxiosRequestConfig) {
11949
- return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
11950
- }
11951
-
11952
- /**
11953
- * Récupère le compte client de l\'utilisateur authentifié
11954
- * @param {*} [options] Override http request option.
11955
- * @throws {RequiredError}
11956
- * @memberof ClientAccountsApi
11957
- */
11958
- public getMyClientAccount(options?: RawAxiosRequestConfig) {
11959
- return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
11960
- }
11961
-
11962
- /**
11963
- * Récupère l\'historique des abonnements du compte client authentifié
11964
- * @param {*} [options] Override http request option.
11965
- * @throws {RequiredError}
11966
- * @memberof ClientAccountsApi
11967
- */
11968
- public getSubscriptionsHistory(options?: RawAxiosRequestConfig) {
11969
- return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
11970
- }
11971
-
11224
+ export class ClientApi extends BaseAPI {
11972
11225
  /**
11973
- * Liste les prix Stripe disponibles pour les abonnements client
11226
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11227
+ * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
11974
11228
  * @param {*} [options] Override http request option.
11975
11229
  * @throws {RequiredError}
11976
- * @memberof ClientAccountsApi
11230
+ * @memberof ClientApi
11977
11231
  */
11978
- public listAvailablePrices(options?: RawAxiosRequestConfig) {
11979
- return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
11232
+ public clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig) {
11233
+ return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
11980
11234
  }
11981
11235
 
11982
11236
  /**
11983
- * Crée un nouveau compte client avec onboarding Stripe
11984
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
11237
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11985
11238
  * @param {*} [options] Override http request option.
11986
11239
  * @throws {RequiredError}
11987
- * @memberof ClientAccountsApi
11240
+ * @memberof ClientApi
11988
11241
  */
11989
- public onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig) {
11990
- return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
11242
+ public getManagedClubs(options?: RawAxiosRequestConfig) {
11243
+ return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
11991
11244
  }
11992
11245
 
11993
11246
  /**
11994
- * Route d\'inscription d\'un utilisateur client (publique)
11995
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
11247
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11248
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11996
11249
  * @param {*} [options] Override http request option.
11997
11250
  * @throws {RequiredError}
11998
- * @memberof ClientAccountsApi
11251
+ * @memberof ClientApi
11999
11252
  */
12000
- public registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig) {
12001
- return ClientAccountsApiFp(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
11253
+ public onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig) {
11254
+ return ClientApiFp(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
12002
11255
  }
12003
11256
  }
12004
11257