@tennac-booking/sdk 1.0.108 → 1.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +9 -1
  2. package/README.md +15 -2
  3. package/api.ts +672 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +478 -1
  8. package/dist/api.js +280 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +478 -1
  16. package/dist/esm/api.js +280 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/CheckInEventParticipants200Response.md +22 -0
  28. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
  29. package/docs/CheckInEventParticipantsRequest.md +20 -0
  30. package/docs/ClubsStaffApi.md +59 -0
  31. package/docs/CreateOnsiteInvoiceRequest.md +28 -0
  32. package/docs/CreateOnsiteInvoiceResponse.md +22 -0
  33. package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
  34. package/docs/EventConflictCheckRequest.md +28 -0
  35. package/docs/EventConflictCheckResponse.md +26 -0
  36. package/docs/EventsManagerApi.md +114 -0
  37. package/docs/EventsStaffApi.md +59 -0
  38. package/docs/JoinEventRequest.md +8 -0
  39. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +22 -0
  40. package/docs/PublishEventResponse.md +2 -0
  41. package/index.ts +1 -1
  42. package/package.json +1 -1
package/dist/esm/api.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.108
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6028,6 +6028,42 @@ export class ClubsManagerApi extends BaseAPI {
6028
6028
  */
6029
6029
  export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6030
6030
  return {
6031
+ /**
6032
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6033
+ * @param {string} bookingId
6034
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
6035
+ * @param {*} [options] Override http request option.
6036
+ * @throws {RequiredError}
6037
+ */
6038
+ createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
6039
+ // verify required parameter 'bookingId' is not null or undefined
6040
+ assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
6041
+ // verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
6042
+ assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
6043
+ const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
6044
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
6045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6046
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6047
+ let baseOptions;
6048
+ if (configuration) {
6049
+ baseOptions = configuration.baseOptions;
6050
+ }
6051
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6052
+ const localVarHeaderParameter = {};
6053
+ const localVarQueryParameter = {};
6054
+ // authentication bearerAuth required
6055
+ // http bearer authentication required
6056
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6060
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6061
+ localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
6062
+ return {
6063
+ url: toPathString(localVarUrlObj),
6064
+ options: localVarRequestOptions,
6065
+ };
6066
+ }),
6031
6067
  /**
6032
6068
  *
6033
6069
  * @param {*} [options] Override http request option.
@@ -6257,6 +6293,22 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6257
6293
  export const ClubsStaffApiFp = function (configuration) {
6258
6294
  const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration);
6259
6295
  return {
6296
+ /**
6297
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6298
+ * @param {string} bookingId
6299
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
6300
+ * @param {*} [options] Override http request option.
6301
+ * @throws {RequiredError}
6302
+ */
6303
+ createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
6304
+ return __awaiter(this, void 0, void 0, function* () {
6305
+ var _a, _b, _c;
6306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
6307
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6308
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6310
+ });
6311
+ },
6260
6312
  /**
6261
6313
  *
6262
6314
  * @param {*} [options] Override http request option.
@@ -6379,6 +6431,15 @@ export const ClubsStaffApiFp = function (configuration) {
6379
6431
  export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6380
6432
  const localVarFp = ClubsStaffApiFp(configuration);
6381
6433
  return {
6434
+ /**
6435
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6436
+ * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
6437
+ * @param {*} [options] Override http request option.
6438
+ * @throws {RequiredError}
6439
+ */
6440
+ createOnsiteInvoiceForBooking(requestParameters, options) {
6441
+ return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
6442
+ },
6382
6443
  /**
6383
6444
  *
6384
6445
  * @param {*} [options] Override http request option.
@@ -6453,6 +6514,16 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6453
6514
  * @extends {BaseAPI}
6454
6515
  */
6455
6516
  export class ClubsStaffApi extends BaseAPI {
6517
+ /**
6518
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6519
+ * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
6520
+ * @param {*} [options] Override http request option.
6521
+ * @throws {RequiredError}
6522
+ * @memberof ClubsStaffApi
6523
+ */
6524
+ createOnsiteInvoiceForBooking(requestParameters, options) {
6525
+ return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6526
+ }
6456
6527
  /**
6457
6528
  *
6458
6529
  * @param {*} [options] Override http request option.
@@ -6954,6 +7025,38 @@ export const GetPublishedEventsByClubIdTypeEnum = {
6954
7025
  */
6955
7026
  export const EventsManagerApiAxiosParamCreator = function (configuration) {
6956
7027
  return {
7028
+ /**
7029
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7030
+ * @param {EventConflictCheckRequest} eventConflictCheckRequest
7031
+ * @param {*} [options] Override http request option.
7032
+ * @throws {RequiredError}
7033
+ */
7034
+ checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
7035
+ // verify required parameter 'eventConflictCheckRequest' is not null or undefined
7036
+ assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
7037
+ const localVarPath = `/api/events/manager/checkConflicts`;
7038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7040
+ let baseOptions;
7041
+ if (configuration) {
7042
+ baseOptions = configuration.baseOptions;
7043
+ }
7044
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7045
+ const localVarHeaderParameter = {};
7046
+ const localVarQueryParameter = {};
7047
+ // authentication bearerAuth required
7048
+ // http bearer authentication required
7049
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7050
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7053
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7054
+ localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration);
7055
+ return {
7056
+ url: toPathString(localVarUrlObj),
7057
+ options: localVarRequestOptions,
7058
+ };
7059
+ }),
6957
7060
  /**
6958
7061
  * Create a new event (manager)
6959
7062
  * @param {CreateEventRequest} createEventRequest
@@ -7115,6 +7218,42 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
7115
7218
  options: localVarRequestOptions,
7116
7219
  };
7117
7220
  }),
7221
+ /**
7222
+ * Update a published event (manager) and propagate slot changes and conflicts
7223
+ * @param {string} eventId
7224
+ * @param {UpdateEventRequest} updateEventRequest
7225
+ * @param {*} [options] Override http request option.
7226
+ * @throws {RequiredError}
7227
+ */
7228
+ updatePublishedEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7229
+ // verify required parameter 'eventId' is not null or undefined
7230
+ assertParamExists('updatePublishedEvent', 'eventId', eventId);
7231
+ // verify required parameter 'updateEventRequest' is not null or undefined
7232
+ assertParamExists('updatePublishedEvent', 'updateEventRequest', updateEventRequest);
7233
+ const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
7234
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7237
+ let baseOptions;
7238
+ if (configuration) {
7239
+ baseOptions = configuration.baseOptions;
7240
+ }
7241
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7242
+ const localVarHeaderParameter = {};
7243
+ const localVarQueryParameter = {};
7244
+ // authentication bearerAuth required
7245
+ // http bearer authentication required
7246
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7247
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7250
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7251
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration);
7252
+ return {
7253
+ url: toPathString(localVarUrlObj),
7254
+ options: localVarRequestOptions,
7255
+ };
7256
+ }),
7118
7257
  };
7119
7258
  };
7120
7259
  /**
@@ -7124,6 +7263,21 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
7124
7263
  export const EventsManagerApiFp = function (configuration) {
7125
7264
  const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration);
7126
7265
  return {
7266
+ /**
7267
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7268
+ * @param {EventConflictCheckRequest} eventConflictCheckRequest
7269
+ * @param {*} [options] Override http request option.
7270
+ * @throws {RequiredError}
7271
+ */
7272
+ checkEventConflicts(eventConflictCheckRequest, options) {
7273
+ return __awaiter(this, void 0, void 0, function* () {
7274
+ var _a, _b, _c;
7275
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
7276
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7277
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7279
+ });
7280
+ },
7127
7281
  /**
7128
7282
  * Create a new event (manager)
7129
7283
  * @param {CreateEventRequest} createEventRequest
@@ -7200,6 +7354,22 @@ export const EventsManagerApiFp = function (configuration) {
7200
7354
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7201
7355
  });
7202
7356
  },
7357
+ /**
7358
+ * Update a published event (manager) and propagate slot changes and conflicts
7359
+ * @param {string} eventId
7360
+ * @param {UpdateEventRequest} updateEventRequest
7361
+ * @param {*} [options] Override http request option.
7362
+ * @throws {RequiredError}
7363
+ */
7364
+ updatePublishedEvent(eventId, updateEventRequest, options) {
7365
+ return __awaiter(this, void 0, void 0, function* () {
7366
+ var _a, _b, _c;
7367
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
7368
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7369
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7370
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7371
+ });
7372
+ },
7203
7373
  };
7204
7374
  };
7205
7375
  /**
@@ -7209,6 +7379,15 @@ export const EventsManagerApiFp = function (configuration) {
7209
7379
  export const EventsManagerApiFactory = function (configuration, basePath, axios) {
7210
7380
  const localVarFp = EventsManagerApiFp(configuration);
7211
7381
  return {
7382
+ /**
7383
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7384
+ * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
7385
+ * @param {*} [options] Override http request option.
7386
+ * @throws {RequiredError}
7387
+ */
7388
+ checkEventConflicts(requestParameters, options) {
7389
+ return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
7390
+ },
7212
7391
  /**
7213
7392
  * Create a new event (manager)
7214
7393
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -7254,6 +7433,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
7254
7433
  updateEvent(requestParameters, options) {
7255
7434
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
7256
7435
  },
7436
+ /**
7437
+ * Update a published event (manager) and propagate slot changes and conflicts
7438
+ * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
7439
+ * @param {*} [options] Override http request option.
7440
+ * @throws {RequiredError}
7441
+ */
7442
+ updatePublishedEvent(requestParameters, options) {
7443
+ return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
7444
+ },
7257
7445
  };
7258
7446
  };
7259
7447
  /**
@@ -7263,6 +7451,16 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
7263
7451
  * @extends {BaseAPI}
7264
7452
  */
7265
7453
  export class EventsManagerApi extends BaseAPI {
7454
+ /**
7455
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7456
+ * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
7457
+ * @param {*} [options] Override http request option.
7458
+ * @throws {RequiredError}
7459
+ * @memberof EventsManagerApi
7460
+ */
7461
+ checkEventConflicts(requestParameters, options) {
7462
+ return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
7463
+ }
7266
7464
  /**
7267
7465
  * Create a new event (manager)
7268
7466
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -7313,6 +7511,16 @@ export class EventsManagerApi extends BaseAPI {
7313
7511
  updateEvent(requestParameters, options) {
7314
7512
  return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
7315
7513
  }
7514
+ /**
7515
+ * Update a published event (manager) and propagate slot changes and conflicts
7516
+ * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
7517
+ * @param {*} [options] Override http request option.
7518
+ * @throws {RequiredError}
7519
+ * @memberof EventsManagerApi
7520
+ */
7521
+ updatePublishedEvent(requestParameters, options) {
7522
+ return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
7523
+ }
7316
7524
  }
7317
7525
  /**
7318
7526
  * EventsStaffApi - axios parameter creator
@@ -7320,6 +7528,42 @@ export class EventsManagerApi extends BaseAPI {
7320
7528
  */
7321
7529
  export const EventsStaffApiAxiosParamCreator = function (configuration) {
7322
7530
  return {
7531
+ /**
7532
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7533
+ * @param {string} eventBookingId
7534
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
7535
+ * @param {*} [options] Override http request option.
7536
+ * @throws {RequiredError}
7537
+ */
7538
+ checkInEventParticipants: (eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1], void 0, function* (eventBookingId, checkInEventParticipantsRequest, options = {}) {
7539
+ // verify required parameter 'eventBookingId' is not null or undefined
7540
+ assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId);
7541
+ // verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
7542
+ assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
7543
+ const localVarPath = `/api/events/{eventBookingId}/check-in`
7544
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
7545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7546
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7547
+ let baseOptions;
7548
+ if (configuration) {
7549
+ baseOptions = configuration.baseOptions;
7550
+ }
7551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7552
+ const localVarHeaderParameter = {};
7553
+ const localVarQueryParameter = {};
7554
+ // authentication bearerAuth required
7555
+ // http bearer authentication required
7556
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7560
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7561
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
7562
+ return {
7563
+ url: toPathString(localVarUrlObj),
7564
+ options: localVarRequestOptions,
7565
+ };
7566
+ }),
7323
7567
  /**
7324
7568
  * Get all events for a club (staff only)
7325
7569
  * @param {*} [options] Override http request option.
@@ -7356,6 +7600,22 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7356
7600
  export const EventsStaffApiFp = function (configuration) {
7357
7601
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
7358
7602
  return {
7603
+ /**
7604
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7605
+ * @param {string} eventBookingId
7606
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
7607
+ * @param {*} [options] Override http request option.
7608
+ * @throws {RequiredError}
7609
+ */
7610
+ checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options) {
7611
+ return __awaiter(this, void 0, void 0, function* () {
7612
+ var _a, _b, _c;
7613
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
7614
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7615
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.checkInEventParticipants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7616
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7617
+ });
7618
+ },
7359
7619
  /**
7360
7620
  * Get all events for a club (staff only)
7361
7621
  * @param {*} [options] Override http request option.
@@ -7379,6 +7639,15 @@ export const EventsStaffApiFp = function (configuration) {
7379
7639
  export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7380
7640
  const localVarFp = EventsStaffApiFp(configuration);
7381
7641
  return {
7642
+ /**
7643
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7644
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
7645
+ * @param {*} [options] Override http request option.
7646
+ * @throws {RequiredError}
7647
+ */
7648
+ checkInEventParticipants(requestParameters, options) {
7649
+ return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
7650
+ },
7382
7651
  /**
7383
7652
  * Get all events for a club (staff only)
7384
7653
  * @param {*} [options] Override http request option.
@@ -7396,6 +7665,16 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7396
7665
  * @extends {BaseAPI}
7397
7666
  */
7398
7667
  export class EventsStaffApi extends BaseAPI {
7668
+ /**
7669
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7670
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
7671
+ * @param {*} [options] Override http request option.
7672
+ * @throws {RequiredError}
7673
+ * @memberof EventsStaffApi
7674
+ */
7675
+ checkInEventParticipants(requestParameters, options) {
7676
+ return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
7677
+ }
7399
7678
  /**
7400
7679
  * Get all events for a club (staff only)
7401
7680
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.108
5
+ * The version of the OpenAPI document: 1.0.110
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.108
5
+ * The version of the OpenAPI document: 1.0.110
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.108
5
+ * The version of the OpenAPI document: 1.0.110
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.108
5
+ * The version of the OpenAPI document: 1.0.110
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.108
5
+ * The version of the OpenAPI document: 1.0.110
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.108
8
+ * The version of the OpenAPI document: 1.0.110
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,22 @@
1
+ # CheckInEventParticipants200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **invoices** | [**Array<CheckInEventParticipants200ResponseInvoicesInner>**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CheckInEventParticipants200Response } from '@tennac-booking/sdk';
15
+
16
+ const instance: CheckInEventParticipants200Response = {
17
+ invoices,
18
+ message,
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,28 @@
1
+ # CheckInEventParticipants200ResponseInvoicesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
9
+ **status** | **string** | | [default to undefined]
10
+ **amount** | **number** | | [default to undefined]
11
+ **invoiceId** | **string** | | [default to undefined]
12
+ **playerId** | **string** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { CheckInEventParticipants200ResponseInvoicesInner } from '@tennac-booking/sdk';
18
+
19
+ const instance: CheckInEventParticipants200ResponseInvoicesInner = {
20
+ paymentMethod,
21
+ status,
22
+ amount,
23
+ invoiceId,
24
+ playerId,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # CheckInEventParticipantsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerIds** | **Array<string>** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { CheckInEventParticipantsRequest } from '@tennac-booking/sdk';
14
+
15
+ const instance: CheckInEventParticipantsRequest = {
16
+ playerIds,
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)
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**createOnsiteInvoiceForBooking**](#createonsiteinvoiceforbooking) | **POST** /api/clubs/staff/bookings/{bookingId}/invoices | |
7
8
  |[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
8
9
  |[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
9
10
  |[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
@@ -13,6 +14,64 @@ All URIs are relative to *http://localhost*
13
14
  |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
14
15
  |[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
15
16
 
17
+ # **createOnsiteInvoiceForBooking**
18
+ > CreateOnsiteInvoiceResponse createOnsiteInvoiceForBooking(createOnsiteInvoiceRequest)
19
+
20
+ Crée une facture manuelle (on-site) et l\'associe à une réservation
21
+
22
+ ### Example
23
+
24
+ ```typescript
25
+ import {
26
+ ClubsStaffApi,
27
+ Configuration,
28
+ CreateOnsiteInvoiceRequest
29
+ } from '@tennac-booking/sdk';
30
+
31
+ const configuration = new Configuration();
32
+ const apiInstance = new ClubsStaffApi(configuration);
33
+
34
+ let bookingId: string; // (default to undefined)
35
+ let createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest; //
36
+
37
+ const { status, data } = await apiInstance.createOnsiteInvoiceForBooking(
38
+ bookingId,
39
+ createOnsiteInvoiceRequest
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **createOnsiteInvoiceRequest** | **CreateOnsiteInvoiceRequest**| | |
48
+ | **bookingId** | [**string**] | | defaults to undefined|
49
+
50
+
51
+ ### Return type
52
+
53
+ **CreateOnsiteInvoiceResponse**
54
+
55
+ ### Authorization
56
+
57
+ [bearerAuth](../README.md#bearerAuth)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+ ### HTTP response details
66
+ | Status code | Description | Response headers |
67
+ |-------------|-------------|------------------|
68
+ |**201** | Invoice créé et lié à la réservation | - |
69
+ |**400** | Requête invalide | - |
70
+ |**404** | Réservation non trouvée | - |
71
+ |**500** | Erreur serveur | - |
72
+
73
+ [[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)
74
+
16
75
  # **getActualities**
17
76
  > GetActualities200Response getActualities()
18
77