@tennac-booking/sdk 1.0.228 → 1.0.230
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.
- package/.openapi-generator/FILES +455 -434
- package/README.md +76 -48
- package/api.ts +4772 -3570
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +4850 -3759
- package/dist/api.js +3707 -4214
- package/dist/base.d.ts +1 -1
- package/dist/base.js +6 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +23 -39
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +63 -3
- package/dist/esm/api.d.ts +4850 -3759
- package/dist/esm/api.js +3694 -4197
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +6 -3
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +23 -39
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +63 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgendaBooking.md +2 -0
- package/docs/AuthApi.md +113 -0
- package/docs/BookingPopulated.md +9 -1
- package/docs/BookingSummary.md +4 -4
- package/docs/BookingsApi.md +29 -80
- package/docs/BookingsStaffApi.md +1 -57
- package/docs/BookingsUserApi.md +58 -6
- package/docs/{CheckInPlayerSumupResponse.md → CloseOpenBookingResponse.md} +5 -7
- package/docs/ClubPageResponse.md +16 -0
- package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
- package/docs/ClubPageResponseSportsIdsLookup.md +23 -0
- package/docs/ClubPricingPeriodPayload.md +32 -0
- package/docs/ClubPricingPeriodResponse.md +6 -6
- package/docs/ClubReservationSettingsResponse.md +2 -2
- package/docs/ClubResponse.md +12 -2
- package/docs/ClubSummary.md +6 -0
- package/docs/ComingEventsPageResponse.md +22 -0
- package/docs/CourtEnvironment.md +10 -0
- package/docs/CreateBookingRequest.md +0 -4
- package/docs/CreateOpenBookingRequest.md +7 -5
- package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
- package/docs/EstimateOpenBookingJoinRequest.md +24 -0
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/EventBookingResponse.md +2 -0
- package/docs/EventResponse.md +2 -0
- package/docs/EventsApi.md +113 -0
- package/docs/EventsStaffApi.md +119 -25
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
- package/docs/GetOpenEventBookingsBySport200Response.md +20 -0
- package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +46 -0
- package/docs/{SumupPairReaderResponse.md → Health200Response.md} +7 -5
- package/docs/IUserAttributes.md +4 -0
- package/docs/{SumupReaderInfoDevice.md → JobResult.md} +9 -7
- package/docs/JobsApi.md +367 -0
- package/docs/JoinOpenBookingRequest.md +28 -0
- package/docs/MarkNotificationsReadRequest.md +22 -0
- package/docs/{SumupConnectUrlResponse.md → MarkNotificationsReadResponse.md} +5 -5
- package/docs/MyClubInfosResponse.md +0 -2
- package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
- package/docs/NotificationData.md +22 -0
- package/docs/NotificationInitiator.md +28 -0
- package/docs/NotificationParticipantPreview.md +24 -0
- package/docs/NotificationPreview.md +78 -0
- package/docs/NotificationResponse.md +46 -0
- package/docs/{SumupUpdateReaderRequest.md → NotificationResponseClub.md} +7 -5
- package/docs/NotificationSlotPreview.md +24 -0
- package/docs/NotificationSportPreview.md +24 -0
- package/docs/{SumupReaderStatusResponse.md → NotificationTargetPreview.md} +7 -5
- package/docs/NotificationType.md +26 -0
- package/docs/OpenBookingBasePriceResponse.md +24 -0
- package/docs/OpenBookingInfo.md +7 -5
- package/docs/OpenBookingJoinEstimateResponse.md +26 -0
- package/docs/OpenBookingPriceBody.md +26 -0
- package/docs/PartnerSearchItem.md +28 -0
- package/docs/PartnerSearchResponse.md +22 -0
- package/docs/PartnerSearchResponseMeta.md +26 -0
- package/docs/PlayerPrice.md +3 -1
- package/docs/PricingPeriodDiscount.md +24 -0
- package/docs/PublicEmailApi.md +4 -4
- package/docs/QuickReservationClubSummary.md +12 -0
- package/docs/QuickReservationCourtType.md +10 -0
- package/docs/RequestOrganizationEmailCodeBody.md +22 -0
- package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
- package/docs/RequestVerificationCodeBody.md +26 -0
- package/docs/{SumupReaderResponse.md → RequestVerificationCodeResponse.md} +5 -5
- package/docs/SportResponse.md +2 -0
- package/docs/StaffEventBookingResponse.md +2 -0
- package/docs/StaffEventsPageResponse.md +22 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/SubscriptionPlanDiscountResponse.md +2 -0
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
- package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/UpdateClubReservationSettingsRequest.md +2 -2
- package/docs/UserClubMembership.md +2 -0
- package/docs/UserNextBookingSummary.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UserProfileResponse.md +12 -0
- package/docs/UsersApi.md +273 -0
- package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
- package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
- package/docs/VerifyVerificationCodeBody.md +24 -0
- package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
- package/docs/WaitListEntryWithPlayer.md +44 -0
- package/docs/WaitListPlayer.md +28 -0
- package/docs/WaitListPlayersListResponse.md +22 -0
- package/docs/WaitListStaffApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/docs/CheckInPlayerSumupRequest.md +0 -22
- package/docs/CheckInSumupPaymentInfo.md +0 -26
- package/docs/GetOpenBookingPrice200Response.md +0 -24
- package/docs/GetOpenBookingPriceRequest.md +0 -26
- package/docs/JoinPriceEstimateResponse.md +0 -38
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
- package/docs/OpenBookingSlotInfo.md +0 -24
- package/docs/PaymentIntentResult.md +0 -28
- package/docs/PaymentsStaffApi.md +0 -124
- package/docs/StaffEventsPaginatedResponse.md +0 -26
- package/docs/SumUpApi.md +0 -63
- package/docs/SumUpManagerApi.md +0 -617
- package/docs/SumupAccountStatusResponse.md +0 -32
- package/docs/SumupCreatePaymentRequest.md +0 -32
- package/docs/SumupOAuthCallbackResponse.md +0 -24
- package/docs/SumupPairReaderRequest.md +0 -24
- package/docs/SumupReaderInfo.md +0 -42
- package/docs/SumupReaderStatusInfo.md +0 -32
- package/docs/SumupReadersResponse.md +0 -20
package/dist/esm/base.d.ts
CHANGED
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.230
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,13 +29,15 @@ export const COLLECTION_FORMATS = {
|
|
|
29
29
|
* @class BaseAPI
|
|
30
30
|
*/
|
|
31
31
|
export class BaseAPI {
|
|
32
|
+
basePath;
|
|
33
|
+
axios;
|
|
34
|
+
configuration;
|
|
32
35
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
-
var _a;
|
|
34
36
|
this.basePath = basePath;
|
|
35
37
|
this.axios = axios;
|
|
36
38
|
if (configuration) {
|
|
37
39
|
this.configuration = configuration;
|
|
38
|
-
this.basePath =
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
}
|
|
@@ -47,6 +49,7 @@ export class BaseAPI {
|
|
|
47
49
|
* @extends {Error}
|
|
48
50
|
*/
|
|
49
51
|
export class RequiredError extends Error {
|
|
52
|
+
field;
|
|
50
53
|
constructor(field, msg) {
|
|
51
54
|
super(msg);
|
|
52
55
|
this.field = field;
|
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
|
@@ -4,22 +4,13 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.230
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
14
|
import { RequiredError } from "./base";
|
|
24
15
|
/**
|
|
25
16
|
*
|
|
@@ -40,15 +31,13 @@ export const assertParamExists = function (functionName, paramName, paramValue)
|
|
|
40
31
|
*
|
|
41
32
|
* @export
|
|
42
33
|
*/
|
|
43
|
-
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
});
|
|
34
|
+
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
|
+
if (configuration && configuration.apiKey) {
|
|
36
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
37
|
+
? await configuration.apiKey(keyParamName)
|
|
38
|
+
: await configuration.apiKey;
|
|
39
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
40
|
+
}
|
|
52
41
|
};
|
|
53
42
|
/**
|
|
54
43
|
*
|
|
@@ -63,29 +52,25 @@ export const setBasicAuthToObject = function (object, configuration) {
|
|
|
63
52
|
*
|
|
64
53
|
* @export
|
|
65
54
|
*/
|
|
66
|
-
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
|
+
if (configuration && configuration.accessToken) {
|
|
57
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
58
|
+
? await configuration.accessToken()
|
|
59
|
+
: await configuration.accessToken;
|
|
60
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
61
|
+
}
|
|
75
62
|
};
|
|
76
63
|
/**
|
|
77
64
|
*
|
|
78
65
|
* @export
|
|
79
66
|
*/
|
|
80
|
-
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
});
|
|
67
|
+
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
|
+
if (configuration && configuration.accessToken) {
|
|
69
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
70
|
+
? await configuration.accessToken(name, scopes)
|
|
71
|
+
: await configuration.accessToken;
|
|
72
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
73
|
+
}
|
|
89
74
|
};
|
|
90
75
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
91
76
|
if (parameter == null)
|
|
@@ -142,8 +127,7 @@ export const toPathString = function (url) {
|
|
|
142
127
|
*/
|
|
143
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
|
-
|
|
146
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
147
131
|
return axios.request(axiosRequestArgs);
|
|
148
132
|
};
|
|
149
133
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.230
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,15 +12,75 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
export class Configuration {
|
|
15
|
+
/**
|
|
16
|
+
* parameter for apiKey security
|
|
17
|
+
* @param name security name
|
|
18
|
+
* @memberof Configuration
|
|
19
|
+
*/
|
|
20
|
+
apiKey;
|
|
21
|
+
/**
|
|
22
|
+
* parameter for basic security
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
username;
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
password;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for oauth2 security
|
|
37
|
+
* @param name security name
|
|
38
|
+
* @param scopes oauth2 scope
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
accessToken;
|
|
42
|
+
/**
|
|
43
|
+
* override base path
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor;
|
|
15
71
|
constructor(param = {}) {
|
|
16
|
-
var _a;
|
|
17
72
|
this.apiKey = param.apiKey;
|
|
18
73
|
this.username = param.username;
|
|
19
74
|
this.password = param.password;
|
|
20
75
|
this.accessToken = param.accessToken;
|
|
21
76
|
this.basePath = param.basePath;
|
|
22
77
|
this.serverIndex = param.serverIndex;
|
|
23
|
-
this.baseOptions =
|
|
78
|
+
this.baseOptions = {
|
|
79
|
+
...param.baseOptions,
|
|
80
|
+
headers: {
|
|
81
|
+
...param.baseOptions?.headers,
|
|
82
|
+
},
|
|
83
|
+
};
|
|
24
84
|
this.formDataCtor = param.formDataCtor;
|
|
25
85
|
}
|
|
26
86
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/AgendaBooking.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
10
|
+
**isOpen** | **boolean** | | [default to undefined]
|
|
10
11
|
**creatorName** | **string** | | [default to undefined]
|
|
11
12
|
**players** | [**Array<AgendaBookingPlayer>**](AgendaBookingPlayer.md) | | [default to undefined]
|
|
12
13
|
**paymentStatus** | [**BookingInvoicePaymentStatus**](BookingInvoicePaymentStatus.md) | | [default to undefined]
|
|
@@ -20,6 +21,7 @@ import { AgendaBooking } from '@tennac-booking/sdk';
|
|
|
20
21
|
const instance: AgendaBooking = {
|
|
21
22
|
id,
|
|
22
23
|
status,
|
|
24
|
+
isOpen,
|
|
23
25
|
creatorName,
|
|
24
26
|
players,
|
|
25
27
|
paymentStatus,
|
package/docs/AuthApi.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**requestVerificationCode**](#requestverificationcode) | **POST** /api/auth/verification-code | |
|
|
8
|
+
|[**verifyVerificationCode**](#verifyverificationcode) | **POST** /api/auth/verification-code/verify | |
|
|
9
|
+
|
|
10
|
+
# **requestVerificationCode**
|
|
11
|
+
> RequestVerificationCodeResponse requestVerificationCode(requestVerificationCodeBody)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
AuthApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
RequestVerificationCodeBody
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AuthApi(configuration);
|
|
25
|
+
|
|
26
|
+
let requestVerificationCodeBody: RequestVerificationCodeBody; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.requestVerificationCode(
|
|
29
|
+
requestVerificationCodeBody
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **requestVerificationCodeBody** | **RequestVerificationCodeBody**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**RequestVerificationCodeResponse**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
No authorization required
|
|
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
|
+
|**200** | OK | - |
|
|
58
|
+
|**400** | Payload invalide | - |
|
|
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)
|
|
61
|
+
|
|
62
|
+
# **verifyVerificationCode**
|
|
63
|
+
> VerifyVerificationCodeResponse verifyVerificationCode(verifyVerificationCodeBody)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
AuthApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
VerifyVerificationCodeBody
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new AuthApi(configuration);
|
|
77
|
+
|
|
78
|
+
let verifyVerificationCodeBody: VerifyVerificationCodeBody; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.verifyVerificationCode(
|
|
81
|
+
verifyVerificationCodeBody
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **verifyVerificationCodeBody** | **VerifyVerificationCodeBody**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**VerifyVerificationCodeResponse**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
No authorization required
|
|
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** | OK | - |
|
|
110
|
+
|**400** | Code invalide | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
10
|
**creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
|
-
**slotInfos** | [**SlotInfo
|
|
11
|
+
**slotInfos** | [**Array<SlotInfo>**](SlotInfo.md) | Informations des slots | [default to undefined]
|
|
12
12
|
**players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
|
|
13
13
|
**initialPlayers** | [**Array<UserInfo>**](UserInfo.md) | Joueurs inclus à la création de la réservation (pour les créneaux ouverts) | [optional] [default to undefined]
|
|
14
14
|
**paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
@@ -21,6 +21,10 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
22
22
|
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
23
23
|
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**isOpen** | **boolean** | | [default to undefined]
|
|
25
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**minLevel** | **string** | | [optional] [default to undefined]
|
|
27
|
+
**maxPlayersDesired** | **number** | | [optional] [default to undefined]
|
|
24
28
|
|
|
25
29
|
## Example
|
|
26
30
|
|
|
@@ -44,6 +48,10 @@ const instance: BookingPopulated = {
|
|
|
44
48
|
cancelledByManager,
|
|
45
49
|
cancelledBy,
|
|
46
50
|
cancellationReason,
|
|
51
|
+
isOpen,
|
|
52
|
+
description,
|
|
53
|
+
minLevel,
|
|
54
|
+
maxPlayersDesired,
|
|
47
55
|
};
|
|
48
56
|
```
|
|
49
57
|
|
package/docs/BookingSummary.md
CHANGED
|
@@ -16,8 +16,6 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**slotIds** | **Array<string>** | | [default to undefined]
|
|
17
17
|
**isPublic** | **boolean** | | [default to undefined]
|
|
18
18
|
**isOpen** | **boolean** | | [default to undefined]
|
|
19
|
-
**maxPlayers** | **number** | | [optional] [default to undefined]
|
|
20
|
-
**maxPlayersDesired** | **number** | | [optional] [default to undefined]
|
|
21
19
|
**description** | **string** | | [optional] [default to undefined]
|
|
22
20
|
**minLevel** | **string** | | [optional] [default to undefined]
|
|
23
21
|
**initialPlayers** | [**Array<BookingPlayerInfo>**](BookingPlayerInfo.md) | | [optional] [default to undefined]
|
|
@@ -52,6 +50,8 @@ Name | Type | Description | Notes
|
|
|
52
50
|
**court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
|
|
53
51
|
**sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
|
|
54
52
|
**players** | [**Array<BookingPlayerPaymentSummary>**](BookingPlayerPaymentSummary.md) | | [default to undefined]
|
|
53
|
+
**userParticipationStatus** | **string** | | [optional] [default to undefined]
|
|
54
|
+
**waitListPosition** | **number** | | [optional] [default to undefined]
|
|
55
55
|
|
|
56
56
|
## Example
|
|
57
57
|
|
|
@@ -70,8 +70,6 @@ const instance: BookingSummary = {
|
|
|
70
70
|
slotIds,
|
|
71
71
|
isPublic,
|
|
72
72
|
isOpen,
|
|
73
|
-
maxPlayers,
|
|
74
|
-
maxPlayersDesired,
|
|
75
73
|
description,
|
|
76
74
|
minLevel,
|
|
77
75
|
initialPlayers,
|
|
@@ -106,6 +104,8 @@ const instance: BookingSummary = {
|
|
|
106
104
|
court,
|
|
107
105
|
sport,
|
|
108
106
|
players,
|
|
107
|
+
userParticipationStatus,
|
|
108
|
+
waitListPosition,
|
|
109
109
|
};
|
|
110
110
|
```
|
|
111
111
|
|