@tennac-booking/sdk 1.0.207 → 1.0.210

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.
@@ -5,10 +5,11 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
9
+ **isCreatorPayingAll** | **boolean** | Indique si le joueur qui rejoint paie pour tous les joueurs qu\'il ajoute (incompatible avec playerShares) | [optional] [default to undefined]
8
10
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
9
11
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
10
12
  **creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
11
- **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des autres joueurs qui rejoignent également (n\'inclut PAS le joueur qui fait la requête, chacun paie sa part) | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
@@ -16,10 +17,11 @@ Name | Type | Description | Notes
16
17
  import { JoinOpenBookingRequest } from '@tennac-booking/sdk';
17
18
 
18
19
  const instance: JoinOpenBookingRequest = {
20
+ playerShares,
21
+ isCreatorPayingAll,
19
22
  paymentMethod,
20
23
  useDefaultPaymentMethod,
21
24
  creditToUseInCents,
22
- players,
23
25
  };
24
26
  ```
25
27
 
@@ -0,0 +1,24 @@
1
+ # OpenBookingBasePriceResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **basePricePerPlayer** | **number** | Prix de base par joueur (en centimes) pour rejoindre | [default to undefined]
9
+ **totalBasePrice** | **number** | Prix total de base de la réservation (en centimes) | [default to undefined]
10
+ **availableSlots** | **number** | Nombre de places restantes | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OpenBookingBasePriceResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: OpenBookingBasePriceResponse = {
18
+ basePricePerPlayer,
19
+ totalBasePrice,
20
+ availableSlots,
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)
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
11
11
  **players** | [**Array<OpenBookingPlayerInfo>**](OpenBookingPlayerInfo.md) | Liste des joueurs avec leurs infos | [default to undefined]
12
12
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
13
13
  **totalPrice** | **number** | Prix total en euros | [default to undefined]
14
- **slots** | [**Array<OpenBookingSlotInfo>**](OpenBookingSlotInfo.md) | Informations des créneaux | [default to undefined]
14
+ **startDate** | **string** | Date de début du premier créneau | [default to undefined]
15
+ **endDate** | **string** | Date de fin du dernier créneau | [default to undefined]
15
16
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
16
17
  **createdAt** | **string** | Date de création | [default to undefined]
17
18
  **updatedAt** | **string** | Date de mise à jour | [default to undefined]
@@ -34,7 +35,8 @@ const instance: OpenBookingInfo = {
34
35
  players,
35
36
  status,
36
37
  totalPrice,
37
- slots,
38
+ startDate,
39
+ endDate,
38
40
  isCreatorPayingAll,
39
41
  createdAt,
40
42
  updatedAt,
@@ -0,0 +1,26 @@
1
+ # OpenBookingJoinEstimateResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **basePricePerPlayer** | **number** | Prix de base par joueur (en centimes) | [default to undefined]
9
+ **playersPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | Détails de prix pour chaque joueur qui rejoint | [default to undefined]
10
+ **availableCreditsInCents** | **number** | Crédits disponibles pour l\'utilisateur qui demande à rejoindre (en centimes) | [default to undefined]
11
+ **availableSlots** | **number** | Nombre de places restantes | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { OpenBookingJoinEstimateResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: OpenBookingJoinEstimateResponse = {
19
+ basePricePerPlayer,
20
+ playersPrices,
21
+ availableCreditsInCents,
22
+ availableSlots,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.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.201
7
+ * The version of the OpenAPI document: 1.0.210
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.207",
3
+ "version": "1.0.210",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,38 +0,0 @@
1
- # JoinPriceEstimateResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **bookingId** | **string** | ID de la réservation | [default to undefined]
9
- **basePrice** | **number** | Prix de base sans réductions (en centimes) | [default to undefined]
10
- **priceAfterSubscription** | **number** | Prix après application de l\'abonnement (en centimes) | [default to undefined]
11
- **subscriptionDiscount** | **number** | Montant de la réduction d\'abonnement (en centimes) | [default to undefined]
12
- **subscriptionInfo** | [**JoinPriceEstimateResponseSubscriptionInfo**](JoinPriceEstimateResponseSubscriptionInfo.md) | | [optional] [default to undefined]
13
- **availableCreditsInCents** | **number** | Crédits disponibles pour le joueur dans ce club (en centimes) | [default to undefined]
14
- **creditToUseInCents** | **number** | Crédits qui seront utilisés (en centimes) | [default to undefined]
15
- **finalPriceInCents** | **number** | Prix final après toutes les réductions et crédits (en centimes) | [default to undefined]
16
- **canJoin** | **boolean** | Indique si le joueur peut rejoindre la réservation | [default to undefined]
17
- **reason** | **string** | Raison si le joueur ne peut pas rejoindre | [optional] [default to undefined]
18
-
19
- ## Example
20
-
21
- ```typescript
22
- import { JoinPriceEstimateResponse } from '@tennac-booking/sdk';
23
-
24
- const instance: JoinPriceEstimateResponse = {
25
- bookingId,
26
- basePrice,
27
- priceAfterSubscription,
28
- subscriptionDiscount,
29
- subscriptionInfo,
30
- availableCreditsInCents,
31
- creditToUseInCents,
32
- finalPriceInCents,
33
- canJoin,
34
- reason,
35
- };
36
- ```
37
-
38
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,25 +0,0 @@
1
- # JoinPriceEstimateResponseSubscriptionInfo
2
-
3
- Informations sur l\'abonnement du joueur
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **subscriptionName** | **string** | | [optional] [default to undefined]
10
- **discountPercentage** | **number** | | [optional] [default to undefined]
11
- **hasSubscription** | **boolean** | | [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { JoinPriceEstimateResponseSubscriptionInfo } from '@tennac-booking/sdk';
17
-
18
- const instance: JoinPriceEstimateResponseSubscriptionInfo = {
19
- subscriptionName,
20
- discountPercentage,
21
- hasSubscription,
22
- };
23
- ```
24
-
25
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,24 +0,0 @@
1
- # OpenBookingSlotInfo
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | ID du slot | [default to undefined]
9
- **startDate** | **string** | Date de début ISO | [default to undefined]
10
- **endDate** | **string** | Date de fin ISO | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { OpenBookingSlotInfo } from '@tennac-booking/sdk';
16
-
17
- const instance: OpenBookingSlotInfo = {
18
- id,
19
- startDate,
20
- endDate,
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)