@tennac-booking/sdk 1.0.183 → 1.0.185

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 (47) hide show
  1. package/.openapi-generator/FILES +412 -426
  2. package/README.md +3 -23
  3. package/api.ts +58 -1269
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +55 -821
  8. package/dist/api.js +15 -767
  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 +55 -821
  16. package/dist/esm/api.js +11 -750
  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/BookingsApi.md +5 -5
  28. package/docs/JoinOpenBookingRequest.md +26 -0
  29. package/docs/UserClubMembership.md +2 -0
  30. package/docs/UserProfileResponse.md +2 -0
  31. package/index.ts +1 -1
  32. package/package.json +1 -1
  33. package/docs/PaymentIntentResult.md +0 -28
  34. package/docs/PaymentProviderType.md +0 -10
  35. package/docs/PaymentStatus.md +0 -14
  36. package/docs/PaymentsStaffApi.md +0 -124
  37. package/docs/SumUpApi.md +0 -63
  38. package/docs/SumUpManagerApi.md +0 -332
  39. package/docs/SumupAccountStatusResponse.md +0 -32
  40. package/docs/SumupCancelPaymentRequest.md +0 -20
  41. package/docs/SumupConnectUrlResponse.md +0 -20
  42. package/docs/SumupCreatePaymentRequest.md +0 -32
  43. package/docs/SumupOAuthCallbackResponse.md +0 -24
  44. package/docs/SumupPairReaderRequest.md +0 -20
  45. package/docs/SumupPairReaderResponse.md +0 -20
  46. package/docs/SumupReaderInfo.md +0 -34
  47. package/docs/SumupReadersResponse.md +0 -20
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.177
5
+ * The version of the OpenAPI document: 1.0.185
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.177
7
+ * The version of the OpenAPI document: 1.0.185
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.177
5
+ * The version of the OpenAPI document: 1.0.185
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.177
7
+ * The version of the OpenAPI document: 1.0.185
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.177
5
+ * The version of the OpenAPI document: 1.0.185
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.177
7
+ * The version of the OpenAPI document: 1.0.185
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.177
5
+ * The version of the OpenAPI document: 1.0.185
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.177
7
+ * The version of the OpenAPI document: 1.0.185
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.177
5
+ * The version of the OpenAPI document: 1.0.185
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.177
8
+ * The version of the OpenAPI document: 1.0.185
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -513,7 +513,7 @@ No authorization required
513
513
  [[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)
514
514
 
515
515
  # **joinOpenBooking**
516
- > JoinOpenBookingResponse joinOpenBooking(joinOpenEventBookingRequest)
516
+ > JoinOpenBookingResponse joinOpenBooking(joinOpenBookingRequest)
517
517
 
518
518
 
519
519
  ### Example
@@ -522,18 +522,18 @@ No authorization required
522
522
  import {
523
523
  BookingsApi,
524
524
  Configuration,
525
- JoinOpenEventBookingRequest
525
+ JoinOpenBookingRequest
526
526
  } from '@tennac-booking/sdk';
527
527
 
528
528
  const configuration = new Configuration();
529
529
  const apiInstance = new BookingsApi(configuration);
530
530
 
531
531
  let bookingId: string; // (default to undefined)
532
- let joinOpenEventBookingRequest: JoinOpenEventBookingRequest; //
532
+ let joinOpenBookingRequest: JoinOpenBookingRequest; //
533
533
 
534
534
  const { status, data } = await apiInstance.joinOpenBooking(
535
535
  bookingId,
536
- joinOpenEventBookingRequest
536
+ joinOpenBookingRequest
537
537
  );
538
538
  ```
539
539
 
@@ -541,7 +541,7 @@ const { status, data } = await apiInstance.joinOpenBooking(
541
541
 
542
542
  |Name | Type | Description | Notes|
543
543
  |------------- | ------------- | ------------- | -------------|
544
- | **joinOpenEventBookingRequest** | **JoinOpenEventBookingRequest**| | |
544
+ | **joinOpenBookingRequest** | **JoinOpenBookingRequest**| | |
545
545
  | **bookingId** | [**string**] | | defaults to undefined|
546
546
 
547
547
 
@@ -0,0 +1,26 @@
1
+ # JoinOpenBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
9
+ **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
10
+ **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
+ ## Example
14
+
15
+ ```typescript
16
+ import { JoinOpenBookingRequest } from '@tennac-booking/sdk';
17
+
18
+ const instance: JoinOpenBookingRequest = {
19
+ paymentMethod,
20
+ useDefaultPaymentMethod,
21
+ creditToUseInCents,
22
+ players,
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)
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **clubId** | **string** | | [default to undefined]
9
9
  **clubName** | **string** | | [default to undefined]
10
10
  **clubPicture** | **string** | | [default to undefined]
11
+ **bannerPictures** | **Array<string>** | | [optional] [default to undefined]
11
12
  **address** | **string** | | [optional] [default to undefined]
12
13
  **description** | **string** | | [optional] [default to undefined]
13
14
  **tags** | **Array<string>** | | [optional] [default to undefined]
@@ -29,6 +30,7 @@ const instance: UserClubMembership = {
29
30
  clubId,
30
31
  clubName,
31
32
  clubPicture,
33
+ bannerPictures,
32
34
  address,
33
35
  description,
34
36
  tags,
@@ -42,6 +42,7 @@ Name | Type | Description | Notes
42
42
  **subscriptionsCount** | **number** | | [optional] [default to undefined]
43
43
  **subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
44
44
  **clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [optional] [default to undefined]
45
+ **favoriteClubsDetails** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
45
46
  **frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
46
47
  **frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
47
48
  **stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
@@ -91,6 +92,7 @@ const instance: UserProfileResponse = {
91
92
  subscriptionsCount,
92
93
  subscriptions,
93
94
  clubs,
95
+ favoriteClubsDetails,
94
96
  frequentlyVisitedClubs,
95
97
  frequentlyPlayedWith,
96
98
  stripeLinks,
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.177
7
+ * The version of the OpenAPI document: 1.0.185
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.183",
3
+ "version": "1.0.185",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,28 +0,0 @@
1
- # PaymentIntentResult
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **paymentId** | **string** | | [default to undefined]
9
- **externalId** | **string** | | [default to undefined]
10
- **status** | [**PaymentStatus**](PaymentStatus.md) | | [default to undefined]
11
- **provider** | [**PaymentProviderType**](PaymentProviderType.md) | | [default to undefined]
12
- **readerId** | **string** | | [optional] [default to undefined]
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import { PaymentIntentResult } from '@tennac-booking/sdk';
18
-
19
- const instance: PaymentIntentResult = {
20
- paymentId,
21
- externalId,
22
- status,
23
- provider,
24
- readerId,
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)
@@ -1,10 +0,0 @@
1
- # PaymentProviderType
2
-
3
-
4
- ## Enum
5
-
6
- * `Stripe` (value: `'stripe'`)
7
-
8
- * `Sumup` (value: `'sumup'`)
9
-
10
- [[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,14 +0,0 @@
1
- # PaymentStatus
2
-
3
-
4
- ## Enum
5
-
6
- * `Pending` (value: `'pending'`)
7
-
8
- * `Succeeded` (value: `'succeeded'`)
9
-
10
- * `Failed` (value: `'failed'`)
11
-
12
- * `Cancelled` (value: `'cancelled'`)
13
-
14
- [[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,124 +0,0 @@
1
- # PaymentsStaffApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**cancelSumupPayment**](#cancelsumuppayment) | **POST** /api/clubs/{clubId}/payments/sumup/{paymentId}/cancel | |
8
- |[**createSumupPayment**](#createsumuppayment) | **POST** /api/clubs/{clubId}/payments/sumup | |
9
-
10
- # **cancelSumupPayment**
11
- > cancelSumupPayment()
12
-
13
- Cancel a SumUp reader checkout.
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- PaymentsStaffApi,
20
- Configuration,
21
- SumupCancelPaymentRequest
22
- } from '@tennac-booking/sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new PaymentsStaffApi(configuration);
26
-
27
- let clubId: string; // (default to undefined)
28
- let paymentId: string; // (default to undefined)
29
- let sumupCancelPaymentRequest: SumupCancelPaymentRequest; // (optional)
30
-
31
- const { status, data } = await apiInstance.cancelSumupPayment(
32
- clubId,
33
- paymentId,
34
- sumupCancelPaymentRequest
35
- );
36
- ```
37
-
38
- ### Parameters
39
-
40
- |Name | Type | Description | Notes|
41
- |------------- | ------------- | ------------- | -------------|
42
- | **sumupCancelPaymentRequest** | **SumupCancelPaymentRequest**| | |
43
- | **clubId** | [**string**] | | defaults to undefined|
44
- | **paymentId** | [**string**] | | defaults to undefined|
45
-
46
-
47
- ### Return type
48
-
49
- void (empty response body)
50
-
51
- ### Authorization
52
-
53
- [bearerAuth](../README.md#bearerAuth)
54
-
55
- ### HTTP request headers
56
-
57
- - **Content-Type**: application/json
58
- - **Accept**: Not defined
59
-
60
-
61
- ### HTTP response details
62
- | Status code | Description | Response headers |
63
- |-------------|-------------|------------------|
64
- |**204** | Paiement annulé | - |
65
- |**400** | Bad Request | - |
66
-
67
- [[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)
68
-
69
- # **createSumupPayment**
70
- > PaymentIntentResult createSumupPayment(sumupCreatePaymentRequest)
71
-
72
- Start a SumUp reader checkout (manual payment trigger).
73
-
74
- ### Example
75
-
76
- ```typescript
77
- import {
78
- PaymentsStaffApi,
79
- Configuration,
80
- SumupCreatePaymentRequest
81
- } from '@tennac-booking/sdk';
82
-
83
- const configuration = new Configuration();
84
- const apiInstance = new PaymentsStaffApi(configuration);
85
-
86
- let clubId: string; // (default to undefined)
87
- let sumupCreatePaymentRequest: SumupCreatePaymentRequest; //
88
-
89
- const { status, data } = await apiInstance.createSumupPayment(
90
- clubId,
91
- sumupCreatePaymentRequest
92
- );
93
- ```
94
-
95
- ### Parameters
96
-
97
- |Name | Type | Description | Notes|
98
- |------------- | ------------- | ------------- | -------------|
99
- | **sumupCreatePaymentRequest** | **SumupCreatePaymentRequest**| | |
100
- | **clubId** | [**string**] | | defaults to undefined|
101
-
102
-
103
- ### Return type
104
-
105
- **PaymentIntentResult**
106
-
107
- ### Authorization
108
-
109
- [bearerAuth](../README.md#bearerAuth)
110
-
111
- ### HTTP request headers
112
-
113
- - **Content-Type**: application/json
114
- - **Accept**: application/json
115
-
116
-
117
- ### HTTP response details
118
- | Status code | Description | Response headers |
119
- |-------------|-------------|------------------|
120
- |**201** | Paiement SumUp créé | - |
121
- |**400** | Bad Request | - |
122
-
123
- [[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)
124
-
package/docs/SumUpApi.md DELETED
@@ -1,63 +0,0 @@
1
- # SumUpApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**sumupOauthCallback**](#sumupoauthcallback) | **GET** /api/sumup/oauth/callback | |
8
-
9
- # **sumupOauthCallback**
10
- > SumupOAuthCallbackResponse sumupOauthCallback()
11
-
12
- OAuth callback for SumUp.
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- SumUpApi,
19
- Configuration
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new SumUpApi(configuration);
24
-
25
- let code: string; // (default to undefined)
26
- let state: string; // (default to undefined)
27
-
28
- const { status, data } = await apiInstance.sumupOauthCallback(
29
- code,
30
- state
31
- );
32
- ```
33
-
34
- ### Parameters
35
-
36
- |Name | Type | Description | Notes|
37
- |------------- | ------------- | ------------- | -------------|
38
- | **code** | [**string**] | | defaults to undefined|
39
- | **state** | [**string**] | | defaults to undefined|
40
-
41
-
42
- ### Return type
43
-
44
- **SumupOAuthCallbackResponse**
45
-
46
- ### Authorization
47
-
48
- No authorization required
49
-
50
- ### HTTP request headers
51
-
52
- - **Content-Type**: Not defined
53
- - **Accept**: application/json
54
-
55
-
56
- ### HTTP response details
57
- | Status code | Description | Response headers |
58
- |-------------|-------------|------------------|
59
- |**200** | Connexion SumUp enregistrée | - |
60
- |**400** | Bad Request | - |
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
-