@tennac-booking/sdk 1.0.23 → 1.0.25

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 (53) hide show
  1. package/.openapi-generator/FILES +16 -2
  2. package/README.md +31 -7
  3. package/api.ts +1397 -512
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +806 -259
  8. package/dist/api.js +964 -420
  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 +806 -259
  16. package/dist/esm/api.js +962 -414
  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/AddFavoriteClubRequestBody.md +20 -0
  28. package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
  29. package/docs/AddPaymentMethodSetupResponse.md +24 -0
  30. package/docs/BlockSlotResponse.md +1 -1
  31. package/docs/ClubSettings.md +14 -8
  32. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -2
  33. package/docs/{DeleteClubSettings200Response.md → FavoriteClubResponse.md} +5 -3
  34. package/docs/FrequentlyPlayedWithItem.md +28 -0
  35. package/docs/FrequentlyVisitedClubItem.md +24 -0
  36. package/docs/LevelBySportsItem.md +22 -0
  37. package/docs/ProfilePictureResponse.md +20 -0
  38. package/docs/ProfileVisibilityResponse.md +20 -0
  39. package/docs/SetupPaymentMethodRequestBody.md +0 -2
  40. package/docs/StaffClubsApi.md +56 -0
  41. package/docs/UpdateLevelBySportsRequestBody.md +20 -0
  42. package/docs/UpdateProfilePictureRequestBody.md +20 -0
  43. package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
  44. package/docs/UpdateUserCityRequestBody.md +20 -0
  45. package/docs/UpdateUserDescriptionRequestBody.md +20 -0
  46. package/docs/UserApi.md +0 -56
  47. package/docs/UserCityResponse.md +20 -0
  48. package/docs/UserDescriptionResponse.md +20 -0
  49. package/docs/UserPaymentApi.md +55 -0
  50. package/docs/UserProfileApi.md +556 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
  53. package/docs/ManagerClubSettingsApi.md +0 -172
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.23
5
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.23
7
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.23
5
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.23
7
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.23
5
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.23
7
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.23
5
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.23
7
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.23
5
+ * The version of the OpenAPI document: 1.0.25
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
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.23
8
+ * The version of the OpenAPI document: 1.0.25
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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
+ # 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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | Message de confirmation | [optional] [default to undefined]
8
+ **message** | **string** | | [optional] [default to undefined]
9
9
  **slot** | [**Slot**](Slot.md) | | [optional] [default to undefined]
10
10
 
11
11
  ## Example
@@ -7,10 +7,13 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [optional] [default to undefined]
9
9
  **clubId** | **string** | | [optional] [default to undefined]
10
- **reservationStartTime** | **string** | | [optional] [default to undefined]
11
- **reservationEndTime** | **string** | | [optional] [default to undefined]
12
- **maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
13
- **allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
10
+ **maxWeeklyBookings** | **number** | | [optional] [default to undefined]
11
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | | [optional] [default to undefined]
12
+ **sameTimeBookingsLimit** | **number** | | [optional] [default to undefined]
13
+ **cancellationLimitHours** | **number** | | [optional] [default to undefined]
14
+ **availabilityPeriodInDays** | **number** | | [optional] [default to undefined]
15
+ **sponsors** | **Array<string>** | | [optional] [default to undefined]
16
+ **timeBeforePayment** | **number** | Minutes before payment is required | [optional] [default to undefined]
14
17
  **createdAt** | **string** | | [optional] [default to undefined]
15
18
  **updatedAt** | **string** | | [optional] [default to undefined]
16
19
 
@@ -22,10 +25,13 @@ import { ClubSettings } from '@tennac-booking/sdk';
22
25
  const instance: ClubSettings = {
23
26
  id,
24
27
  clubId,
25
- reservationStartTime,
26
- reservationEndTime,
27
- maxSimultaneousReservations,
28
- allowWeekendReservations,
28
+ maxWeeklyBookings,
29
+ allowMultipleBookingsAtTheSameTime,
30
+ sameTimeBookingsLimit,
31
+ cancellationLimitHours,
32
+ availabilityPeriodInDays,
33
+ sponsors,
34
+ timeBeforePayment,
29
35
  createdAt,
30
36
  updatedAt,
31
37
  };
@@ -5,7 +5,6 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **userId** | **string** | ID de l\'utilisateur | [default to undefined]
9
8
  **setupIntentId** | **string** | ID du Setup Intent à confirmer | [default to undefined]
10
9
 
11
10
  ## Example
@@ -14,7 +13,6 @@ Name | Type | Description | Notes
14
13
  import { ConfirmPaymentMethodSetupRequestBody } from '@tennac-booking/sdk';
15
14
 
16
15
  const instance: ConfirmPaymentMethodSetupRequestBody = {
17
- userId,
18
16
  setupIntentId,
19
17
  };
20
18
  ```
@@ -1,4 +1,4 @@
1
- # DeleteClubSettings200Response
1
+ # FavoriteClubResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -6,14 +6,16 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | | [optional] [default to undefined]
9
+ **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { DeleteClubSettings200Response } from '@tennac-booking/sdk';
14
+ import { FavoriteClubResponse } from '@tennac-booking/sdk';
14
15
 
15
- const instance: DeleteClubSettings200Response = {
16
+ const instance: FavoriteClubResponse = {
16
17
  message,
18
+ favoriteClubs,
17
19
  };
18
20
  ```
19
21
 
@@ -0,0 +1,28 @@
1
+ # FrequentlyPlayedWithItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userId** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **profilePicture** | **string** | | [optional] [default to undefined]
12
+ **playCount** | **number** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { FrequentlyPlayedWithItem } from '@tennac-booking/sdk';
18
+
19
+ const instance: FrequentlyPlayedWithItem = {
20
+ userId,
21
+ firstName,
22
+ lastName,
23
+ profilePicture,
24
+ playCount,
25
+ };
26
+ ```
27
+
28
+ [[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
+ # FrequentlyVisitedClubItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **visitCount** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { FrequentlyVisitedClubItem } from '@tennac-booking/sdk';
16
+
17
+ const instance: FrequentlyVisitedClubItem = {
18
+ clubId,
19
+ name,
20
+ visitCount,
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,22 @@
1
+ # LevelBySportsItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sport** | **string** | | [default to undefined]
9
+ **level** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { LevelBySportsItem } from '@tennac-booking/sdk';
15
+
16
+ const instance: LevelBySportsItem = {
17
+ sport,
18
+ level,
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
+ # ProfilePictureResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **profilePicture** | **string** | URL de la photo de profil | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ProfilePictureResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: ProfilePictureResponse = {
16
+ profilePicture,
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
+ # ProfileVisibilityResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **isProfileVisible** | **boolean** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ProfileVisibilityResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: ProfileVisibilityResponse = {
16
+ isProfileVisible,
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)
@@ -5,7 +5,6 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **userId** | **string** | ID de l\'utilisateur | [default to undefined]
9
8
  **clubId** | **string** | ID du club | [default to undefined]
10
9
 
11
10
  ## Example
@@ -14,7 +13,6 @@ Name | Type | Description | Notes
14
13
  import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
15
14
 
16
15
  const instance: SetupPaymentMethodRequestBody = {
17
- userId,
18
16
  clubId,
19
17
  };
20
18
  ```
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.mon-domaine.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | Get current club information|
8
+ |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
8
9
 
9
10
  # **getClubInfos**
10
11
  > GetClubInfos200Response getClubInfos()
@@ -50,3 +51,58 @@ This endpoint does not have any parameters.
50
51
 
51
52
  [[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)
52
53
 
54
+ # **getClubSettings**
55
+ > ClubSettings getClubSettings(getClubSettingsRequest)
56
+
57
+
58
+ ### Example
59
+
60
+ ```typescript
61
+ import {
62
+ StaffClubsApi,
63
+ Configuration,
64
+ GetClubSettingsRequest
65
+ } from '@tennac-booking/sdk';
66
+
67
+ const configuration = new Configuration();
68
+ const apiInstance = new StaffClubsApi(configuration);
69
+
70
+ let getClubSettingsRequest: GetClubSettingsRequest; //
71
+
72
+ const { status, data } = await apiInstance.getClubSettings(
73
+ getClubSettingsRequest
74
+ );
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ |Name | Type | Description | Notes|
80
+ |------------- | ------------- | ------------- | -------------|
81
+ | **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
82
+
83
+
84
+ ### Return type
85
+
86
+ **ClubSettings**
87
+
88
+ ### Authorization
89
+
90
+ [bearerAuth](../README.md#bearerAuth)
91
+
92
+ ### HTTP request headers
93
+
94
+ - **Content-Type**: application/json
95
+ - **Accept**: application/json
96
+
97
+
98
+ ### HTTP response details
99
+ | Status code | Description | Response headers |
100
+ |-------------|-------------|------------------|
101
+ |**200** | Paramètres du club | - |
102
+ |**401** | Non autorisé | - |
103
+ |**403** | Accès interdit | - |
104
+ |**404** | Paramètres non trouvés | - |
105
+ |**500** | Erreur serveur interne | - |
106
+
107
+ [[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)
108
+
@@ -0,0 +1,20 @@
1
+ # UpdateLevelBySportsRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **levelBySports** | [**Array<LevelBySportsItem>**](LevelBySportsItem.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateLevelBySportsRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateLevelBySportsRequestBody = {
16
+ levelBySports,
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
+ # UpdateProfilePictureRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **profilePicture** | **string** | URL distante de la photo de profil (AWS/GCP) | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateProfilePictureRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateProfilePictureRequestBody = {
16
+ profilePicture,
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
+ # UpdateProfileVisibilityRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **isProfileVisible** | **boolean** | Indique si le profil est visible aux autres utilisateurs | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateProfileVisibilityRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateProfileVisibilityRequestBody = {
16
+ isProfileVisible,
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
+ # UpdateUserCityRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **city** | **string** | Nouvelle ville de l\'utilisateur | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateUserCityRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateUserCityRequestBody = {
16
+ city,
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
+ # UpdateUserDescriptionRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **description** | **string** | Nouvelle description de l\'utilisateur | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateUserDescriptionRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateUserDescriptionRequestBody = {
16
+ description,
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)
package/docs/UserApi.md CHANGED
@@ -4,64 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | Abonne l\'utilisateur connecté à un club|
8
7
  |[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur|
9
8
 
10
- # **subscribeToClub**
11
- > SubscriptionResponse subscribeToClub(subscribeToClubRequestBody)
12
-
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- UserApi,
19
- Configuration,
20
- SubscribeToClubRequestBody
21
- } from '@tennac-booking/sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new UserApi(configuration);
25
-
26
- let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
27
-
28
- const { status, data } = await apiInstance.subscribeToClub(
29
- subscribeToClubRequestBody
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
38
-
39
-
40
- ### Return type
41
-
42
- **SubscriptionResponse**
43
-
44
- ### Authorization
45
-
46
- [bearerAuth](../README.md#bearerAuth)
47
-
48
- ### HTTP request headers
49
-
50
- - **Content-Type**: application/json
51
- - **Accept**: application/json
52
-
53
-
54
- ### HTTP response details
55
- | Status code | Description | Response headers |
56
- |-------------|-------------|------------------|
57
- |**201** | Abonnement créé | - |
58
- |**400** | Requête invalide | - |
59
- |**401** | Non autorisé | - |
60
- |**404** | Ressource non trouvée | - |
61
- |**500** | Erreur serveur interne | - |
62
-
63
- [[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)
64
-
65
9
  # **updateCustomer**
66
10
  > UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
67
11
 
@@ -0,0 +1,20 @@
1
+ # UserCityResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **city** | **string** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserCityResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: UserCityResponse = {
16
+ city,
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)