@tennac-booking/sdk 1.0.124 → 1.0.126
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 +2 -2
- package/README.md +3 -3
- package/api.ts +40 -40
- package/dist/api.d.ts +32 -32
- package/dist/api.js +20 -20
- package/dist/esm/api.d.ts +32 -32
- package/dist/esm/api.js +20 -20
- package/docs/BookingsStaffApi.md +10 -10
- package/docs/{CheckInPlayersRequest.md → CheckInPlayerRequest.md} +5 -5
- package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -45,8 +45,8 @@ docs/ChangePasswordResponse.md
|
|
|
45
45
|
docs/CheckInEventParticipants200Response.md
|
|
46
46
|
docs/CheckInEventParticipants200ResponseInvoicesInner.md
|
|
47
47
|
docs/CheckInEventParticipantsRequest.md
|
|
48
|
-
docs/
|
|
49
|
-
docs/
|
|
48
|
+
docs/CheckInPlayerRequest.md
|
|
49
|
+
docs/CheckInPlayerResponse.md
|
|
50
50
|
docs/CheckTeamNameAvailability200Response.md
|
|
51
51
|
docs/CheckedInPlayer.md
|
|
52
52
|
docs/ClientApi.md
|
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Class | Method | HTTP request | Description
|
|
|
56
56
|
*BookingsApi* | [**getQuickReservationSlots**](docs/BookingsApi.md#getquickreservationslots) | **GET** /api/bookings/quick-reservations |
|
|
57
57
|
*BookingsManagerApi* | [**applyNoShowFee**](docs/BookingsManagerApi.md#applynoshowfee) | **POST** /api/bookings/{bookingId}/no-show |
|
|
58
58
|
*BookingsManagerApi* | [**managerCancelBooking**](docs/BookingsManagerApi.md#managercancelbooking) | **POST** /api/bookings/{bookingId}/manager-cancel |
|
|
59
|
-
*BookingsStaffApi* | [**
|
|
59
|
+
*BookingsStaffApi* | [**checkInPlayer**](docs/BookingsStaffApi.md#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in |
|
|
60
60
|
*BookingsStaffApi* | [**createStaffBooking**](docs/BookingsStaffApi.md#createstaffbooking) | **POST** /api/bookings/staff |
|
|
61
61
|
*BookingsStaffApi* | [**getBookingById**](docs/BookingsStaffApi.md#getbookingbyid) | **GET** /api/bookings/{bookingId} |
|
|
62
62
|
*BookingsStaffApi* | [**getBookingHistoryStaff**](docs/BookingsStaffApi.md#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} |
|
|
@@ -258,8 +258,8 @@ Class | Method | HTTP request | Description
|
|
|
258
258
|
- [CheckInEventParticipants200Response](docs/CheckInEventParticipants200Response.md)
|
|
259
259
|
- [CheckInEventParticipants200ResponseInvoicesInner](docs/CheckInEventParticipants200ResponseInvoicesInner.md)
|
|
260
260
|
- [CheckInEventParticipantsRequest](docs/CheckInEventParticipantsRequest.md)
|
|
261
|
-
- [
|
|
262
|
-
- [
|
|
261
|
+
- [CheckInPlayerRequest](docs/CheckInPlayerRequest.md)
|
|
262
|
+
- [CheckInPlayerResponse](docs/CheckInPlayerResponse.md)
|
|
263
263
|
- [CheckTeamNameAvailability200Response](docs/CheckTeamNameAvailability200Response.md)
|
|
264
264
|
- [CheckedInPlayer](docs/CheckedInPlayer.md)
|
|
265
265
|
- [ClientFullOnboardingResponse](docs/ClientFullOnboardingResponse.md)
|
package/api.ts
CHANGED
|
@@ -1458,34 +1458,34 @@ export interface CheckInEventParticipantsRequest {
|
|
|
1458
1458
|
/**
|
|
1459
1459
|
*
|
|
1460
1460
|
* @export
|
|
1461
|
-
* @interface
|
|
1461
|
+
* @interface CheckInPlayerRequest
|
|
1462
1462
|
*/
|
|
1463
|
-
export interface
|
|
1463
|
+
export interface CheckInPlayerRequest {
|
|
1464
1464
|
/**
|
|
1465
|
-
*
|
|
1466
|
-
* @type {
|
|
1467
|
-
* @memberof
|
|
1465
|
+
* ID du joueur qui a payé/est arrivé
|
|
1466
|
+
* @type {string}
|
|
1467
|
+
* @memberof CheckInPlayerRequest
|
|
1468
1468
|
*/
|
|
1469
|
-
'
|
|
1469
|
+
'playerId': string;
|
|
1470
1470
|
}
|
|
1471
1471
|
/**
|
|
1472
1472
|
*
|
|
1473
1473
|
* @export
|
|
1474
|
-
* @interface
|
|
1474
|
+
* @interface CheckInPlayerResponse
|
|
1475
1475
|
*/
|
|
1476
|
-
export interface
|
|
1476
|
+
export interface CheckInPlayerResponse {
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Message de confirmation
|
|
1479
1479
|
* @type {string}
|
|
1480
|
-
* @memberof
|
|
1480
|
+
* @memberof CheckInPlayerResponse
|
|
1481
1481
|
*/
|
|
1482
1482
|
'message': string;
|
|
1483
1483
|
/**
|
|
1484
|
-
*
|
|
1485
|
-
* @type {
|
|
1486
|
-
* @memberof
|
|
1484
|
+
*
|
|
1485
|
+
* @type {CheckedInPlayer}
|
|
1486
|
+
* @memberof CheckInPlayerResponse
|
|
1487
1487
|
*/
|
|
1488
|
-
'
|
|
1488
|
+
'invoice': CheckedInPlayer;
|
|
1489
1489
|
}
|
|
1490
1490
|
/**
|
|
1491
1491
|
*
|
|
@@ -12009,17 +12009,17 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
12009
12009
|
export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12010
12010
|
return {
|
|
12011
12011
|
/**
|
|
12012
|
-
* Check-in
|
|
12012
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
12013
12013
|
* @param {string} bookingId
|
|
12014
|
-
* @param {
|
|
12014
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
12015
12015
|
* @param {*} [options] Override http request option.
|
|
12016
12016
|
* @throws {RequiredError}
|
|
12017
12017
|
*/
|
|
12018
|
-
|
|
12018
|
+
checkInPlayer: async (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12019
12019
|
// verify required parameter 'bookingId' is not null or undefined
|
|
12020
|
-
assertParamExists('
|
|
12021
|
-
// verify required parameter '
|
|
12022
|
-
assertParamExists('
|
|
12020
|
+
assertParamExists('checkInPlayer', 'bookingId', bookingId)
|
|
12021
|
+
// verify required parameter 'checkInPlayerRequest' is not null or undefined
|
|
12022
|
+
assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest)
|
|
12023
12023
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
12024
12024
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12025
12025
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12044,7 +12044,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12044
12044
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12045
12045
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12046
12046
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12047
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
12047
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration)
|
|
12048
12048
|
|
|
12049
12049
|
return {
|
|
12050
12050
|
url: toPathString(localVarUrlObj),
|
|
@@ -12344,16 +12344,16 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
12344
12344
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
|
|
12345
12345
|
return {
|
|
12346
12346
|
/**
|
|
12347
|
-
* Check-in
|
|
12347
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
12348
12348
|
* @param {string} bookingId
|
|
12349
|
-
* @param {
|
|
12349
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
12350
12350
|
* @param {*} [options] Override http request option.
|
|
12351
12351
|
* @throws {RequiredError}
|
|
12352
12352
|
*/
|
|
12353
|
-
async
|
|
12354
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12353
|
+
async checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>> {
|
|
12354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
|
|
12355
12355
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12356
|
-
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.
|
|
12356
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
|
|
12357
12357
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12358
12358
|
},
|
|
12359
12359
|
/**
|
|
@@ -12455,13 +12455,13 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
12455
12455
|
const localVarFp = BookingsStaffApiFp(configuration)
|
|
12456
12456
|
return {
|
|
12457
12457
|
/**
|
|
12458
|
-
* Check-in
|
|
12459
|
-
* @param {
|
|
12458
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
12459
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
12460
12460
|
* @param {*} [options] Override http request option.
|
|
12461
12461
|
* @throws {RequiredError}
|
|
12462
12462
|
*/
|
|
12463
|
-
|
|
12464
|
-
return localVarFp.
|
|
12463
|
+
checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
|
|
12464
|
+
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
12465
12465
|
},
|
|
12466
12466
|
/**
|
|
12467
12467
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -12530,24 +12530,24 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
12530
12530
|
};
|
|
12531
12531
|
|
|
12532
12532
|
/**
|
|
12533
|
-
* Request parameters for
|
|
12533
|
+
* Request parameters for checkInPlayer operation in BookingsStaffApi.
|
|
12534
12534
|
* @export
|
|
12535
|
-
* @interface
|
|
12535
|
+
* @interface BookingsStaffApiCheckInPlayerRequest
|
|
12536
12536
|
*/
|
|
12537
|
-
export interface
|
|
12537
|
+
export interface BookingsStaffApiCheckInPlayerRequest {
|
|
12538
12538
|
/**
|
|
12539
12539
|
*
|
|
12540
12540
|
* @type {string}
|
|
12541
|
-
* @memberof
|
|
12541
|
+
* @memberof BookingsStaffApiCheckInPlayer
|
|
12542
12542
|
*/
|
|
12543
12543
|
readonly bookingId: string
|
|
12544
12544
|
|
|
12545
12545
|
/**
|
|
12546
12546
|
*
|
|
12547
|
-
* @type {
|
|
12548
|
-
* @memberof
|
|
12547
|
+
* @type {CheckInPlayerRequest}
|
|
12548
|
+
* @memberof BookingsStaffApiCheckInPlayer
|
|
12549
12549
|
*/
|
|
12550
|
-
readonly
|
|
12550
|
+
readonly checkInPlayerRequest: CheckInPlayerRequest
|
|
12551
12551
|
}
|
|
12552
12552
|
|
|
12553
12553
|
/**
|
|
@@ -12684,14 +12684,14 @@ export interface BookingsStaffApiListClubBookingsRequest {
|
|
|
12684
12684
|
*/
|
|
12685
12685
|
export class BookingsStaffApi extends BaseAPI {
|
|
12686
12686
|
/**
|
|
12687
|
-
* Check-in
|
|
12688
|
-
* @param {
|
|
12687
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
12688
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
12689
12689
|
* @param {*} [options] Override http request option.
|
|
12690
12690
|
* @throws {RequiredError}
|
|
12691
12691
|
* @memberof BookingsStaffApi
|
|
12692
12692
|
*/
|
|
12693
|
-
public
|
|
12694
|
-
return BookingsStaffApiFp(this.configuration).
|
|
12693
|
+
public checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig) {
|
|
12694
|
+
return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12695
12695
|
}
|
|
12696
12696
|
|
|
12697
12697
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -1421,34 +1421,34 @@ export interface CheckInEventParticipantsRequest {
|
|
|
1421
1421
|
/**
|
|
1422
1422
|
*
|
|
1423
1423
|
* @export
|
|
1424
|
-
* @interface
|
|
1424
|
+
* @interface CheckInPlayerRequest
|
|
1425
1425
|
*/
|
|
1426
|
-
export interface
|
|
1426
|
+
export interface CheckInPlayerRequest {
|
|
1427
1427
|
/**
|
|
1428
|
-
*
|
|
1429
|
-
* @type {
|
|
1430
|
-
* @memberof
|
|
1428
|
+
* ID du joueur qui a payé/est arrivé
|
|
1429
|
+
* @type {string}
|
|
1430
|
+
* @memberof CheckInPlayerRequest
|
|
1431
1431
|
*/
|
|
1432
|
-
'
|
|
1432
|
+
'playerId': string;
|
|
1433
1433
|
}
|
|
1434
1434
|
/**
|
|
1435
1435
|
*
|
|
1436
1436
|
* @export
|
|
1437
|
-
* @interface
|
|
1437
|
+
* @interface CheckInPlayerResponse
|
|
1438
1438
|
*/
|
|
1439
|
-
export interface
|
|
1439
|
+
export interface CheckInPlayerResponse {
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Message de confirmation
|
|
1442
1442
|
* @type {string}
|
|
1443
|
-
* @memberof
|
|
1443
|
+
* @memberof CheckInPlayerResponse
|
|
1444
1444
|
*/
|
|
1445
1445
|
'message': string;
|
|
1446
1446
|
/**
|
|
1447
|
-
*
|
|
1448
|
-
* @type {
|
|
1449
|
-
* @memberof
|
|
1447
|
+
*
|
|
1448
|
+
* @type {CheckedInPlayer}
|
|
1449
|
+
* @memberof CheckInPlayerResponse
|
|
1450
1450
|
*/
|
|
1451
|
-
'
|
|
1451
|
+
'invoice': CheckedInPlayer;
|
|
1452
1452
|
}
|
|
1453
1453
|
/**
|
|
1454
1454
|
*
|
|
@@ -11528,13 +11528,13 @@ export declare class BookingsManagerApi extends BaseAPI {
|
|
|
11528
11528
|
*/
|
|
11529
11529
|
export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
11530
11530
|
/**
|
|
11531
|
-
* Check-in
|
|
11531
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11532
11532
|
* @param {string} bookingId
|
|
11533
|
-
* @param {
|
|
11533
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
11534
11534
|
* @param {*} [options] Override http request option.
|
|
11535
11535
|
* @throws {RequiredError}
|
|
11536
11536
|
*/
|
|
11537
|
-
|
|
11537
|
+
checkInPlayer: (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11538
11538
|
/**
|
|
11539
11539
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11540
11540
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -11595,13 +11595,13 @@ export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configu
|
|
|
11595
11595
|
*/
|
|
11596
11596
|
export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
|
|
11597
11597
|
/**
|
|
11598
|
-
* Check-in
|
|
11598
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11599
11599
|
* @param {string} bookingId
|
|
11600
|
-
* @param {
|
|
11600
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
11601
11601
|
* @param {*} [options] Override http request option.
|
|
11602
11602
|
* @throws {RequiredError}
|
|
11603
11603
|
*/
|
|
11604
|
-
|
|
11604
|
+
checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>>;
|
|
11605
11605
|
/**
|
|
11606
11606
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11607
11607
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -11662,12 +11662,12 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
|
|
|
11662
11662
|
*/
|
|
11663
11663
|
export declare const BookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
11664
11664
|
/**
|
|
11665
|
-
* Check-in
|
|
11666
|
-
* @param {
|
|
11665
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11666
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
11667
11667
|
* @param {*} [options] Override http request option.
|
|
11668
11668
|
* @throws {RequiredError}
|
|
11669
11669
|
*/
|
|
11670
|
-
|
|
11670
|
+
checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse>;
|
|
11671
11671
|
/**
|
|
11672
11672
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11673
11673
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -11719,23 +11719,23 @@ export declare const BookingsStaffApiFactory: (configuration?: Configuration, ba
|
|
|
11719
11719
|
listClubBookings(requestParameters?: BookingsStaffApiListClubBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffBookingsPaginatedResponse>;
|
|
11720
11720
|
};
|
|
11721
11721
|
/**
|
|
11722
|
-
* Request parameters for
|
|
11722
|
+
* Request parameters for checkInPlayer operation in BookingsStaffApi.
|
|
11723
11723
|
* @export
|
|
11724
|
-
* @interface
|
|
11724
|
+
* @interface BookingsStaffApiCheckInPlayerRequest
|
|
11725
11725
|
*/
|
|
11726
|
-
export interface
|
|
11726
|
+
export interface BookingsStaffApiCheckInPlayerRequest {
|
|
11727
11727
|
/**
|
|
11728
11728
|
*
|
|
11729
11729
|
* @type {string}
|
|
11730
|
-
* @memberof
|
|
11730
|
+
* @memberof BookingsStaffApiCheckInPlayer
|
|
11731
11731
|
*/
|
|
11732
11732
|
readonly bookingId: string;
|
|
11733
11733
|
/**
|
|
11734
11734
|
*
|
|
11735
|
-
* @type {
|
|
11736
|
-
* @memberof
|
|
11735
|
+
* @type {CheckInPlayerRequest}
|
|
11736
|
+
* @memberof BookingsStaffApiCheckInPlayer
|
|
11737
11737
|
*/
|
|
11738
|
-
readonly
|
|
11738
|
+
readonly checkInPlayerRequest: CheckInPlayerRequest;
|
|
11739
11739
|
}
|
|
11740
11740
|
/**
|
|
11741
11741
|
* Request parameters for createStaffBooking operation in BookingsStaffApi.
|
|
@@ -11860,13 +11860,13 @@ export interface BookingsStaffApiListClubBookingsRequest {
|
|
|
11860
11860
|
*/
|
|
11861
11861
|
export declare class BookingsStaffApi extends BaseAPI {
|
|
11862
11862
|
/**
|
|
11863
|
-
* Check-in
|
|
11864
|
-
* @param {
|
|
11863
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11864
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
11865
11865
|
* @param {*} [options] Override http request option.
|
|
11866
11866
|
* @throws {RequiredError}
|
|
11867
11867
|
* @memberof BookingsStaffApi
|
|
11868
11868
|
*/
|
|
11869
|
-
|
|
11869
|
+
checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckInPlayerResponse, any, {}>>;
|
|
11870
11870
|
/**
|
|
11871
11871
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11872
11872
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
package/dist/api.js
CHANGED
|
@@ -858,17 +858,17 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
858
858
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
859
859
|
return {
|
|
860
860
|
/**
|
|
861
|
-
* Check-in
|
|
861
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
862
862
|
* @param {string} bookingId
|
|
863
|
-
* @param {
|
|
863
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
864
864
|
* @param {*} [options] Override http request option.
|
|
865
865
|
* @throws {RequiredError}
|
|
866
866
|
*/
|
|
867
|
-
|
|
867
|
+
checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
|
|
868
868
|
// verify required parameter 'bookingId' is not null or undefined
|
|
869
|
-
(0, common_1.assertParamExists)('
|
|
870
|
-
// verify required parameter '
|
|
871
|
-
(0, common_1.assertParamExists)('
|
|
869
|
+
(0, common_1.assertParamExists)('checkInPlayer', 'bookingId', bookingId);
|
|
870
|
+
// verify required parameter 'checkInPlayerRequest' is not null or undefined
|
|
871
|
+
(0, common_1.assertParamExists)('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
|
|
872
872
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
873
873
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
874
874
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -887,7 +887,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
887
887
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
888
888
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
889
889
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
890
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
890
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerRequest, localVarRequestOptions, configuration);
|
|
891
891
|
return {
|
|
892
892
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
893
893
|
options: localVarRequestOptions,
|
|
@@ -1138,18 +1138,18 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1138
1138
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1139
1139
|
return {
|
|
1140
1140
|
/**
|
|
1141
|
-
* Check-in
|
|
1141
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1142
1142
|
* @param {string} bookingId
|
|
1143
|
-
* @param {
|
|
1143
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1144
1144
|
* @param {*} [options] Override http request option.
|
|
1145
1145
|
* @throws {RequiredError}
|
|
1146
1146
|
*/
|
|
1147
|
-
|
|
1147
|
+
checkInPlayer(bookingId, checkInPlayerRequest, options) {
|
|
1148
1148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1149
1149
|
var _a, _b, _c;
|
|
1150
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1150
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
|
|
1151
1151
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1152
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.
|
|
1152
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1153
1153
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1154
1154
|
});
|
|
1155
1155
|
},
|
|
@@ -1273,13 +1273,13 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1273
1273
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1274
1274
|
return {
|
|
1275
1275
|
/**
|
|
1276
|
-
* Check-in
|
|
1277
|
-
* @param {
|
|
1276
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1277
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1278
1278
|
* @param {*} [options] Override http request option.
|
|
1279
1279
|
* @throws {RequiredError}
|
|
1280
1280
|
*/
|
|
1281
|
-
|
|
1282
|
-
return localVarFp.
|
|
1281
|
+
checkInPlayer(requestParameters, options) {
|
|
1282
|
+
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1283
1283
|
},
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -1355,14 +1355,14 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
1355
1355
|
*/
|
|
1356
1356
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
1357
1357
|
/**
|
|
1358
|
-
* Check-in
|
|
1359
|
-
* @param {
|
|
1358
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1359
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1360
1360
|
* @param {*} [options] Override http request option.
|
|
1361
1361
|
* @throws {RequiredError}
|
|
1362
1362
|
* @memberof BookingsStaffApi
|
|
1363
1363
|
*/
|
|
1364
|
-
|
|
1365
|
-
return (0, exports.BookingsStaffApiFp)(this.configuration).
|
|
1364
|
+
checkInPlayer(requestParameters, options) {
|
|
1365
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1366
1366
|
}
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1421,34 +1421,34 @@ export interface CheckInEventParticipantsRequest {
|
|
|
1421
1421
|
/**
|
|
1422
1422
|
*
|
|
1423
1423
|
* @export
|
|
1424
|
-
* @interface
|
|
1424
|
+
* @interface CheckInPlayerRequest
|
|
1425
1425
|
*/
|
|
1426
|
-
export interface
|
|
1426
|
+
export interface CheckInPlayerRequest {
|
|
1427
1427
|
/**
|
|
1428
|
-
*
|
|
1429
|
-
* @type {
|
|
1430
|
-
* @memberof
|
|
1428
|
+
* ID du joueur qui a payé/est arrivé
|
|
1429
|
+
* @type {string}
|
|
1430
|
+
* @memberof CheckInPlayerRequest
|
|
1431
1431
|
*/
|
|
1432
|
-
'
|
|
1432
|
+
'playerId': string;
|
|
1433
1433
|
}
|
|
1434
1434
|
/**
|
|
1435
1435
|
*
|
|
1436
1436
|
* @export
|
|
1437
|
-
* @interface
|
|
1437
|
+
* @interface CheckInPlayerResponse
|
|
1438
1438
|
*/
|
|
1439
|
-
export interface
|
|
1439
|
+
export interface CheckInPlayerResponse {
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Message de confirmation
|
|
1442
1442
|
* @type {string}
|
|
1443
|
-
* @memberof
|
|
1443
|
+
* @memberof CheckInPlayerResponse
|
|
1444
1444
|
*/
|
|
1445
1445
|
'message': string;
|
|
1446
1446
|
/**
|
|
1447
|
-
*
|
|
1448
|
-
* @type {
|
|
1449
|
-
* @memberof
|
|
1447
|
+
*
|
|
1448
|
+
* @type {CheckedInPlayer}
|
|
1449
|
+
* @memberof CheckInPlayerResponse
|
|
1450
1450
|
*/
|
|
1451
|
-
'
|
|
1451
|
+
'invoice': CheckedInPlayer;
|
|
1452
1452
|
}
|
|
1453
1453
|
/**
|
|
1454
1454
|
*
|
|
@@ -11528,13 +11528,13 @@ export declare class BookingsManagerApi extends BaseAPI {
|
|
|
11528
11528
|
*/
|
|
11529
11529
|
export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
11530
11530
|
/**
|
|
11531
|
-
* Check-in
|
|
11531
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11532
11532
|
* @param {string} bookingId
|
|
11533
|
-
* @param {
|
|
11533
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
11534
11534
|
* @param {*} [options] Override http request option.
|
|
11535
11535
|
* @throws {RequiredError}
|
|
11536
11536
|
*/
|
|
11537
|
-
|
|
11537
|
+
checkInPlayer: (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11538
11538
|
/**
|
|
11539
11539
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11540
11540
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -11595,13 +11595,13 @@ export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configu
|
|
|
11595
11595
|
*/
|
|
11596
11596
|
export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
|
|
11597
11597
|
/**
|
|
11598
|
-
* Check-in
|
|
11598
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11599
11599
|
* @param {string} bookingId
|
|
11600
|
-
* @param {
|
|
11600
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
11601
11601
|
* @param {*} [options] Override http request option.
|
|
11602
11602
|
* @throws {RequiredError}
|
|
11603
11603
|
*/
|
|
11604
|
-
|
|
11604
|
+
checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>>;
|
|
11605
11605
|
/**
|
|
11606
11606
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11607
11607
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -11662,12 +11662,12 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
|
|
|
11662
11662
|
*/
|
|
11663
11663
|
export declare const BookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
11664
11664
|
/**
|
|
11665
|
-
* Check-in
|
|
11666
|
-
* @param {
|
|
11665
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11666
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
11667
11667
|
* @param {*} [options] Override http request option.
|
|
11668
11668
|
* @throws {RequiredError}
|
|
11669
11669
|
*/
|
|
11670
|
-
|
|
11670
|
+
checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse>;
|
|
11671
11671
|
/**
|
|
11672
11672
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11673
11673
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -11719,23 +11719,23 @@ export declare const BookingsStaffApiFactory: (configuration?: Configuration, ba
|
|
|
11719
11719
|
listClubBookings(requestParameters?: BookingsStaffApiListClubBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffBookingsPaginatedResponse>;
|
|
11720
11720
|
};
|
|
11721
11721
|
/**
|
|
11722
|
-
* Request parameters for
|
|
11722
|
+
* Request parameters for checkInPlayer operation in BookingsStaffApi.
|
|
11723
11723
|
* @export
|
|
11724
|
-
* @interface
|
|
11724
|
+
* @interface BookingsStaffApiCheckInPlayerRequest
|
|
11725
11725
|
*/
|
|
11726
|
-
export interface
|
|
11726
|
+
export interface BookingsStaffApiCheckInPlayerRequest {
|
|
11727
11727
|
/**
|
|
11728
11728
|
*
|
|
11729
11729
|
* @type {string}
|
|
11730
|
-
* @memberof
|
|
11730
|
+
* @memberof BookingsStaffApiCheckInPlayer
|
|
11731
11731
|
*/
|
|
11732
11732
|
readonly bookingId: string;
|
|
11733
11733
|
/**
|
|
11734
11734
|
*
|
|
11735
|
-
* @type {
|
|
11736
|
-
* @memberof
|
|
11735
|
+
* @type {CheckInPlayerRequest}
|
|
11736
|
+
* @memberof BookingsStaffApiCheckInPlayer
|
|
11737
11737
|
*/
|
|
11738
|
-
readonly
|
|
11738
|
+
readonly checkInPlayerRequest: CheckInPlayerRequest;
|
|
11739
11739
|
}
|
|
11740
11740
|
/**
|
|
11741
11741
|
* Request parameters for createStaffBooking operation in BookingsStaffApi.
|
|
@@ -11860,13 +11860,13 @@ export interface BookingsStaffApiListClubBookingsRequest {
|
|
|
11860
11860
|
*/
|
|
11861
11861
|
export declare class BookingsStaffApi extends BaseAPI {
|
|
11862
11862
|
/**
|
|
11863
|
-
* Check-in
|
|
11864
|
-
* @param {
|
|
11863
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
11864
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
11865
11865
|
* @param {*} [options] Override http request option.
|
|
11866
11866
|
* @throws {RequiredError}
|
|
11867
11867
|
* @memberof BookingsStaffApi
|
|
11868
11868
|
*/
|
|
11869
|
-
|
|
11869
|
+
checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckInPlayerResponse, any, {}>>;
|
|
11870
11870
|
/**
|
|
11871
11871
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
11872
11872
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
CHANGED
|
@@ -844,17 +844,17 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
844
844
|
export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
845
845
|
return {
|
|
846
846
|
/**
|
|
847
|
-
* Check-in
|
|
847
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
848
848
|
* @param {string} bookingId
|
|
849
|
-
* @param {
|
|
849
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
850
850
|
* @param {*} [options] Override http request option.
|
|
851
851
|
* @throws {RequiredError}
|
|
852
852
|
*/
|
|
853
|
-
|
|
853
|
+
checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
|
|
854
854
|
// verify required parameter 'bookingId' is not null or undefined
|
|
855
|
-
assertParamExists('
|
|
856
|
-
// verify required parameter '
|
|
857
|
-
assertParamExists('
|
|
855
|
+
assertParamExists('checkInPlayer', 'bookingId', bookingId);
|
|
856
|
+
// verify required parameter 'checkInPlayerRequest' is not null or undefined
|
|
857
|
+
assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
|
|
858
858
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
859
859
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
860
860
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -873,7 +873,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
873
873
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
874
874
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
875
875
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
876
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
876
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration);
|
|
877
877
|
return {
|
|
878
878
|
url: toPathString(localVarUrlObj),
|
|
879
879
|
options: localVarRequestOptions,
|
|
@@ -1123,18 +1123,18 @@ export const BookingsStaffApiFp = function (configuration) {
|
|
|
1123
1123
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
|
|
1124
1124
|
return {
|
|
1125
1125
|
/**
|
|
1126
|
-
* Check-in
|
|
1126
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1127
1127
|
* @param {string} bookingId
|
|
1128
|
-
* @param {
|
|
1128
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1129
1129
|
* @param {*} [options] Override http request option.
|
|
1130
1130
|
* @throws {RequiredError}
|
|
1131
1131
|
*/
|
|
1132
|
-
|
|
1132
|
+
checkInPlayer(bookingId, checkInPlayerRequest, options) {
|
|
1133
1133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1134
1134
|
var _a, _b, _c;
|
|
1135
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
|
|
1136
1136
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1137
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.
|
|
1137
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1138
1138
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1139
1139
|
});
|
|
1140
1140
|
},
|
|
@@ -1257,13 +1257,13 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
1257
1257
|
const localVarFp = BookingsStaffApiFp(configuration);
|
|
1258
1258
|
return {
|
|
1259
1259
|
/**
|
|
1260
|
-
* Check-in
|
|
1261
|
-
* @param {
|
|
1260
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1261
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1262
1262
|
* @param {*} [options] Override http request option.
|
|
1263
1263
|
* @throws {RequiredError}
|
|
1264
1264
|
*/
|
|
1265
|
-
|
|
1266
|
-
return localVarFp.
|
|
1265
|
+
checkInPlayer(requestParameters, options) {
|
|
1266
|
+
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1267
1267
|
},
|
|
1268
1268
|
/**
|
|
1269
1269
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -1338,14 +1338,14 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
1338
1338
|
*/
|
|
1339
1339
|
export class BookingsStaffApi extends BaseAPI {
|
|
1340
1340
|
/**
|
|
1341
|
-
* Check-in
|
|
1342
|
-
* @param {
|
|
1341
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1342
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1343
1343
|
* @param {*} [options] Override http request option.
|
|
1344
1344
|
* @throws {RequiredError}
|
|
1345
1345
|
* @memberof BookingsStaffApi
|
|
1346
1346
|
*/
|
|
1347
|
-
|
|
1348
|
-
return BookingsStaffApiFp(this.configuration).
|
|
1347
|
+
checkInPlayer(requestParameters, options) {
|
|
1348
|
+
return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1349
1349
|
}
|
|
1350
1350
|
/**
|
|
1351
1351
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
|
|
8
8
|
|[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
|
|
9
9
|
|[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
|
|
10
10
|
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
|
|
@@ -13,10 +13,10 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
|[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
|
|
14
14
|
|[**listClubBookings**](#listclubbookings) | **GET** /api/bookings/staff | |
|
|
15
15
|
|
|
16
|
-
# **
|
|
17
|
-
>
|
|
16
|
+
# **checkInPlayer**
|
|
17
|
+
> CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
|
|
18
18
|
|
|
19
|
-
Check-in
|
|
19
|
+
Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -24,18 +24,18 @@ Check-in des joueurs only for club with payment features
|
|
|
24
24
|
import {
|
|
25
25
|
BookingsStaffApi,
|
|
26
26
|
Configuration,
|
|
27
|
-
|
|
27
|
+
CheckInPlayerRequest
|
|
28
28
|
} from '@tennac-booking/sdk';
|
|
29
29
|
|
|
30
30
|
const configuration = new Configuration();
|
|
31
31
|
const apiInstance = new BookingsStaffApi(configuration);
|
|
32
32
|
|
|
33
33
|
let bookingId: string; // (default to undefined)
|
|
34
|
-
let
|
|
34
|
+
let checkInPlayerRequest: CheckInPlayerRequest; //
|
|
35
35
|
|
|
36
|
-
const { status, data } = await apiInstance.
|
|
36
|
+
const { status, data } = await apiInstance.checkInPlayer(
|
|
37
37
|
bookingId,
|
|
38
|
-
|
|
38
|
+
checkInPlayerRequest
|
|
39
39
|
);
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -43,13 +43,13 @@ const { status, data } = await apiInstance.checkInPlayers(
|
|
|
43
43
|
|
|
44
44
|
|Name | Type | Description | Notes|
|
|
45
45
|
|------------- | ------------- | ------------- | -------------|
|
|
46
|
-
| **
|
|
46
|
+
| **checkInPlayerRequest** | **CheckInPlayerRequest**| | |
|
|
47
47
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
### Return type
|
|
51
51
|
|
|
52
|
-
**
|
|
52
|
+
**CheckInPlayerResponse**
|
|
53
53
|
|
|
54
54
|
### Authorization
|
|
55
55
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckInPlayerRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { CheckInPlayerRequest } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: CheckInPlayerRequest = {
|
|
16
|
+
playerId,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckInPlayerResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
-
**
|
|
9
|
+
**invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { CheckInPlayerResponse } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: CheckInPlayerResponse = {
|
|
17
17
|
message,
|
|
18
|
-
|
|
18
|
+
invoice,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
21
21
|
|