@tennac-booking/sdk 1.0.230 → 1.0.232
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 +481 -455
- package/README.md +40 -2
- package/api.ts +2262 -33
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +7696 -6240
- package/dist/api.js +4531 -2528
- package/dist/base.d.ts +1 -1
- package/dist/base.js +3 -6
- package/dist/common.d.ts +1 -1
- package/dist/common.js +39 -23
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -63
- package/dist/esm/api.d.ts +7696 -6240
- package/dist/esm/api.js +4513 -2522
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +3 -6
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +39 -23
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +3 -63
- 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/AcceptBookingInvitationRequest.md +20 -0
- package/docs/AcceptBookingInvitationResponse.md +24 -0
- package/docs/BookingClubInfo.md +2 -0
- package/docs/BookingSummary.md +2 -0
- package/docs/BookingsStaffApi.md +57 -1
- package/docs/BookingsUserApi.md +56 -0
- package/docs/CheckInPlayerSumupRequest.md +22 -0
- package/docs/CheckInPlayerSumupResponse.md +24 -0
- package/docs/CheckInSumupPaymentInfo.md +26 -0
- package/docs/JobsApi.md +7 -7
- package/docs/PaymentByPlayerInfo.md +2 -0
- package/docs/PaymentIntentResult.md +28 -0
- package/docs/PaymentProviderType.md +10 -0
- package/docs/PaymentStatus.md +14 -0
- package/docs/PaymentsStaffApi.md +124 -0
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +617 -0
- package/docs/SumupAccountStatusResponse.md +32 -0
- package/docs/SumupCancelPaymentRequest.md +20 -0
- package/docs/SumupConnectUrlResponse.md +20 -0
- package/docs/SumupCreatePaymentRequest.md +32 -0
- package/docs/SumupOAuthCallbackResponse.md +24 -0
- package/docs/SumupPairReaderRequest.md +24 -0
- package/docs/SumupPairReaderResponse.md +20 -0
- package/docs/SumupReaderInfo.md +42 -0
- package/docs/SumupReaderInfoDevice.md +22 -0
- package/docs/SumupReaderResponse.md +20 -0
- package/docs/SumupReaderStatusInfo.md +32 -0
- package/docs/SumupReaderStatusResponse.md +20 -0
- package/docs/SumupReadersResponse.md +20 -0
- package/docs/SumupUpdateReaderRequest.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
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.231
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,15 +29,13 @@ export const COLLECTION_FORMATS = {
|
|
|
29
29
|
* @class BaseAPI
|
|
30
30
|
*/
|
|
31
31
|
export class BaseAPI {
|
|
32
|
-
basePath;
|
|
33
|
-
axios;
|
|
34
|
-
configuration;
|
|
35
32
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
+
var _a;
|
|
36
34
|
this.basePath = basePath;
|
|
37
35
|
this.axios = axios;
|
|
38
36
|
if (configuration) {
|
|
39
37
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
38
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
}
|
|
@@ -49,7 +47,6 @@ export class BaseAPI {
|
|
|
49
47
|
* @extends {Error}
|
|
50
48
|
*/
|
|
51
49
|
export class RequiredError extends Error {
|
|
52
|
-
field;
|
|
53
50
|
constructor(field, msg) {
|
|
54
51
|
super(msg);
|
|
55
52
|
this.field = field;
|
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
|
@@ -4,13 +4,22 @@
|
|
|
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.231
|
|
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
|
+
};
|
|
14
23
|
import { RequiredError } from "./base";
|
|
15
24
|
/**
|
|
16
25
|
*
|
|
@@ -31,13 +40,15 @@ export const assertParamExists = function (functionName, paramName, paramValue)
|
|
|
31
40
|
*
|
|
32
41
|
* @export
|
|
33
42
|
*/
|
|
34
|
-
export const setApiKeyToObject =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
if (configuration && configuration.apiKey) {
|
|
46
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
47
|
+
? yield configuration.apiKey(keyParamName)
|
|
48
|
+
: yield configuration.apiKey;
|
|
49
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
41
52
|
};
|
|
42
53
|
/**
|
|
43
54
|
*
|
|
@@ -52,25 +63,29 @@ export const setBasicAuthToObject = function (object, configuration) {
|
|
|
52
63
|
*
|
|
53
64
|
* @export
|
|
54
65
|
*/
|
|
55
|
-
export const setBearerAuthToObject =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (configuration && configuration.accessToken) {
|
|
69
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
70
|
+
? yield configuration.accessToken()
|
|
71
|
+
: yield configuration.accessToken;
|
|
72
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
62
75
|
};
|
|
63
76
|
/**
|
|
64
77
|
*
|
|
65
78
|
* @export
|
|
66
79
|
*/
|
|
67
|
-
export const setOAuthToObject =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (configuration && configuration.accessToken) {
|
|
83
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
84
|
+
? yield configuration.accessToken(name, scopes)
|
|
85
|
+
: yield configuration.accessToken;
|
|
86
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
74
89
|
};
|
|
75
90
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
76
91
|
if (parameter == null)
|
|
@@ -127,7 +142,8 @@ export const toPathString = function (url) {
|
|
|
127
142
|
*/
|
|
128
143
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
144
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
|
|
145
|
+
var _a;
|
|
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 });
|
|
131
147
|
return axios.request(axiosRequestArgs);
|
|
132
148
|
};
|
|
133
149
|
};
|
|
@@ -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.231
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,75 +12,15 @@
|
|
|
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;
|
|
71
15
|
constructor(param = {}) {
|
|
16
|
+
var _a;
|
|
72
17
|
this.apiKey = param.apiKey;
|
|
73
18
|
this.username = param.username;
|
|
74
19
|
this.password = param.password;
|
|
75
20
|
this.accessToken = param.accessToken;
|
|
76
21
|
this.basePath = param.basePath;
|
|
77
22
|
this.serverIndex = param.serverIndex;
|
|
78
|
-
this.baseOptions = {
|
|
79
|
-
...param.baseOptions,
|
|
80
|
-
headers: {
|
|
81
|
-
...param.baseOptions?.headers,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
23
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
84
24
|
this.formDataCtor = param.formDataCtor;
|
|
85
25
|
}
|
|
86
26
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AcceptBookingInvitationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**accept** | **boolean** | Si le joueur accepte (true) ou refuse (false) | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AcceptBookingInvitationRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AcceptBookingInvitationRequest = {
|
|
16
|
+
accept,
|
|
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
|
+
# AcceptBookingInvitationResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
+
**bookingStatus** | **string** | Statut du booking après acceptation/refus | [default to undefined]
|
|
10
|
+
**allPlayersAccepted** | **boolean** | Si tous les joueurs ont accepté | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AcceptBookingInvitationResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: AcceptBookingInvitationResponse = {
|
|
18
|
+
message,
|
|
19
|
+
bookingStatus,
|
|
20
|
+
allPlayersAccepted,
|
|
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/docs/BookingClubInfo.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**picture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**bannerPicture** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**address** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**location** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
13
14
|
|
|
@@ -20,6 +21,7 @@ const instance: BookingClubInfo = {
|
|
|
20
21
|
id,
|
|
21
22
|
name,
|
|
22
23
|
picture,
|
|
24
|
+
bannerPicture,
|
|
23
25
|
address,
|
|
24
26
|
location,
|
|
25
27
|
};
|
package/docs/BookingSummary.md
CHANGED
|
@@ -33,6 +33,7 @@ Name | Type | Description | Notes
|
|
|
33
33
|
**updatedAt** | **string** | | [default to undefined]
|
|
34
34
|
**playersCount** | **number** | | [optional] [default to undefined]
|
|
35
35
|
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
36
|
+
**clubBanner** | **string** | | [optional] [default to undefined]
|
|
36
37
|
**courtName** | **string** | | [optional] [default to undefined]
|
|
37
38
|
**sportName** | **string** | | [optional] [default to undefined]
|
|
38
39
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
@@ -87,6 +88,7 @@ const instance: BookingSummary = {
|
|
|
87
88
|
updatedAt,
|
|
88
89
|
playersCount,
|
|
89
90
|
clubPicture,
|
|
91
|
+
clubBanner,
|
|
90
92
|
courtName,
|
|
91
93
|
sportName,
|
|
92
94
|
startDate,
|
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
|
|
8
|
+
|[**checkInPlayerWithSumup**](#checkinplayerwithsumup) | **POST** /api/bookings/{bookingId}/check-in/sumup | |
|
|
8
9
|
|[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
|
|
9
10
|
|[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
|
|
10
11
|
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
|
|
@@ -16,7 +17,7 @@ All URIs are relative to *http://localhost*
|
|
|
16
17
|
# **checkInPlayer**
|
|
17
18
|
> CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
|
|
18
19
|
|
|
19
|
-
Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
20
|
+
Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
20
21
|
|
|
21
22
|
### Example
|
|
22
23
|
|
|
@@ -68,6 +69,61 @@ const { status, data } = await apiInstance.checkInPlayer(
|
|
|
68
69
|
|
|
69
70
|
[[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)
|
|
70
71
|
|
|
72
|
+
# **checkInPlayerWithSumup**
|
|
73
|
+
> CheckInPlayerSumupResponse checkInPlayerWithSumup(checkInPlayerSumupRequest)
|
|
74
|
+
|
|
75
|
+
Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
BookingsStaffApi,
|
|
82
|
+
Configuration,
|
|
83
|
+
CheckInPlayerSumupRequest
|
|
84
|
+
} from '@tennac-booking/sdk';
|
|
85
|
+
|
|
86
|
+
const configuration = new Configuration();
|
|
87
|
+
const apiInstance = new BookingsStaffApi(configuration);
|
|
88
|
+
|
|
89
|
+
let bookingId: string; // (default to undefined)
|
|
90
|
+
let checkInPlayerSumupRequest: CheckInPlayerSumupRequest; //
|
|
91
|
+
|
|
92
|
+
const { status, data } = await apiInstance.checkInPlayerWithSumup(
|
|
93
|
+
bookingId,
|
|
94
|
+
checkInPlayerSumupRequest
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **checkInPlayerSumupRequest** | **CheckInPlayerSumupRequest**| | |
|
|
103
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Return type
|
|
107
|
+
|
|
108
|
+
**CheckInPlayerSumupResponse**
|
|
109
|
+
|
|
110
|
+
### Authorization
|
|
111
|
+
|
|
112
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
113
|
+
|
|
114
|
+
### HTTP request headers
|
|
115
|
+
|
|
116
|
+
- **Content-Type**: application/json
|
|
117
|
+
- **Accept**: application/json
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### HTTP response details
|
|
121
|
+
| Status code | Description | Response headers |
|
|
122
|
+
|-------------|-------------|------------------|
|
|
123
|
+
|**200** | Checkout SumUp déclenché | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
71
127
|
# **createStaffBooking**
|
|
72
128
|
> BookingResponse createStaffBooking(staffCreateBookingRequest)
|
|
73
129
|
|
package/docs/BookingsUserApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
|
|
|
9
9
|
|[**createBooking**](#createbooking) | **POST** /api/bookings | |
|
|
10
10
|
|[**createOpenBooking**](#createopenbooking) | **POST** /api/bookings/open | |
|
|
11
11
|
|[**getOpenBookingPrice**](#getopenbookingprice) | **POST** /api/bookings/open/booking-price | |
|
|
12
|
+
|[**respondToBookingInvitation**](#respondtobookinginvitation) | **POST** /api/bookings/{bookingId}/respond-invitation | |
|
|
12
13
|
|[**updateOpenBooking**](#updateopenbooking) | **PATCH** /api/bookings/{bookingId}/open | |
|
|
13
14
|
|
|
14
15
|
# **cancelBooking**
|
|
@@ -269,6 +270,61 @@ const { status, data } = await apiInstance.getOpenBookingPrice(
|
|
|
269
270
|
|
|
270
271
|
[[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)
|
|
271
272
|
|
|
273
|
+
# **respondToBookingInvitation**
|
|
274
|
+
> AcceptBookingInvitationResponse respondToBookingInvitation(acceptBookingInvitationRequest)
|
|
275
|
+
|
|
276
|
+
Accepter ou refuser une invitation à une réservation
|
|
277
|
+
|
|
278
|
+
### Example
|
|
279
|
+
|
|
280
|
+
```typescript
|
|
281
|
+
import {
|
|
282
|
+
BookingsUserApi,
|
|
283
|
+
Configuration,
|
|
284
|
+
AcceptBookingInvitationRequest
|
|
285
|
+
} from '@tennac-booking/sdk';
|
|
286
|
+
|
|
287
|
+
const configuration = new Configuration();
|
|
288
|
+
const apiInstance = new BookingsUserApi(configuration);
|
|
289
|
+
|
|
290
|
+
let bookingId: string; // (default to undefined)
|
|
291
|
+
let acceptBookingInvitationRequest: AcceptBookingInvitationRequest; //
|
|
292
|
+
|
|
293
|
+
const { status, data } = await apiInstance.respondToBookingInvitation(
|
|
294
|
+
bookingId,
|
|
295
|
+
acceptBookingInvitationRequest
|
|
296
|
+
);
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
|Name | Type | Description | Notes|
|
|
302
|
+
|------------- | ------------- | ------------- | -------------|
|
|
303
|
+
| **acceptBookingInvitationRequest** | **AcceptBookingInvitationRequest**| | |
|
|
304
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Return type
|
|
308
|
+
|
|
309
|
+
**AcceptBookingInvitationResponse**
|
|
310
|
+
|
|
311
|
+
### Authorization
|
|
312
|
+
|
|
313
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
314
|
+
|
|
315
|
+
### HTTP request headers
|
|
316
|
+
|
|
317
|
+
- **Content-Type**: application/json
|
|
318
|
+
- **Accept**: application/json
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### HTTP response details
|
|
322
|
+
| Status code | Description | Response headers |
|
|
323
|
+
|-------------|-------------|------------------|
|
|
324
|
+
|**200** | Réponse à l\'invitation enregistrée avec succès | - |
|
|
325
|
+
|
|
326
|
+
[[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)
|
|
327
|
+
|
|
272
328
|
# **updateOpenBooking**
|
|
273
329
|
> UpdateOpenBooking200Response updateOpenBooking(updateOpenBookingRequest)
|
|
274
330
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CheckInPlayerSumupRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
|
|
9
|
+
**readerId** | **string** | Reader SumUp ciblé (optionnel) | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CheckInPlayerSumupRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CheckInPlayerSumupRequest = {
|
|
17
|
+
playerId,
|
|
18
|
+
readerId,
|
|
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,24 @@
|
|
|
1
|
+
# CheckInPlayerSumupResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
+
**invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
|
|
10
|
+
**sumupPayment** | [**CheckInSumupPaymentInfo**](CheckInSumupPaymentInfo.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CheckInPlayerSumupResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CheckInPlayerSumupResponse = {
|
|
18
|
+
message,
|
|
19
|
+
invoice,
|
|
20
|
+
sumupPayment,
|
|
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,26 @@
|
|
|
1
|
+
# CheckInSumupPaymentInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paymentId** | **string** | ID du paiement SumUp | [default to undefined]
|
|
9
|
+
**checkoutId** | **string** | ID du checkout SumUp | [optional] [default to undefined]
|
|
10
|
+
**status** | [**PaymentStatus**](PaymentStatus.md) | | [default to undefined]
|
|
11
|
+
**readerId** | **string** | Reader SumUp utilisé | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CheckInSumupPaymentInfo } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CheckInSumupPaymentInfo = {
|
|
19
|
+
paymentId,
|
|
20
|
+
checkoutId,
|
|
21
|
+
status,
|
|
22
|
+
readerId,
|
|
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)
|
package/docs/JobsApi.md
CHANGED
|
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost*
|
|
|
16
16
|
# **captureExpiringAuthorizations**
|
|
17
17
|
> JobResult captureExpiringAuthorizations()
|
|
18
18
|
|
|
19
|
-
Job: Capturer les autorisations de paiement qui expirent bientôt
|
|
19
|
+
Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -60,7 +60,7 @@ No authorization required
|
|
|
60
60
|
# **capturePastReservations**
|
|
61
61
|
> JobResult capturePastReservations()
|
|
62
62
|
|
|
63
|
-
Job: Capturer les paiements pour les réservations passées
|
|
63
|
+
Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
64
64
|
|
|
65
65
|
### Example
|
|
66
66
|
|
|
@@ -104,7 +104,7 @@ No authorization required
|
|
|
104
104
|
# **expireBookingWaitingPayments**
|
|
105
105
|
> JobResult expireBookingWaitingPayments()
|
|
106
106
|
|
|
107
|
-
Job: Expirer les réservations en attente de paiement
|
|
107
|
+
Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
108
108
|
|
|
109
109
|
### Example
|
|
110
110
|
|
|
@@ -148,7 +148,7 @@ No authorization required
|
|
|
148
148
|
# **expireWaitlistPayments**
|
|
149
149
|
> JobResult expireWaitlistPayments()
|
|
150
150
|
|
|
151
|
-
Job: Expirer les paiements en attente sur la waitlist
|
|
151
|
+
Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
152
152
|
|
|
153
153
|
### Example
|
|
154
154
|
|
|
@@ -236,7 +236,7 @@ No authorization required
|
|
|
236
236
|
# **maintainSlots**
|
|
237
237
|
> JobResult maintainSlots()
|
|
238
238
|
|
|
239
|
-
Job: Maintenir les créneaux (slots)
|
|
239
|
+
Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
240
240
|
|
|
241
241
|
### Example
|
|
242
242
|
|
|
@@ -280,7 +280,7 @@ No authorization required
|
|
|
280
280
|
# **releaseOldBookings**
|
|
281
281
|
> JobResult releaseOldBookings()
|
|
282
282
|
|
|
283
|
-
Job: Libérer les anciennes réservations
|
|
283
|
+
Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
284
284
|
|
|
285
285
|
### Example
|
|
286
286
|
|
|
@@ -324,7 +324,7 @@ No authorization required
|
|
|
324
324
|
# **sendBookingReminders**
|
|
325
325
|
> JobResult sendBookingReminders()
|
|
326
326
|
|
|
327
|
-
Job: Envoyer les rappels de réservation et d\'événements
|
|
327
|
+
Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
328
328
|
|
|
329
329
|
### Example
|
|
330
330
|
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**user** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
9
9
|
**invoices** | [**Array<InvoiceInfo>**](InvoiceInfo.md) | Liste des factures | [default to undefined]
|
|
10
|
+
**accepted** | **boolean** | Si le joueur a accepté l\'invitation | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { PaymentByPlayerInfo } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: PaymentByPlayerInfo = {
|
|
17
18
|
user,
|
|
18
19
|
invoices,
|
|
20
|
+
accepted,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|