@tennac-booking/sdk 1.0.244 → 1.0.246

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.
@@ -0,0 +1,117 @@
1
+ # SubscriptionsMobileApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cancelIncomplete**](#cancelincomplete) | **POST** /api/mobile/subscriptions/cancel-incomplete | |
8
+ |[**mobilePaymentSheet**](#mobilepaymentsheet) | **POST** /api/mobile/subscriptions/payment-sheet | |
9
+
10
+ # **cancelIncomplete**
11
+ > CancelIncompleteResponse cancelIncomplete(cancelIncompleteBody)
12
+
13
+ Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ SubscriptionsMobileApi,
20
+ Configuration,
21
+ CancelIncompleteBody
22
+ } from '@tennac-booking/sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new SubscriptionsMobileApi(configuration);
26
+
27
+ let cancelIncompleteBody: CancelIncompleteBody; //
28
+
29
+ const { status, data } = await apiInstance.cancelIncomplete(
30
+ cancelIncompleteBody
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **cancelIncompleteBody** | **CancelIncompleteBody**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **CancelIncompleteResponse**
44
+
45
+ ### Authorization
46
+
47
+ [bearerAuth](../README.md#bearerAuth)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**200** | Canceled if incomplete | - |
59
+ |**400** | Bad Request | - |
60
+ |**401** | Unauthorized | - |
61
+
62
+ [[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)
63
+
64
+ # **mobilePaymentSheet**
65
+ > SubscriptionPaymentSheetResponse mobilePaymentSheet(mobilePaymentSheetBody)
66
+
67
+ Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ SubscriptionsMobileApi,
74
+ Configuration,
75
+ MobilePaymentSheetBody
76
+ } from '@tennac-booking/sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new SubscriptionsMobileApi(configuration);
80
+
81
+ let mobilePaymentSheetBody: MobilePaymentSheetBody; //
82
+
83
+ const { status, data } = await apiInstance.mobilePaymentSheet(
84
+ mobilePaymentSheetBody
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **mobilePaymentSheetBody** | **MobilePaymentSheetBody**| | |
93
+
94
+
95
+ ### Return type
96
+
97
+ **SubscriptionPaymentSheetResponse**
98
+
99
+ ### Authorization
100
+
101
+ [bearerAuth](../README.md#bearerAuth)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Payment sheet ready | - |
113
+ |**400** | Bad Request | - |
114
+ |**401** | Unauthorized | - |
115
+
116
+ [[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)
117
+
package/docs/UserApi.md CHANGED
@@ -4,8 +4,62 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getMyClubCustomerSettings**](#getmyclubcustomersettings) | **GET** /api/users/me/clubCustomers/{clubId} | |
7
8
  |[**getMyClubInfos**](#getmyclubinfos) | **GET** /api/users/me/club-infos | |
8
9
 
10
+ # **getMyClubCustomerSettings**
11
+ > MyClubCustomerSettingsResponse getMyClubCustomerSettings()
12
+
13
+ Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ UserApi,
20
+ Configuration
21
+ } from '@tennac-booking/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new UserApi(configuration);
25
+
26
+ let clubId: string; // (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getMyClubCustomerSettings(
29
+ clubId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **clubId** | [**string**] | | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **MyClubCustomerSettingsResponse**
43
+
44
+ ### Authorization
45
+
46
+ [bearerAuth](../README.md#bearerAuth)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Paramètres ClubCustomer du club | - |
58
+ |**400** | clubId invalide | - |
59
+ |**404** | ClubCustomer ou settings du club introuvables | - |
60
+
61
+ [[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)
62
+
9
63
  # **getMyClubInfos**
10
64
  > MyClubInfosResponse getMyClubInfos()
11
65
 
package/docs/UsersApi.md CHANGED
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
11
11
  |[**completeRegister**](#completeregister) | **POST** /api/users/complete-register | |
12
12
  |[**getAllUsers**](#getallusers) | **GET** /api/users | |
13
13
  |[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
14
+ |[**getEventBookingDetail**](#geteventbookingdetail) | **GET** /api/users/me/event-booking-detail/{eventBookingId} | |
14
15
  |[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
15
16
  |[**getFavoritesPlayers**](#getfavoritesplayers) | **GET** /api/users/me/favoritesPlayers | |
16
17
  |[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | |
@@ -394,6 +395,56 @@ const { status, data } = await apiInstance.getBookingDetail(
394
395
  - **Accept**: application/json
395
396
 
396
397
 
398
+ ### HTTP response details
399
+ | Status code | Description | Response headers |
400
+ |-------------|-------------|------------------|
401
+ |**200** | Ok | - |
402
+
403
+ [[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)
404
+
405
+ # **getEventBookingDetail**
406
+ > EventBookingDetailResponse getEventBookingDetail()
407
+
408
+
409
+ ### Example
410
+
411
+ ```typescript
412
+ import {
413
+ UsersApi,
414
+ Configuration
415
+ } from '@tennac-booking/sdk';
416
+
417
+ const configuration = new Configuration();
418
+ const apiInstance = new UsersApi(configuration);
419
+
420
+ let eventBookingId: string; // (default to undefined)
421
+
422
+ const { status, data } = await apiInstance.getEventBookingDetail(
423
+ eventBookingId
424
+ );
425
+ ```
426
+
427
+ ### Parameters
428
+
429
+ |Name | Type | Description | Notes|
430
+ |------------- | ------------- | ------------- | -------------|
431
+ | **eventBookingId** | [**string**] | | defaults to undefined|
432
+
433
+
434
+ ### Return type
435
+
436
+ **EventBookingDetailResponse**
437
+
438
+ ### Authorization
439
+
440
+ [bearerAuth](../README.md#bearerAuth)
441
+
442
+ ### HTTP request headers
443
+
444
+ - **Content-Type**: Not defined
445
+ - **Accept**: application/json
446
+
447
+
397
448
  ### HTTP response details
398
449
  | Status code | Description | Response headers |
399
450
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.244",
3
+ "version": "1.0.246",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {