@tennac-booking/sdk 1.0.107 → 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 (43) hide show
  1. package/.openapi-generator/FILES +284 -291
  2. package/README.md +7 -20
  3. package/api.ts +133 -916
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +90 -591
  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 +90 -591
  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/PaymentMethod.md +4 -0
  33. package/index.ts +1 -1
  34. package/package.json +1 -1
  35. package/docs/ActiveSubscriptionResponse.md +0 -22
  36. package/docs/ClientAccountOnboardingRequest.md +0 -29
  37. package/docs/ClientAccountResponse.md +0 -44
  38. package/docs/ClientAccountsApi.md +0 -408
  39. package/docs/ClientMeResponse.md +0 -28
  40. package/docs/ClientOnboardingResponse.md +0 -27
  41. package/docs/ClientRegisterResponse.md +0 -22
  42. package/docs/ClientSubscriptionResponse.md +0 -34
  43. package/docs/GetSubscriptionsHistory200Response.md +0 -22
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.104
5
+ * The version of the OpenAPI document: 1.0.108
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,25 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @interface ActiveSubscriptionResponse
20
- */
21
- export interface ActiveSubscriptionResponse {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ActiveSubscriptionResponse
26
- */
27
- 'clientAccountId': string;
28
- /**
29
- *
30
- * @type {ClientSubscriptionResponse}
31
- * @memberof ActiveSubscriptionResponse
32
- */
33
- 'subscription': ClientSubscriptionResponse | null;
34
- }
35
16
  /**
36
17
  *
37
18
  * @export
@@ -1327,229 +1308,73 @@ export interface CheckedInPlayer {
1327
1308
  */
1328
1309
  'note'?: string;
1329
1310
  }
1330
- /**
1331
- * Types pour les requêtes/réponses
1332
- * @export
1333
- * @interface ClientAccountOnboardingRequest
1334
- */
1335
- export interface ClientAccountOnboardingRequest {
1336
- /**
1337
- *
1338
- * @type {string}
1339
- * @memberof ClientAccountOnboardingRequest
1340
- */
1341
- 'businessName': string;
1342
- /**
1343
- *
1344
- * @type {string}
1345
- * @memberof ClientAccountOnboardingRequest
1346
- */
1347
- 'businessType'?: ClientAccountOnboardingRequestBusinessTypeEnum;
1348
- /**
1349
- *
1350
- * @type {string}
1351
- * @memberof ClientAccountOnboardingRequest
1352
- */
1353
- 'subscriptionType'?: ClientAccountOnboardingRequestSubscriptionTypeEnum;
1354
- /**
1355
- *
1356
- * @type {boolean}
1357
- * @memberof ClientAccountOnboardingRequest
1358
- */
1359
- 'isPublicOrganization'?: boolean;
1360
- /**
1361
- *
1362
- * @type {string}
1363
- * @memberof ClientAccountOnboardingRequest
1364
- */
1365
- 'priceId': string;
1366
- }
1367
- export declare const ClientAccountOnboardingRequestBusinessTypeEnum: {
1368
- readonly Individual: "individual";
1369
- readonly Company: "company";
1370
- };
1371
- export type ClientAccountOnboardingRequestBusinessTypeEnum = typeof ClientAccountOnboardingRequestBusinessTypeEnum[keyof typeof ClientAccountOnboardingRequestBusinessTypeEnum];
1372
- export declare const ClientAccountOnboardingRequestSubscriptionTypeEnum: {
1373
- readonly Basic: "basic";
1374
- readonly PlatformWithConnect: "platform_with_connect";
1375
- };
1376
- export type ClientAccountOnboardingRequestSubscriptionTypeEnum = typeof ClientAccountOnboardingRequestSubscriptionTypeEnum[keyof typeof ClientAccountOnboardingRequestSubscriptionTypeEnum];
1377
1311
  /**
1378
1312
  *
1379
1313
  * @export
1380
- * @interface ClientAccountOnboardingResponse
1314
+ * @interface ClientFullOnboardingResponse
1381
1315
  */
1382
- export interface ClientAccountOnboardingResponse {
1316
+ export interface ClientFullOnboardingResponse {
1383
1317
  /**
1384
1318
  *
1385
1319
  * @type {string}
1386
- * @memberof ClientAccountOnboardingResponse
1320
+ * @memberof ClientFullOnboardingResponse
1387
1321
  */
1388
1322
  'clientAccountId': string;
1389
1323
  /**
1390
1324
  *
1391
1325
  * @type {string}
1392
- * @memberof ClientAccountOnboardingResponse
1326
+ * @memberof ClientFullOnboardingResponse
1393
1327
  */
1394
1328
  'stripeCustomerId': string;
1395
1329
  /**
1396
1330
  *
1397
1331
  * @type {string}
1398
- * @memberof ClientAccountOnboardingResponse
1332
+ * @memberof ClientFullOnboardingResponse
1399
1333
  */
1400
1334
  'stripeConnectedAccountId'?: string;
1401
1335
  /**
1402
1336
  *
1403
1337
  * @type {string}
1404
- * @memberof ClientAccountOnboardingResponse
1338
+ * @memberof ClientFullOnboardingResponse
1405
1339
  */
1406
- 'connectedAccountOnboardingLink'?: string;
1340
+ 'clientOnboardingLink'?: string;
1407
1341
  /**
1408
1342
  *
1409
- * @type {string}
1410
- * @memberof ClientAccountOnboardingResponse
1343
+ * @type {ClientFullOnboardingResponseClub}
1344
+ * @memberof ClientFullOnboardingResponse
1411
1345
  */
1412
- 'status': string;
1346
+ 'club': ClientFullOnboardingResponseClub;
1413
1347
  /**
1414
1348
  *
1415
1349
  * @type {string}
1416
- * @memberof ClientAccountOnboardingResponse
1350
+ * @memberof ClientFullOnboardingResponse
1417
1351
  */
1418
1352
  'message': string;
1419
- /**
1420
- *
1421
- * @type {boolean}
1422
- * @memberof ClientAccountOnboardingResponse
1423
- */
1424
- 'isPublicOrganization': boolean;
1425
- /**
1426
- *
1427
- * @type {boolean}
1428
- * @memberof ClientAccountOnboardingResponse
1429
- */
1430
- 'manualInvoiceRequired'?: boolean;
1431
- }
1432
- /**
1433
- *
1434
- * @export
1435
- * @interface ClientAccountResponse
1436
- */
1437
- export interface ClientAccountResponse {
1438
- /**
1439
- *
1440
- * @type {string}
1441
- * @memberof ClientAccountResponse
1442
- */
1443
- 'id': string;
1444
- /**
1445
- *
1446
- * @type {string}
1447
- * @memberof ClientAccountResponse
1448
- */
1449
- 'email': string;
1450
- /**
1451
- *
1452
- * @type {string}
1453
- * @memberof ClientAccountResponse
1454
- */
1455
- 'businessName': string;
1456
- /**
1457
- *
1458
- * @type {string}
1459
- * @memberof ClientAccountResponse
1460
- */
1461
- 'businessType': string;
1462
- /**
1463
- *
1464
- * @type {string}
1465
- * @memberof ClientAccountResponse
1466
- */
1467
- 'subscriptionType': string;
1468
- /**
1469
- *
1470
- * @type {string}
1471
- * @memberof ClientAccountResponse
1472
- */
1473
- 'status': string;
1474
- /**
1475
- *
1476
- * @type {boolean}
1477
- * @memberof ClientAccountResponse
1478
- */
1479
- 'platformPaymentMethodSetup': boolean;
1480
- /**
1481
- *
1482
- * @type {string}
1483
- * @memberof ClientAccountResponse
1484
- */
1485
- 'stripeConnectedAccountId'?: string;
1486
- /**
1487
- *
1488
- * @type {boolean}
1489
- * @memberof ClientAccountResponse
1490
- */
1491
- 'connectedAccountOnboardingRequired'?: boolean;
1492
- /**
1493
- *
1494
- * @type {boolean}
1495
- * @memberof ClientAccountResponse
1496
- */
1497
- 'isPublicOrganization': boolean;
1498
- /**
1499
- *
1500
- * @type {boolean}
1501
- * @memberof ClientAccountResponse
1502
- */
1503
- 'manualInvoiceRequired'?: boolean;
1504
- /**
1505
- *
1506
- * @type {string}
1507
- * @memberof ClientAccountResponse
1508
- */
1509
- 'createdAt': string;
1510
- /**
1511
- *
1512
- * @type {string}
1513
- * @memberof ClientAccountResponse
1514
- */
1515
- 'updatedAt': string;
1516
1353
  }
1517
1354
  /**
1518
1355
  *
1519
1356
  * @export
1520
- * @interface ClientMeResponse
1357
+ * @interface ClientFullOnboardingResponseClub
1521
1358
  */
1522
- export interface ClientMeResponse {
1523
- /**
1524
- *
1525
- * @type {string}
1526
- * @memberof ClientMeResponse
1527
- */
1528
- 'id': string;
1359
+ export interface ClientFullOnboardingResponseClub {
1529
1360
  /**
1530
1361
  *
1531
1362
  * @type {string}
1532
- * @memberof ClientMeResponse
1363
+ * @memberof ClientFullOnboardingResponseClub
1533
1364
  */
1534
- 'email': string;
1365
+ 'clubOnboardingLink'?: string;
1535
1366
  /**
1536
1367
  *
1537
1368
  * @type {string}
1538
- * @memberof ClientMeResponse
1369
+ * @memberof ClientFullOnboardingResponseClub
1539
1370
  */
1540
- 'firstName': string;
1371
+ 'stripeAccountId': string;
1541
1372
  /**
1542
1373
  *
1543
1374
  * @type {string}
1544
- * @memberof ClientMeResponse
1545
- */
1546
- 'lastName': string;
1547
- /**
1548
- *
1549
- * @type {boolean}
1550
- * @memberof ClientMeResponse
1375
+ * @memberof ClientFullOnboardingResponseClub
1551
1376
  */
1552
- 'isClient': boolean;
1377
+ 'clubId': string;
1553
1378
  }
1554
1379
  /**
1555
1380
  * Requête pour l\'onboarding d\'un club
@@ -1600,141 +1425,67 @@ export interface ClientOnboardingRequestBody {
1600
1425
  */
1601
1426
  'country'?: string;
1602
1427
  }
1603
- /**
1604
- * Réponse pour l\'onboarding d\'un club
1605
- * @export
1606
- * @interface ClientOnboardingResponse
1607
- */
1608
- export interface ClientOnboardingResponse {
1609
- /**
1610
- * ID unique du club créé
1611
- * @type {string}
1612
- * @memberof ClientOnboardingResponse
1613
- */
1614
- 'clubId': string;
1615
- /**
1616
- * ID du compte Stripe Connect du club
1617
- * @type {string}
1618
- * @memberof ClientOnboardingResponse
1619
- */
1620
- 'stripeAccountId': string;
1621
- /**
1622
- * Lien d\'onboarding Stripe pour configurer le compte
1623
- * @type {string}
1624
- * @memberof ClientOnboardingResponse
1625
- */
1626
- 'onboardingLink': string;
1627
- /**
1628
- * Message de confirmation
1629
- * @type {string}
1630
- * @memberof ClientOnboardingResponse
1631
- */
1632
- 'message': string;
1633
- }
1634
1428
  /**
1635
1429
  *
1636
1430
  * @export
1637
- * @interface ClientRegisterRequestBody
1431
+ * @interface ClientRegister201Response
1638
1432
  */
1639
- export interface ClientRegisterRequestBody {
1433
+ export interface ClientRegister201Response {
1640
1434
  /**
1641
1435
  *
1642
1436
  * @type {string}
1643
- * @memberof ClientRegisterRequestBody
1437
+ * @memberof ClientRegister201Response
1644
1438
  */
1645
- 'email': string;
1646
- /**
1647
- *
1648
- * @type {string}
1649
- * @memberof ClientRegisterRequestBody
1650
- */
1651
- 'password': string;
1652
- /**
1653
- *
1654
- * @type {string}
1655
- * @memberof ClientRegisterRequestBody
1656
- */
1657
- 'firstName': string;
1439
+ 'message': string;
1658
1440
  /**
1659
1441
  *
1660
1442
  * @type {string}
1661
- * @memberof ClientRegisterRequestBody
1443
+ * @memberof ClientRegister201Response
1662
1444
  */
1663
- 'lastName': string;
1664
- }
1665
- /**
1666
- *
1667
- * @export
1668
- * @interface ClientRegisterResponse
1669
- */
1670
- export interface ClientRegisterResponse {
1445
+ 'stripeCustomerId': string;
1671
1446
  /**
1672
1447
  *
1673
1448
  * @type {string}
1674
- * @memberof ClientRegisterResponse
1449
+ * @memberof ClientRegister201Response
1675
1450
  */
1676
- 'id': string;
1451
+ 'email': string;
1677
1452
  /**
1678
1453
  *
1679
1454
  * @type {string}
1680
- * @memberof ClientRegisterResponse
1455
+ * @memberof ClientRegister201Response
1681
1456
  */
1682
- 'token': string;
1457
+ 'userId': string;
1683
1458
  }
1684
1459
  /**
1685
1460
  *
1686
1461
  * @export
1687
- * @interface ClientSubscriptionResponse
1462
+ * @interface ClientRegisterRequest
1688
1463
  */
1689
- export interface ClientSubscriptionResponse {
1464
+ export interface ClientRegisterRequest {
1690
1465
  /**
1691
1466
  *
1692
1467
  * @type {string}
1693
- * @memberof ClientSubscriptionResponse
1468
+ * @memberof ClientRegisterRequest
1694
1469
  */
1695
- 'id': string;
1696
- /**
1697
- *
1698
- * @type {string}
1699
- * @memberof ClientSubscriptionResponse
1700
- */
1701
- 'subscriptionType': string;
1702
- /**
1703
- *
1704
- * @type {string}
1705
- * @memberof ClientSubscriptionResponse
1706
- */
1707
- 'status': string;
1708
- /**
1709
- *
1710
- * @type {string}
1711
- * @memberof ClientSubscriptionResponse
1712
- */
1713
- 'startDate': string;
1470
+ 'password': string;
1714
1471
  /**
1715
1472
  *
1716
1473
  * @type {string}
1717
- * @memberof ClientSubscriptionResponse
1474
+ * @memberof ClientRegisterRequest
1718
1475
  */
1719
- 'endDate'?: string;
1720
- /**
1721
- *
1722
- * @type {number}
1723
- * @memberof ClientSubscriptionResponse
1724
- */
1725
- 'priceAmountInCents': number;
1476
+ 'email': string;
1726
1477
  /**
1727
1478
  *
1728
1479
  * @type {string}
1729
- * @memberof ClientSubscriptionResponse
1480
+ * @memberof ClientRegisterRequest
1730
1481
  */
1731
- 'currency': string;
1482
+ 'lastName': string;
1732
1483
  /**
1733
1484
  *
1734
1485
  * @type {string}
1735
- * @memberof ClientSubscriptionResponse
1486
+ * @memberof ClientRegisterRequest
1736
1487
  */
1737
- 'billingCycle': string;
1488
+ 'firstName': string;
1738
1489
  }
1739
1490
  /**
1740
1491
  *
@@ -4415,25 +4166,6 @@ export interface GetSlotsByClubById200Response {
4415
4166
  */
4416
4167
  'slots': Array<any>;
4417
4168
  }
4418
- /**
4419
- *
4420
- * @export
4421
- * @interface GetSubscriptionsHistory200Response
4422
- */
4423
- export interface GetSubscriptionsHistory200Response {
4424
- /**
4425
- *
4426
- * @type {Array<ClientSubscriptionResponse>}
4427
- * @memberof GetSubscriptionsHistory200Response
4428
- */
4429
- 'subscriptions': Array<ClientSubscriptionResponse>;
4430
- /**
4431
- *
4432
- * @type {string}
4433
- * @memberof GetSubscriptionsHistory200Response
4434
- */
4435
- 'clientAccountId': string;
4436
- }
4437
4169
  /**
4438
4170
  *
4439
4171
  * @export
@@ -5516,6 +5248,8 @@ export interface PaymentByPlayerInfo {
5516
5248
  export declare const PaymentMethod: {
5517
5249
  readonly Online: "online";
5518
5250
  readonly Onsite: "onsite";
5251
+ readonly OnsiteCard: "onsite_card";
5252
+ readonly OnsiteCash: "onsite_cash";
5519
5253
  readonly Free: "free";
5520
5254
  };
5521
5255
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
@@ -10452,6 +10186,13 @@ export declare class BookingsUserApi extends BaseAPI {
10452
10186
  * @export
10453
10187
  */
10454
10188
  export declare const ClientApiAxiosParamCreator: (configuration?: Configuration) => {
10189
+ /**
10190
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
10191
+ * @param {ClientRegisterRequest} clientRegisterRequest
10192
+ * @param {*} [options] Override http request option.
10193
+ * @throws {RequiredError}
10194
+ */
10195
+ clientRegister: (clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10455
10196
  /**
10456
10197
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
10457
10198
  * @param {*} [options] Override http request option.
@@ -10459,7 +10200,7 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
10459
10200
  */
10460
10201
  getManagedClubs: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10461
10202
  /**
10462
- * 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
10203
+ * 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
10463
10204
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
10464
10205
  * @param {*} [options] Override http request option.
10465
10206
  * @throws {RequiredError}
@@ -10471,6 +10212,13 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
10471
10212
  * @export
10472
10213
  */
10473
10214
  export declare const ClientApiFp: (configuration?: Configuration) => {
10215
+ /**
10216
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
10217
+ * @param {ClientRegisterRequest} clientRegisterRequest
10218
+ * @param {*} [options] Override http request option.
10219
+ * @throws {RequiredError}
10220
+ */
10221
+ clientRegister(clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegister201Response>>;
10474
10222
  /**
10475
10223
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
10476
10224
  * @param {*} [options] Override http request option.
@@ -10478,18 +10226,25 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
10478
10226
  */
10479
10227
  getManagedClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagedClubsResponse>>;
10480
10228
  /**
10481
- * 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
10229
+ * 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
10482
10230
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
10483
10231
  * @param {*} [options] Override http request option.
10484
10232
  * @throws {RequiredError}
10485
10233
  */
10486
- onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientOnboardingResponse>>;
10234
+ onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>>;
10487
10235
  };
10488
10236
  /**
10489
10237
  * ClientApi - factory interface
10490
10238
  * @export
10491
10239
  */
10492
10240
  export declare const ClientApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
10241
+ /**
10242
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
10243
+ * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
10244
+ * @param {*} [options] Override http request option.
10245
+ * @throws {RequiredError}
10246
+ */
10247
+ clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response>;
10493
10248
  /**
10494
10249
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
10495
10250
  * @param {*} [options] Override http request option.
@@ -10497,13 +10252,26 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
10497
10252
  */
10498
10253
  getManagedClubs(options?: RawAxiosRequestConfig): AxiosPromise<ManagedClubsResponse>;
10499
10254
  /**
10500
- * 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
10255
+ * 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
10501
10256
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
10502
10257
  * @param {*} [options] Override http request option.
10503
10258
  * @throws {RequiredError}
10504
10259
  */
10505
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientOnboardingResponse>;
10260
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse>;
10506
10261
  };
10262
+ /**
10263
+ * Request parameters for clientRegister operation in ClientApi.
10264
+ * @export
10265
+ * @interface ClientApiClientRegisterRequest
10266
+ */
10267
+ export interface ClientApiClientRegisterRequest {
10268
+ /**
10269
+ *
10270
+ * @type {ClientRegisterRequest}
10271
+ * @memberof ClientApiClientRegister
10272
+ */
10273
+ readonly clientRegisterRequest: ClientRegisterRequest;
10274
+ }
10507
10275
  /**
10508
10276
  * Request parameters for onboardClub operation in ClientApi.
10509
10277
  * @export
@@ -10525,297 +10293,28 @@ export interface ClientApiOnboardClubRequest {
10525
10293
  */
10526
10294
  export declare class ClientApi extends BaseAPI {
10527
10295
  /**
10528
- * Récupère la liste des clubs gérés par l\'utilisateur authentifié
10296
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
10297
+ * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
10529
10298
  * @param {*} [options] Override http request option.
10530
10299
  * @throws {RequiredError}
10531
10300
  * @memberof ClientApi
10532
10301
  */
10533
- getManagedClubs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ManagedClubsResponse, any, {}>>;
10302
+ clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientRegister201Response, any, {}>>;
10534
10303
  /**
10535
- * 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
10536
- * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
10304
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
10537
10305
  * @param {*} [options] Override http request option.
10538
10306
  * @throws {RequiredError}
10539
10307
  * @memberof ClientApi
10540
10308
  */
10541
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientOnboardingResponse, any, {}>>;
10542
- }
10543
- /**
10544
- * ClientAccountsApi - axios parameter creator
10545
- * @export
10546
- */
10547
- export declare const ClientAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
10548
- /**
10549
- * Informations de l\'utilisateur client authentifié (token clientAuth)
10550
- * @param {*} [options] Override http request option.
10551
- * @throws {RequiredError}
10552
- */
10553
- clientAuthMe: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10554
- /**
10555
- * Récupère le compte client par son ID
10556
- * @param {string} accountId L\&#39;ID du compte client
10557
- * @param {*} [options] Override http request option.
10558
- * @throws {RequiredError}
10559
- */
10560
- getClientAccountById: (accountId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10561
- /**
10562
- * Récupère l\'abonnement actif du compte client authentifié
10563
- * @param {*} [options] Override http request option.
10564
- * @throws {RequiredError}
10565
- */
10566
- getMyActiveSubscription: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10567
- /**
10568
- * Récupère le compte client de l\'utilisateur authentifié
10569
- * @param {*} [options] Override http request option.
10570
- * @throws {RequiredError}
10571
- */
10572
- getMyClientAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10573
- /**
10574
- * Récupère l\'historique des abonnements du compte client authentifié
10575
- * @param {*} [options] Override http request option.
10576
- * @throws {RequiredError}
10577
- */
10578
- getSubscriptionsHistory: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10579
- /**
10580
- * Liste les prix Stripe disponibles pour les abonnements client
10581
- * @param {*} [options] Override http request option.
10582
- * @throws {RequiredError}
10583
- */
10584
- listAvailablePrices: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10585
- /**
10586
- * Crée un nouveau compte client avec onboarding Stripe
10587
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
10588
- * @param {*} [options] Override http request option.
10589
- * @throws {RequiredError}
10590
- */
10591
- onboardClientAccount: (clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10592
- /**
10593
- * Route d\'inscription d\'un utilisateur client (publique)
10594
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
10595
- * @param {*} [options] Override http request option.
10596
- * @throws {RequiredError}
10597
- */
10598
- registerClientUser: (clientRegisterRequestBody: ClientRegisterRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10599
- };
10600
- /**
10601
- * ClientAccountsApi - functional programming interface
10602
- * @export
10603
- */
10604
- export declare const ClientAccountsApiFp: (configuration?: Configuration) => {
10605
- /**
10606
- * Informations de l\'utilisateur client authentifié (token clientAuth)
10607
- * @param {*} [options] Override http request option.
10608
- * @throws {RequiredError}
10609
- */
10610
- clientAuthMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientMeResponse>>;
10611
- /**
10612
- * Récupère le compte client par son ID
10613
- * @param {string} accountId L\&#39;ID du compte client
10614
- * @param {*} [options] Override http request option.
10615
- * @throws {RequiredError}
10616
- */
10617
- getClientAccountById(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>>;
10618
- /**
10619
- * Récupère l\'abonnement actif du compte client authentifié
10620
- * @param {*} [options] Override http request option.
10621
- * @throws {RequiredError}
10622
- */
10623
- getMyActiveSubscription(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveSubscriptionResponse>>;
10624
- /**
10625
- * Récupère le compte client de l\'utilisateur authentifié
10626
- * @param {*} [options] Override http request option.
10627
- * @throws {RequiredError}
10628
- */
10629
- getMyClientAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>>;
10630
- /**
10631
- * Récupère l\'historique des abonnements du compte client authentifié
10632
- * @param {*} [options] Override http request option.
10633
- * @throws {RequiredError}
10634
- */
10635
- getSubscriptionsHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionsHistory200Response>>;
10636
- /**
10637
- * Liste les prix Stripe disponibles pour les abonnements client
10638
- * @param {*} [options] Override http request option.
10639
- * @throws {RequiredError}
10640
- */
10641
- listAvailablePrices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>>;
10642
- /**
10643
- * Crée un nouveau compte client avec onboarding Stripe
10644
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
10645
- * @param {*} [options] Override http request option.
10646
- * @throws {RequiredError}
10647
- */
10648
- onboardClientAccount(clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountOnboardingResponse>>;
10649
- /**
10650
- * Route d\'inscription d\'un utilisateur client (publique)
10651
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
10652
- * @param {*} [options] Override http request option.
10653
- * @throws {RequiredError}
10654
- */
10655
- registerClientUser(clientRegisterRequestBody: ClientRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegisterResponse>>;
10656
- };
10657
- /**
10658
- * ClientAccountsApi - factory interface
10659
- * @export
10660
- */
10661
- export declare const ClientAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
10662
- /**
10663
- * Informations de l\'utilisateur client authentifié (token clientAuth)
10664
- * @param {*} [options] Override http request option.
10665
- * @throws {RequiredError}
10666
- */
10667
- clientAuthMe(options?: RawAxiosRequestConfig): AxiosPromise<ClientMeResponse>;
10668
- /**
10669
- * Récupère le compte client par son ID
10670
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
10671
- * @param {*} [options] Override http request option.
10672
- * @throws {RequiredError}
10673
- */
10674
- getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse>;
10675
- /**
10676
- * Récupère l\'abonnement actif du compte client authentifié
10677
- * @param {*} [options] Override http request option.
10678
- * @throws {RequiredError}
10679
- */
10680
- getMyActiveSubscription(options?: RawAxiosRequestConfig): AxiosPromise<ActiveSubscriptionResponse>;
10681
- /**
10682
- * Récupère le compte client de l\'utilisateur authentifié
10683
- * @param {*} [options] Override http request option.
10684
- * @throws {RequiredError}
10685
- */
10686
- getMyClientAccount(options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse>;
10687
- /**
10688
- * Récupère l\'historique des abonnements du compte client authentifié
10689
- * @param {*} [options] Override http request option.
10690
- * @throws {RequiredError}
10691
- */
10692
- getSubscriptionsHistory(options?: RawAxiosRequestConfig): AxiosPromise<GetSubscriptionsHistory200Response>;
10693
- /**
10694
- * Liste les prix Stripe disponibles pour les abonnements client
10695
- * @param {*} [options] Override http request option.
10696
- * @throws {RequiredError}
10697
- */
10698
- listAvailablePrices(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>>;
10699
- /**
10700
- * Crée un nouveau compte client avec onboarding Stripe
10701
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
10702
- * @param {*} [options] Override http request option.
10703
- * @throws {RequiredError}
10704
- */
10705
- onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountOnboardingResponse>;
10706
- /**
10707
- * Route d\'inscription d\'un utilisateur client (publique)
10708
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
10709
- * @param {*} [options] Override http request option.
10710
- * @throws {RequiredError}
10711
- */
10712
- registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegisterResponse>;
10713
- };
10714
- /**
10715
- * Request parameters for getClientAccountById operation in ClientAccountsApi.
10716
- * @export
10717
- * @interface ClientAccountsApiGetClientAccountByIdRequest
10718
- */
10719
- export interface ClientAccountsApiGetClientAccountByIdRequest {
10720
- /**
10721
- * L\&#39;ID du compte client
10722
- * @type {string}
10723
- * @memberof ClientAccountsApiGetClientAccountById
10724
- */
10725
- readonly accountId: string;
10726
- }
10727
- /**
10728
- * Request parameters for onboardClientAccount operation in ClientAccountsApi.
10729
- * @export
10730
- * @interface ClientAccountsApiOnboardClientAccountRequest
10731
- */
10732
- export interface ClientAccountsApiOnboardClientAccountRequest {
10733
- /**
10734
- * Les données du compte à créer
10735
- * @type {ClientAccountOnboardingRequest}
10736
- * @memberof ClientAccountsApiOnboardClientAccount
10737
- */
10738
- readonly clientAccountOnboardingRequest: ClientAccountOnboardingRequest;
10739
- }
10740
- /**
10741
- * Request parameters for registerClientUser operation in ClientAccountsApi.
10742
- * @export
10743
- * @interface ClientAccountsApiRegisterClientUserRequest
10744
- */
10745
- export interface ClientAccountsApiRegisterClientUserRequest {
10746
- /**
10747
- *
10748
- * @type {ClientRegisterRequestBody}
10749
- * @memberof ClientAccountsApiRegisterClientUser
10750
- */
10751
- readonly clientRegisterRequestBody: ClientRegisterRequestBody;
10752
- }
10753
- /**
10754
- * ClientAccountsApi - object-oriented interface
10755
- * @export
10756
- * @class ClientAccountsApi
10757
- * @extends {BaseAPI}
10758
- */
10759
- export declare class ClientAccountsApi extends BaseAPI {
10760
- /**
10761
- * Informations de l\'utilisateur client authentifié (token clientAuth)
10762
- * @param {*} [options] Override http request option.
10763
- * @throws {RequiredError}
10764
- * @memberof ClientAccountsApi
10765
- */
10766
- clientAuthMe(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientMeResponse, any, {}>>;
10767
- /**
10768
- * Récupère le compte client par son ID
10769
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
10770
- * @param {*} [options] Override http request option.
10771
- * @throws {RequiredError}
10772
- * @memberof ClientAccountsApi
10773
- */
10774
- getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientAccountResponse, any, {}>>;
10775
- /**
10776
- * Récupère l\'abonnement actif du compte client authentifié
10777
- * @param {*} [options] Override http request option.
10778
- * @throws {RequiredError}
10779
- * @memberof ClientAccountsApi
10780
- */
10781
- getMyActiveSubscription(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ActiveSubscriptionResponse, any, {}>>;
10782
- /**
10783
- * Récupère le compte client de l\'utilisateur authentifié
10784
- * @param {*} [options] Override http request option.
10785
- * @throws {RequiredError}
10786
- * @memberof ClientAccountsApi
10787
- */
10788
- getMyClientAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientAccountResponse, any, {}>>;
10789
- /**
10790
- * Récupère l\'historique des abonnements du compte client authentifié
10791
- * @param {*} [options] Override http request option.
10792
- * @throws {RequiredError}
10793
- * @memberof ClientAccountsApi
10794
- */
10795
- getSubscriptionsHistory(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSubscriptionsHistory200Response, any, {}>>;
10796
- /**
10797
- * Liste les prix Stripe disponibles pour les abonnements client
10798
- * @param {*} [options] Override http request option.
10799
- * @throws {RequiredError}
10800
- * @memberof ClientAccountsApi
10801
- */
10802
- listAvailablePrices(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any[], any, {}>>;
10803
- /**
10804
- * Crée un nouveau compte client avec onboarding Stripe
10805
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
10806
- * @param {*} [options] Override http request option.
10807
- * @throws {RequiredError}
10808
- * @memberof ClientAccountsApi
10809
- */
10810
- onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientAccountOnboardingResponse, any, {}>>;
10309
+ getManagedClubs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ManagedClubsResponse, any, {}>>;
10811
10310
  /**
10812
- * Route d\'inscription d\'un utilisateur client (publique)
10813
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
10311
+ * 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
10312
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
10814
10313
  * @param {*} [options] Override http request option.
10815
10314
  * @throws {RequiredError}
10816
- * @memberof ClientAccountsApi
10315
+ * @memberof ClientApi
10817
10316
  */
10818
- registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientRegisterResponse, any, {}>>;
10317
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientFullOnboardingResponse, any, {}>>;
10819
10318
  }
10820
10319
  /**
10821
10320
  * ClubAnalyticsApi - axios parameter creator