@tennac-booking/sdk 1.0.71 → 1.0.72

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,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
8
+ |[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
8
9
  |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
9
10
 
10
11
  # **getBookingHistory**
@@ -58,6 +59,57 @@ const { status, data } = await apiInstance.getBookingHistory(
58
59
 
59
60
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
60
61
 
62
+ # **getBookingPrice**
63
+ > Array<PlayerPrice> getBookingPrice(bookingPriceBody)
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ BookingsApi,
71
+ Configuration,
72
+ BookingPriceBody
73
+ } from '@tennac-booking/sdk';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new BookingsApi(configuration);
77
+
78
+ let bookingPriceBody: BookingPriceBody; //
79
+
80
+ const { status, data } = await apiInstance.getBookingPrice(
81
+ bookingPriceBody
82
+ );
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ |Name | Type | Description | Notes|
88
+ |------------- | ------------- | ------------- | -------------|
89
+ | **bookingPriceBody** | **BookingPriceBody**| | |
90
+
91
+
92
+ ### Return type
93
+
94
+ **Array<PlayerPrice>**
95
+
96
+ ### Authorization
97
+
98
+ [bearerAuth](../README.md#bearerAuth)
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json
103
+ - **Accept**: application/json
104
+
105
+
106
+ ### HTTP response details
107
+ | Status code | Description | Response headers |
108
+ |-------------|-------------|------------------|
109
+ |**200** | Réservations journalières récupérées | - |
110
+
111
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
112
+
61
113
  # **getQuickReservationSlots**
62
114
  > QuickReservationResponse getQuickReservationSlots()
63
115
 
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
19
19
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
20
20
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \&quot;no show\&quot; est activée | [optional] [default to undefined]
21
21
  **sports** | **Array&lt;string&gt;** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
22
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
23
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
24
+ **cancellationLimitHours** | **number** | Limite d\&#39;annulation en heures | [optional] [default to undefined]
25
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
22
26
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
23
27
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
24
28
 
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
42
46
  clubDashBoardUrl,
43
47
  isNoShowEnabled,
44
48
  sports,
49
+ allowMultipleBookingsAtTheSameTime,
50
+ sameTimeBookingsLimit,
51
+ cancellationLimitHours,
52
+ maxWeeklyBookings,
45
53
  createdAt,
46
54
  updatedAt,
47
55
  };
@@ -20,6 +20,10 @@ Name | Type | Description | Notes
20
20
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
21
21
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \&quot;no show\&quot; est activée | [optional] [default to undefined]
22
22
  **sports** | **Array&lt;string&gt;** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
23
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
24
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
25
+ **cancellationLimitHours** | **number** | Limite d\&#39;annulation en heures | [optional] [default to undefined]
26
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
23
27
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
24
28
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
25
29
 
@@ -43,6 +47,10 @@ const instance: PartialClubResponse = {
43
47
  clubDashBoardUrl,
44
48
  isNoShowEnabled,
45
49
  sports,
50
+ allowMultipleBookingsAtTheSameTime,
51
+ sameTimeBookingsLimit,
52
+ cancellationLimitHours,
53
+ maxWeeklyBookings,
46
54
  createdAt,
47
55
  updatedAt,
48
56
  };
@@ -0,0 +1,30 @@
1
+ # PlayerPrice
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **subscriptions** | [**Array&lt;SubscriptionInfo&gt;**](SubscriptionInfo.md) | | [default to undefined]
12
+ **creditAvailablesInCents** | **number** | | [optional] [default to undefined]
13
+ **price** | **number** | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { PlayerPrice } from '@tennac-booking/sdk';
19
+
20
+ const instance: PlayerPrice = {
21
+ playerId,
22
+ firstName,
23
+ lastName,
24
+ subscriptions,
25
+ creditAvailablesInCents,
26
+ price,
27
+ };
28
+ ```
29
+
30
+ [[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
+ # SubscriptionInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptionPlanName** | **string** | | [optional] [default to undefined]
9
+ **subscriptionDescription** | **string** | | [optional] [default to undefined]
10
+ **reducedAmountInCents** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SubscriptionInfo } from '@tennac-booking/sdk';
16
+
17
+ const instance: SubscriptionInfo = {
18
+ subscriptionPlanName,
19
+ subscriptionDescription,
20
+ reducedAmountInCents,
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)
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.71
7
+ * The version of the OpenAPI document: 1.0.72
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.71",
3
+ "version": "1.0.72",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {