@tennac-booking/sdk 1.0.115 → 1.0.116

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 (177) hide show
  1. package/.openapi-generator/FILES +305 -300
  2. package/README.md +10 -2
  3. package/api.ts +352 -21
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +273 -21
  8. package/dist/api.js +155 -25
  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 +273 -21
  16. package/dist/esm/api.js +151 -21
  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/ActiveClub.md +24 -0
  28. package/docs/ActiveClubListResponse.md +20 -0
  29. package/docs/AddClubMemberResponse.md +22 -0
  30. package/docs/AddFavoriteClubRequestBody.md +20 -0
  31. package/docs/AddFavoritePlayerRequestBody.md +20 -0
  32. package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
  33. package/docs/AddPaymentMethodSetupResponse.md +24 -0
  34. package/docs/AdminClubAnalyticsApi.md +249 -0
  35. package/docs/AdminClubSlotsApi.md +182 -0
  36. package/docs/AdminClubSubscriptionsApi.md +394 -0
  37. package/docs/AdminClubsApi.md +170 -0
  38. package/docs/ApiErrorResponse.md +22 -0
  39. package/docs/BlockSlotResponse.md +22 -0
  40. package/docs/Booking.md +32 -0
  41. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
  42. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
  43. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
  44. package/docs/BookingPopulatedSlotId.md +26 -0
  45. package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
  46. package/docs/BookingPopulatedUserId.md +24 -0
  47. package/docs/BookingsUserApi.md +1 -1
  48. package/docs/CancelBookingResponseBooking.md +30 -0
  49. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
  50. package/docs/ClientApi.md +49 -2
  51. package/docs/ClientFullOnboardingResponseClub.md +2 -0
  52. package/docs/ClientOnboardingRequestBody.md +2 -0
  53. package/docs/ClientSubscription.md +31 -0
  54. package/docs/ClientSubscriptionItem.md +25 -0
  55. package/docs/ClientSubscriptionsResponse.md +21 -0
  56. package/docs/Club.md +46 -0
  57. package/docs/ClubInfoResponse.md +48 -0
  58. package/docs/ClubListResponse.md +22 -0
  59. package/docs/ClubMember.md +34 -0
  60. package/docs/ClubMembersResponse.md +22 -0
  61. package/docs/ClubRole.md +30 -0
  62. package/docs/ClubRolesResponse.md +22 -0
  63. package/docs/ClubSettings.md +40 -0
  64. package/docs/ClubsApi.md +2 -2
  65. package/docs/ClubsResponse.md +22 -0
  66. package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
  67. package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
  68. package/docs/Court.md +32 -0
  69. package/docs/CourtsResponse.md +22 -0
  70. package/docs/CreateClubRoleRequestBody.md +24 -0
  71. package/docs/CreateClubSettingsRequest.md +28 -0
  72. package/docs/CreatePriceRequest.md +26 -0
  73. package/docs/DeleteClub200Response.md +20 -0
  74. package/docs/DeleteClubRole200Response.md +20 -0
  75. package/docs/DeleteClubSettingsRequest.md +20 -0
  76. package/docs/DeleteEvent200Response.md +20 -0
  77. package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
  78. package/docs/DeleteSlotsResponse.md +20 -0
  79. package/docs/DeleteSport200Response.md +20 -0
  80. package/docs/EstimateEventPrice200Response.md +26 -0
  81. package/docs/EstimateEventPriceRequest.md +22 -0
  82. package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
  83. package/docs/Event.md +40 -0
  84. package/docs/EventBooking.md +32 -0
  85. package/docs/EventRegistrationRequest.md +22 -0
  86. package/docs/EventsApi.md +58 -0
  87. package/docs/FavoriteClubItem.md +26 -0
  88. package/docs/FavoriteClubResponse.md +22 -0
  89. package/docs/FavoritePlayerPublic.md +28 -0
  90. package/docs/FavoritePlayersIdsResponse.md +22 -0
  91. package/docs/FrequentlyPlayedWithItem.md +28 -0
  92. package/docs/FrequentlyVisitedClubItem.md +24 -0
  93. package/docs/GenerateSlotsResponse.md +20 -0
  94. package/docs/GetActiveClubs200Response.md +20 -0
  95. package/docs/GetClubInfos200Response.md +30 -0
  96. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  97. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
  98. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  99. package/docs/GetPublishedEventsByClubId200Response.md +20 -0
  100. package/docs/GetUserRolesResponse.md +20 -0
  101. package/docs/GetUserRolesResponseRolesInner.md +26 -0
  102. package/docs/GetUserSubscriptionsResponse.md +22 -0
  103. package/docs/GoogleSignInRequestBody.md +20 -0
  104. package/docs/GoogleSignInResponse.md +24 -0
  105. package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
  106. package/docs/InitiateSubscriptionSessionResponse.md +22 -0
  107. package/docs/InvoicesResponse.md +22 -0
  108. package/docs/InvoicesResponseInvoicesInner.md +34 -0
  109. package/docs/InvoicesResponsePagination.md +26 -0
  110. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
  111. package/docs/LevelBySportsItem.md +22 -0
  112. package/docs/ManagerBookingsApi.md +125 -0
  113. package/docs/ManagerCancelBookingResponseBooking.md +30 -0
  114. package/docs/ManagerClubCourtsApi.md +108 -0
  115. package/docs/ManagerClubRolesApi.md +268 -0
  116. package/docs/ManagerClubSlotsApi.md +119 -0
  117. package/docs/ManagerClubSubscriptionsApi.md +387 -0
  118. package/docs/ManagerClubsApi.md +253 -0
  119. package/docs/ManagerEventResponse.md +22 -0
  120. package/docs/ManagerEventsApi.md +227 -0
  121. package/docs/ManagerSportsApi.md +174 -0
  122. package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
  123. package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
  124. package/docs/PriceResponse.md +32 -0
  125. package/docs/ProfileVisibilityResponse.md +20 -0
  126. package/docs/PublicClubUser.md +46 -0
  127. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
  128. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
  129. package/docs/PublicClubUserLevelBySportsInner.md +22 -0
  130. package/docs/RegisterForEvent201Response.md +20 -0
  131. package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
  132. package/docs/SetupPaymentMethodRequestBody.md +20 -0
  133. package/docs/SetupPaymentMethodResponse.md +24 -0
  134. package/docs/Slot.md +24 -0
  135. package/docs/SlotException.md +26 -0
  136. package/docs/SlotResponse.md +34 -0
  137. package/docs/SlotsResponse.md +22 -0
  138. package/docs/Sport.md +24 -0
  139. package/docs/SportsResponse.md +22 -0
  140. package/docs/StaffClubAnalyticsApi.md +104 -0
  141. package/docs/StaffClubBookingsApi.md +52 -0
  142. package/docs/StaffClubsApi.md +100 -0
  143. package/docs/StaffEventResponse.md +20 -0
  144. package/docs/StaffEventsApi.md +54 -0
  145. package/docs/StaffProfileApi.md +54 -0
  146. package/docs/StripeStatus.md +16 -0
  147. package/docs/SubscribeToClubRequestBody.md +22 -0
  148. package/docs/SubscriptionPlan.md +36 -0
  149. package/docs/SubscriptionResponse.md +36 -0
  150. package/docs/UpdateClubRoleRequestBody.md +24 -0
  151. package/docs/UpdateClubSettingsRequest.md +28 -0
  152. package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
  153. package/docs/UpdateCustomerResponseCustomer.md +28 -0
  154. package/docs/UpdateProfilePictureRequestBody.md +20 -0
  155. package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
  156. package/docs/UpdateSubscriptionPlanRequest.md +24 -0
  157. package/docs/UpdateSubscriptionPlanResponse.md +22 -0
  158. package/docs/UpdateUserCityRequestBody.md +20 -0
  159. package/docs/UpdateUserDescriptionRequestBody.md +20 -0
  160. package/docs/User.md +40 -0
  161. package/docs/UserAuthenticationApi.md +226 -0
  162. package/docs/UserBookingsApi.md +120 -0
  163. package/docs/UserCityResponse.md +20 -0
  164. package/docs/UserClubCourtsApi.md +64 -0
  165. package/docs/UserClubSlotsApi.md +181 -0
  166. package/docs/UserClubSportsApi.md +60 -0
  167. package/docs/UserClubsApi.md +53 -0
  168. package/docs/UserDescriptionResponse.md +20 -0
  169. package/docs/UserFavoriteClubsResponse.md +20 -0
  170. package/docs/UserPaymentApi.md +176 -0
  171. package/docs/UserProfileApi.md +1201 -0
  172. package/docs/UserResponse.md +38 -0
  173. package/docs/UserSubscriptionsApi.md +222 -0
  174. package/docs/UsersResponse.md +22 -0
  175. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
  176. package/index.ts +1 -1
  177. package/package.json +1 -1
package/dist/esm/api.js 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.110
7
+ * The version of the OpenAPI document: 1.0.116
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -63,6 +63,10 @@ export const CaptureResultStatusEnum = {
63
63
  Captured: 'captured',
64
64
  Failed: 'failed'
65
65
  };
66
+ export const ClientOnboardingRequestBodyClubTypeEnum = {
67
+ Public: 'public',
68
+ School: 'school'
69
+ };
66
70
  export const ClubRoleResponseRoleEnum = {
67
71
  Admin: 'admin',
68
72
  Manager: 'manager',
@@ -1274,7 +1278,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
1274
1278
  };
1275
1279
  }),
1276
1280
  /**
1277
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1281
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1278
1282
  * @param {CreateBookingRequest} createBookingRequest
1279
1283
  * @param {*} [options] Override http request option.
1280
1284
  * @throws {RequiredError}
@@ -1330,7 +1334,7 @@ export const BookingsUserApiFp = function (configuration) {
1330
1334
  });
1331
1335
  },
1332
1336
  /**
1333
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1337
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1334
1338
  * @param {CreateBookingRequest} createBookingRequest
1335
1339
  * @param {*} [options] Override http request option.
1336
1340
  * @throws {RequiredError}
@@ -1363,7 +1367,7 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
1363
1367
  return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1364
1368
  },
1365
1369
  /**
1366
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1370
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1367
1371
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
1368
1372
  * @param {*} [options] Override http request option.
1369
1373
  * @throws {RequiredError}
@@ -1391,7 +1395,7 @@ export class BookingsUserApi extends BaseAPI {
1391
1395
  return BookingsUserApiFp(this.configuration).cancelBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1392
1396
  }
1393
1397
  /**
1394
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1398
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
1395
1399
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
1396
1400
  * @param {*} [options] Override http request option.
1397
1401
  * @throws {RequiredError}
@@ -1408,7 +1412,7 @@ export class BookingsUserApi extends BaseAPI {
1408
1412
  export const ClientApiAxiosParamCreator = function (configuration) {
1409
1413
  return {
1410
1414
  /**
1411
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1415
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1412
1416
  * @param {ClientRegisterRequest} clientRegisterRequest
1413
1417
  * @param {*} [options] Override http request option.
1414
1418
  * @throws {RequiredError}
@@ -1436,6 +1440,33 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1436
1440
  options: localVarRequestOptions,
1437
1441
  };
1438
1442
  }),
1443
+ /**
1444
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
1445
+ * @param {*} [options] Override http request option.
1446
+ * @throws {RequiredError}
1447
+ */
1448
+ getClientSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1449
+ const localVarPath = `/clients/subscriptions`;
1450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1452
+ let baseOptions;
1453
+ if (configuration) {
1454
+ baseOptions = configuration.baseOptions;
1455
+ }
1456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1457
+ const localVarHeaderParameter = {};
1458
+ const localVarQueryParameter = {};
1459
+ // authentication clientAuth required
1460
+ // http bearer authentication required
1461
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1465
+ return {
1466
+ url: toPathString(localVarUrlObj),
1467
+ options: localVarRequestOptions,
1468
+ };
1469
+ }),
1439
1470
  /**
1440
1471
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1441
1472
  * @param {*} [options] Override http request option.
@@ -1464,7 +1495,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1464
1495
  };
1465
1496
  }),
1466
1497
  /**
1467
- * 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
1498
+ * 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
1468
1499
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1469
1500
  * @param {*} [options] Override http request option.
1470
1501
  * @throws {RequiredError}
@@ -1505,7 +1536,7 @@ export const ClientApiFp = function (configuration) {
1505
1536
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
1506
1537
  return {
1507
1538
  /**
1508
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1539
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1509
1540
  * @param {ClientRegisterRequest} clientRegisterRequest
1510
1541
  * @param {*} [options] Override http request option.
1511
1542
  * @throws {RequiredError}
@@ -1519,6 +1550,20 @@ export const ClientApiFp = function (configuration) {
1519
1550
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1520
1551
  });
1521
1552
  },
1553
+ /**
1554
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ getClientSubscriptions(options) {
1559
+ return __awaiter(this, void 0, void 0, function* () {
1560
+ var _a, _b, _c;
1561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientSubscriptions(options);
1562
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1563
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.getClientSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1565
+ });
1566
+ },
1522
1567
  /**
1523
1568
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1524
1569
  * @param {*} [options] Override http request option.
@@ -1534,7 +1579,7 @@ export const ClientApiFp = function (configuration) {
1534
1579
  });
1535
1580
  },
1536
1581
  /**
1537
- * 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
1582
+ * 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
1538
1583
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1539
1584
  * @param {*} [options] Override http request option.
1540
1585
  * @throws {RequiredError}
@@ -1558,7 +1603,7 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1558
1603
  const localVarFp = ClientApiFp(configuration);
1559
1604
  return {
1560
1605
  /**
1561
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1606
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1562
1607
  * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
1563
1608
  * @param {*} [options] Override http request option.
1564
1609
  * @throws {RequiredError}
@@ -1566,6 +1611,14 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1566
1611
  clientRegister(requestParameters, options) {
1567
1612
  return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
1568
1613
  },
1614
+ /**
1615
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
1616
+ * @param {*} [options] Override http request option.
1617
+ * @throws {RequiredError}
1618
+ */
1619
+ getClientSubscriptions(options) {
1620
+ return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
1621
+ },
1569
1622
  /**
1570
1623
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1571
1624
  * @param {*} [options] Override http request option.
@@ -1575,7 +1628,7 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1575
1628
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
1576
1629
  },
1577
1630
  /**
1578
- * 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
1631
+ * 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
1579
1632
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1580
1633
  * @param {*} [options] Override http request option.
1581
1634
  * @throws {RequiredError}
@@ -1593,7 +1646,7 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1593
1646
  */
1594
1647
  export class ClientApi extends BaseAPI {
1595
1648
  /**
1596
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1649
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1597
1650
  * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
1598
1651
  * @param {*} [options] Override http request option.
1599
1652
  * @throws {RequiredError}
@@ -1602,6 +1655,15 @@ export class ClientApi extends BaseAPI {
1602
1655
  clientRegister(requestParameters, options) {
1603
1656
  return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
1604
1657
  }
1658
+ /**
1659
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
1660
+ * @param {*} [options] Override http request option.
1661
+ * @throws {RequiredError}
1662
+ * @memberof ClientApi
1663
+ */
1664
+ getClientSubscriptions(options) {
1665
+ return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
1666
+ }
1605
1667
  /**
1606
1668
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1607
1669
  * @param {*} [options] Override http request option.
@@ -1612,7 +1674,7 @@ export class ClientApi extends BaseAPI {
1612
1674
  return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
1613
1675
  }
1614
1676
  /**
1615
- * 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
1677
+ * 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
1616
1678
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1617
1679
  * @param {*} [options] Override http request option.
1618
1680
  * @throws {RequiredError}
@@ -3840,7 +3902,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
3840
3902
  export const ClubsApiAxiosParamCreator = function (configuration) {
3841
3903
  return {
3842
3904
  /**
3843
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
3905
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
3844
3906
  * @param {*} [options] Override http request option.
3845
3907
  * @throws {RequiredError}
3846
3908
  */
@@ -4095,7 +4157,7 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
4095
4157
  };
4096
4158
  }),
4097
4159
  /**
4098
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4160
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4099
4161
  * @param {*} [options] Override http request option.
4100
4162
  * @throws {RequiredError}
4101
4163
  */
@@ -4244,7 +4306,7 @@ export const ClubsApiFp = function (configuration) {
4244
4306
  const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
4245
4307
  return {
4246
4308
  /**
4247
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4309
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4248
4310
  * @param {*} [options] Override http request option.
4249
4311
  * @throws {RequiredError}
4250
4312
  */
@@ -4379,7 +4441,7 @@ export const ClubsApiFp = function (configuration) {
4379
4441
  });
4380
4442
  },
4381
4443
  /**
4382
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4444
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4383
4445
  * @param {*} [options] Override http request option.
4384
4446
  * @throws {RequiredError}
4385
4447
  */
@@ -4463,7 +4525,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
4463
4525
  const localVarFp = ClubsApiFp(configuration);
4464
4526
  return {
4465
4527
  /**
4466
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4528
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4467
4529
  * @param {*} [options] Override http request option.
4468
4530
  * @throws {RequiredError}
4469
4531
  */
@@ -4541,7 +4603,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
4541
4603
  return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
4542
4604
  },
4543
4605
  /**
4544
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4606
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4545
4607
  * @param {*} [options] Override http request option.
4546
4608
  * @throws {RequiredError}
4547
4609
  */
@@ -4594,7 +4656,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
4594
4656
  */
4595
4657
  export class ClubsApi extends BaseAPI {
4596
4658
  /**
4597
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4659
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4598
4660
  * @param {*} [options] Override http request option.
4599
4661
  * @throws {RequiredError}
4600
4662
  * @memberof ClubsApi
@@ -4681,7 +4743,7 @@ export class ClubsApi extends BaseAPI {
4681
4743
  return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4682
4744
  }
4683
4745
  /**
4684
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4746
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
4685
4747
  * @param {*} [options] Override http request option.
4686
4748
  * @throws {RequiredError}
4687
4749
  * @memberof ClubsApi
@@ -6909,6 +6971,39 @@ export class DefaultApi extends BaseAPI {
6909
6971
  */
6910
6972
  export const EventsApiAxiosParamCreator = function (configuration) {
6911
6973
  return {
6974
+ /**
6975
+ * Estime le prix de participation à un événement pour une liste de joueurs
6976
+ * @param {string} eventId
6977
+ * @param {EstimateEventPriceRequest} estimateEventPriceRequest
6978
+ * @param {*} [options] Override http request option.
6979
+ * @throws {RequiredError}
6980
+ */
6981
+ estimateEventPrice: (eventId_1, estimateEventPriceRequest_1, ...args_1) => __awaiter(this, [eventId_1, estimateEventPriceRequest_1, ...args_1], void 0, function* (eventId, estimateEventPriceRequest, options = {}) {
6982
+ // verify required parameter 'eventId' is not null or undefined
6983
+ assertParamExists('estimateEventPrice', 'eventId', eventId);
6984
+ // verify required parameter 'estimateEventPriceRequest' is not null or undefined
6985
+ assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest);
6986
+ const localVarPath = `/api/events/{eventId}/estimate-price`
6987
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
6988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6990
+ let baseOptions;
6991
+ if (configuration) {
6992
+ baseOptions = configuration.baseOptions;
6993
+ }
6994
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6995
+ const localVarHeaderParameter = {};
6996
+ const localVarQueryParameter = {};
6997
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6998
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6999
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7000
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7001
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration);
7002
+ return {
7003
+ url: toPathString(localVarUrlObj),
7004
+ options: localVarRequestOptions,
7005
+ };
7006
+ }),
6912
7007
  /**
6913
7008
  * Get a specific event by ID
6914
7009
  * @param {string} eventId
@@ -7053,6 +7148,22 @@ export const EventsApiAxiosParamCreator = function (configuration) {
7053
7148
  export const EventsApiFp = function (configuration) {
7054
7149
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
7055
7150
  return {
7151
+ /**
7152
+ * Estime le prix de participation à un événement pour une liste de joueurs
7153
+ * @param {string} eventId
7154
+ * @param {EstimateEventPriceRequest} estimateEventPriceRequest
7155
+ * @param {*} [options] Override http request option.
7156
+ * @throws {RequiredError}
7157
+ */
7158
+ estimateEventPrice(eventId, estimateEventPriceRequest, options) {
7159
+ return __awaiter(this, void 0, void 0, function* () {
7160
+ var _a, _b, _c;
7161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
7162
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7163
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.estimateEventPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7164
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7165
+ });
7166
+ },
7056
7167
  /**
7057
7168
  * Get a specific event by ID
7058
7169
  * @param {string} eventId
@@ -7126,6 +7237,15 @@ export const EventsApiFp = function (configuration) {
7126
7237
  export const EventsApiFactory = function (configuration, basePath, axios) {
7127
7238
  const localVarFp = EventsApiFp(configuration);
7128
7239
  return {
7240
+ /**
7241
+ * Estime le prix de participation à un événement pour une liste de joueurs
7242
+ * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
7243
+ * @param {*} [options] Override http request option.
7244
+ * @throws {RequiredError}
7245
+ */
7246
+ estimateEventPrice(requestParameters, options) {
7247
+ return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
7248
+ },
7129
7249
  /**
7130
7250
  * Get a specific event by ID
7131
7251
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -7171,6 +7291,16 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
7171
7291
  * @extends {BaseAPI}
7172
7292
  */
7173
7293
  export class EventsApi extends BaseAPI {
7294
+ /**
7295
+ * Estime le prix de participation à un événement pour une liste de joueurs
7296
+ * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
7297
+ * @param {*} [options] Override http request option.
7298
+ * @throws {RequiredError}
7299
+ * @memberof EventsApi
7300
+ */
7301
+ estimateEventPrice(requestParameters, options) {
7302
+ return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
7303
+ }
7174
7304
  /**
7175
7305
  * Get a specific event by ID
7176
7306
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.110
5
+ * The version of the OpenAPI document: 1.0.116
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js 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.110
7
+ * The version of the OpenAPI document: 1.0.116
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.110
5
+ * The version of the OpenAPI document: 1.0.116
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.110
7
+ * The version of the OpenAPI document: 1.0.116
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.110
5
+ * The version of the OpenAPI document: 1.0.116
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.110
7
+ * The version of the OpenAPI document: 1.0.116
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.110
5
+ * The version of the OpenAPI document: 1.0.116
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js 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.110
7
+ * The version of the OpenAPI document: 1.0.116
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.110
5
+ * The version of the OpenAPI document: 1.0.116
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.110
8
+ * The version of the OpenAPI document: 1.0.116
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,24 @@
1
+ # ActiveClub
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **paymentFeature** | **boolean** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ActiveClub } from '@tennac-booking/sdk';
16
+
17
+ const instance: ActiveClub = {
18
+ _id,
19
+ name,
20
+ paymentFeature,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # ActiveClubListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubs** | [**Array<ActiveClub>**](ActiveClub.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ActiveClubListResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: ActiveClubListResponse = {
16
+ clubs,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # AddClubMemberResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **member** | [**ClubMember**](ClubMember.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AddClubMemberResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: AddClubMemberResponse = {
17
+ message,
18
+ member,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # AddFavoriteClubRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club à ajouter aux favoris | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { AddFavoriteClubRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: AddFavoriteClubRequestBody = {
16
+ clubId,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # AddFavoritePlayerRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **favoritePlayerId** | **string** | ID de l\'utilisateur à ajouter en favori | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { AddFavoritePlayerRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: AddFavoritePlayerRequestBody = {
16
+ favoritePlayerId,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # AddPaymentMethodSetupRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paymentMethodId** | **string** | ID Stripe du moyen de paiement à ajouter | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { AddPaymentMethodSetupRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: AddPaymentMethodSetupRequestBody = {
16
+ paymentMethodId,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AddPaymentMethodSetupResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
10
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AddPaymentMethodSetupResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: AddPaymentMethodSetupResponse = {
18
+ message,
19
+ paymentMethods,
20
+ defaultPaymentMethodId,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)