UNPKG

@tennac-booking/sdk

Version:

OpenAPI client for @tennac-booking/sdk

2,378 lines 1.02 MB
/** * openapi.json * Pandook API Documentation * * The version of the OpenAPI document: 1.0.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import type { RequestArgs } from './base'; import { BaseAPI } from './base'; /** * * @export * @interface AcceptBookingInvitationRequest */ export interface AcceptBookingInvitationRequest { /** * Si le joueur accepte (true) ou refuse (false) * @type {boolean} * @memberof AcceptBookingInvitationRequest */ 'accept': boolean; } /** * * @export * @interface AcceptBookingInvitationResponse */ export interface AcceptBookingInvitationResponse { /** * Message de confirmation * @type {string} * @memberof AcceptBookingInvitationResponse */ 'message': string; /** * Statut du booking après acceptation/refus * @type {string} * @memberof AcceptBookingInvitationResponse */ 'bookingStatus': string; /** * Si tous les joueurs ont accepté * @type {boolean} * @memberof AcceptBookingInvitationResponse */ 'allPlayersAccepted'?: boolean; /** * URL de paiement (si paiement en ligne requis après acceptation) * @type {string} * @memberof AcceptBookingInvitationResponse */ 'paymentUrl'?: string; } /** * Requête pour accepter les CGU * @export * @interface AcceptTermsRequestBody */ export interface AcceptTermsRequestBody { /** * ID de la version des CGU à accepter (optionnel, utilise la version actuelle si non fourni) * @type {string} * @memberof AcceptTermsRequestBody */ 'termsId'?: string; /** * Numéro de version des CGU à accepter (optionnel, ignoré si termsId est fourni) * @type {string} * @memberof AcceptTermsRequestBody */ 'version'?: string; } /** * Réponse pour l\'acceptation des CGU * @export * @interface AcceptTermsResponse */ export interface AcceptTermsResponse { /** * Succès de l\'opération * @type {boolean} * @memberof AcceptTermsResponse */ 'success': boolean; /** * Message de confirmation * @type {string} * @memberof AcceptTermsResponse */ 'message': string; /** * Date d\'acceptation des CGU * @type {string} * @memberof AcceptTermsResponse */ 'termsAcceptedAt': string; /** * Version des CGU acceptée * @type {string} * @memberof AcceptTermsResponse */ 'acceptedVersion': string; /** * ID de la version des CGU * @type {string} * @memberof AcceptTermsResponse */ 'termsId': string; } /** * * @export * @interface AccountDeletionRequestBody */ export interface AccountDeletionRequestBody { /** * Message libre décrivant la demande de suppression. * @type {string} * @memberof AccountDeletionRequestBody */ 'message': string; /** * Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle. * @type {string} * @memberof AccountDeletionRequestBody */ 'reason'?: string; } /** * * @export * @interface AccountDeletionRequestResponse */ export interface AccountDeletionRequestResponse { /** * * @type {string} * @memberof AccountDeletionRequestResponse */ 'requestId': string; /** * * @type {boolean} * @memberof AccountDeletionRequestResponse */ 'success': boolean; } /** * * @export * @interface AddClubMember201Response */ export interface AddClubMember201Response { /** * * @type {any} * @memberof AddClubMember201Response */ 'clubRole': any; /** * * @type {string} * @memberof AddClubMember201Response */ 'message': string; } /** * * @export * @interface AddClubMemberRequest */ export interface AddClubMemberRequest { /** * ID de l\'utilisateur à ajouter (optionnel si création d\'un compte) * @type {string} * @memberof AddClubMemberRequest */ 'userId'?: string; /** * ID du club (optionnel si fourni via le middleware d\'authentification) * @type {string} * @memberof AddClubMemberRequest */ 'clubId'?: string; /** * Rôle de l\'utilisateur dans le club * @type {string} * @memberof AddClubMemberRequest */ 'role': string; /** * Droits de l\'utilisateur dans le club * @type {Array<string>} * @memberof AddClubMemberRequest */ 'rights'?: Array<string>; /** * Prénom du membre (requis si création d\'un compte) * @type {string} * @memberof AddClubMemberRequest */ 'firstName'?: string; /** * Nom du membre (requis si création d\'un compte) * @type {string} * @memberof AddClubMemberRequest */ 'lastName'?: string; /** * Email du membre (requis si création d\'un compte) * @type {string} * @memberof AddClubMemberRequest */ 'email'?: string; } /** * * @export * @interface AddOrganizationRequest */ export interface AddOrganizationRequest { /** * * @type {string} * @memberof AddOrganizationRequest */ 'organizationEmail'?: string; /** * * @type {string} * @memberof AddOrganizationRequest */ 'organizationId'?: string; } /** * * @export * @interface AgendaBooking */ export interface AgendaBooking { /** * * @type {string} * @memberof AgendaBooking */ 'id': string; /** * * @type {BookingStatus} * @memberof AgendaBooking */ 'status': BookingStatus; /** * * @type {boolean} * @memberof AgendaBooking */ 'isOpen': boolean; /** * * @type {string} * @memberof AgendaBooking */ 'creatorName': string; /** * * @type {Array<AgendaBookingPlayer>} * @memberof AgendaBooking */ 'players': Array<AgendaBookingPlayer>; /** * * @type {BookingInvoicePaymentStatus} * @memberof AgendaBooking */ 'paymentStatus': BookingInvoicePaymentStatus; /** * * @type {Array<AgendaBookingSlot>} * @memberof AgendaBooking */ 'slots': Array<AgendaBookingSlot>; } /** * * @export * @interface AgendaBookingPlayer */ export interface AgendaBookingPlayer { /** * * @type {string} * @memberof AgendaBookingPlayer */ 'id': string; /** * * @type {string} * @memberof AgendaBookingPlayer */ 'firstName': string; /** * * @type {string} * @memberof AgendaBookingPlayer */ 'lastName': string; /** * * @type {string} * @memberof AgendaBookingPlayer */ 'profilePictureUrl'?: string; /** * Présent pour la vue hebdomadaire staff: true si le joueur a au moins un abonnement actif dans le club * @type {boolean} * @memberof AgendaBookingPlayer */ 'isSubscribed'?: boolean; } /** * * @export * @interface AgendaBookingSlot */ export interface AgendaBookingSlot { /** * * @type {string} * @memberof AgendaBookingSlot */ 'start': string; /** * * @type {string} * @memberof AgendaBookingSlot */ 'end': string; /** * * @type {string} * @memberof AgendaBookingSlot */ 'courtName': string; /** * * @type {string} * @memberof AgendaBookingSlot */ 'sportKey': string; /** * * @type {string} * @memberof AgendaBookingSlot */ 'surface'?: string; /** * * @type {boolean} * @memberof AgendaBookingSlot */ 'isIndoor'?: boolean; } /** * * @export * @interface AppRegisterRequestBody */ export interface AppRegisterRequestBody { /** * * @type {string} * @memberof AppRegisterRequestBody */ 'email': string; /** * * @type {string} * @memberof AppRegisterRequestBody */ 'password': string; } /** * * @export * @interface BookingAnalyticsResponse */ export interface BookingAnalyticsResponse { /** * ID de la réservation * @type {string} * @memberof BookingAnalyticsResponse */ '_id': string; /** * Statut de la réservation * @type {string} * @memberof BookingAnalyticsResponse */ 'status': string; /** * ID du club * @type {string} * @memberof BookingAnalyticsResponse */ 'clubId': string; /** * ID du sport * @type {string} * @memberof BookingAnalyticsResponse */ 'sportId': string; /** * IDs des joueurs * @type {Array<string>} * @memberof BookingAnalyticsResponse */ 'playersIds': Array<string>; /** * Nombre total réel de joueurs pour la réservation (créateur inclus) * @type {number} * @memberof BookingAnalyticsResponse */ 'playersCount': number; /** * Utilisateur qui a fait la réservation * @type {any} * @memberof BookingAnalyticsResponse */ 'userId': any; /** * Créneau réservé * @type {any} * @memberof BookingAnalyticsResponse */ 'slotId': any; /** * Statut de paiement par joueur * @type {Array<any>} * @memberof BookingAnalyticsResponse */ 'paymentByPlayersStatus': Array<any>; } /** * * @export * @interface BookingClubInfo */ export interface BookingClubInfo { /** * * @type {string} * @memberof BookingClubInfo */ 'id': string; /** * * @type {string} * @memberof BookingClubInfo */ 'name'?: string | null; /** * * @type {string} * @memberof BookingClubInfo */ 'picture'?: string | null; /** * * @type {string} * @memberof BookingClubInfo */ 'bannerPicture'?: string | null; /** * * @type {string} * @memberof BookingClubInfo */ 'address'?: string | null; /** * Construct a type with a set of properties K of type T * @type {{ [key: string]: any; }} * @memberof BookingClubInfo */ 'location'?: { [key: string]: any; } | null; /** * * @type {BookingClubInfoClubSettings} * @memberof BookingClubInfo */ 'clubSettings'?: BookingClubInfoClubSettings | null; } /** * * @export * @interface BookingClubInfoClubSettings */ export interface BookingClubInfoClubSettings { /** * * @type {number} * @memberof BookingClubInfoClubSettings */ 'cancellationLimitHours'?: number | null; /** * * @type {boolean} * @memberof BookingClubInfoClubSettings */ 'isNoShowEnabled'?: boolean | null; } /** * * @export * @interface BookingCourtInfo */ export interface BookingCourtInfo { /** * * @type {string} * @memberof BookingCourtInfo */ 'id'?: string | null; /** * * @type {string} * @memberof BookingCourtInfo */ 'name'?: string | null; } /** * * @export * @interface BookingGuestCheckinResponse */ export interface BookingGuestCheckinResponse { /** * * @type {string} * @memberof BookingGuestCheckinResponse */ 'message': string; /** * * @type {string} * @memberof BookingGuestCheckinResponse */ 'bookingId': string; /** * * @type {BookingStatus} * @memberof BookingGuestCheckinResponse */ 'status': BookingStatus; /** * * @type {PaymentCoverageResult} * @memberof BookingGuestCheckinResponse */ 'financials': PaymentCoverageResult; } /** * * @export * @interface BookingHistoryPopulated */ export interface BookingHistoryPopulated { /** * * @type {string} * @memberof BookingHistoryPopulated */ 'action': string; /** * * @type {string} * @memberof BookingHistoryPopulated */ 'actionKey'?: string; /** * * @type {UserInfo} * @memberof BookingHistoryPopulated */ 'performedBy': UserInfo; /** * * @type {string} * @memberof BookingHistoryPopulated */ 'performedByType': BookingHistoryPopulatedPerformedByTypeEnum; /** * * @type {string} * @memberof BookingHistoryPopulated */ 'details': string; /** * * @type {any} * @memberof BookingHistoryPopulated */ 'metadata'?: any; /** * * @type {string} * @memberof BookingHistoryPopulated */ 'previousStatus'?: string; /** * * @type {string} * @memberof BookingHistoryPopulated */ 'newStatus'?: string; /** * * @type {string} * @memberof BookingHistoryPopulated */ 'createdAt'?: string; } export declare const BookingHistoryPopulatedPerformedByTypeEnum: { readonly User: "user"; readonly Manager: "manager"; readonly System: "system"; }; export type BookingHistoryPopulatedPerformedByTypeEnum = typeof BookingHistoryPopulatedPerformedByTypeEnum[keyof typeof BookingHistoryPopulatedPerformedByTypeEnum]; /** * * @export * @interface BookingInfo */ export interface BookingInfo { /** * ID de la réservation * @type {string} * @memberof BookingInfo */ 'id': string; /** * ID du club * @type {string} * @memberof BookingInfo */ 'clubId': string; /** * ID de l\'utilisateur créateur * @type {string} * @memberof BookingInfo */ 'userId': string; /** * Liste des IDs des joueurs * @type {Array<string>} * @memberof BookingInfo */ 'playersIds': Array<string>; /** * * @type {BookingStatus} * @memberof BookingInfo */ 'status': BookingStatus; /** * Prix total en euros * @type {number} * @memberof BookingInfo */ 'totalPrice': number; /** * ID du créneau * @type {Array<string>} * @memberof BookingInfo */ 'slotIds': Array<string>; /** * Indique si le créateur paie pour tous * @type {boolean} * @memberof BookingInfo */ 'isCreatorPayingAll': boolean; /** * Date de création * @type {string} * @memberof BookingInfo */ 'createdAt': string; /** * Date de mise à jour * @type {string} * @memberof BookingInfo */ 'updatedAt': string; /** * Raison d\'annulation (si annulé) * @type {string} * @memberof BookingInfo */ 'cancellationReason'?: string; /** * ID de celui qui a annulé * @type {string} * @memberof BookingInfo */ 'cancelledBy'?: string; /** * Date d\'annulation * @type {string} * @memberof BookingInfo */ 'cancelledAt'?: string; /** * Annulé par un gestionnaire * @type {boolean} * @memberof BookingInfo */ 'cancelledByManager'?: boolean; /** * Frais de no-show appliqués * @type {boolean} * @memberof BookingInfo */ 'noShowChargeApplied'?: boolean; /** * Montant des frais de no-show * @type {number} * @memberof BookingInfo */ 'noShowChargeAmount'?: number; } /** * * @export * @enum {string} */ export declare const BookingInvoicePaymentStatus: { readonly SetupPending: "setup_pending"; readonly SetupSuccess: "setup_success"; readonly Pending: "pending"; readonly Paid: "paid"; readonly Failed: "failed"; readonly Authorized: "authorized"; readonly Canceled: "canceled"; readonly Expired: "expired"; readonly Partial: "partial"; }; export type BookingInvoicePaymentStatus = typeof BookingInvoicePaymentStatus[keyof typeof BookingInvoicePaymentStatus]; /** * * @export * @interface BookingManagerConsoleResponse */ export interface BookingManagerConsoleResponse { /** * * @type {BookingPopulated} * @memberof BookingManagerConsoleResponse */ 'booking': BookingPopulated; /** * * @type {NoShowPreviewResponse} * @memberof BookingManagerConsoleResponse */ 'noShowPreview': NoShowPreviewResponse; /** * Factures liées à la réservation (enrichies pour la console manager) * @type {Array<ManagerConsoleInvoiceResponse>} * @memberof BookingManagerConsoleResponse */ 'invoices': Array<ManagerConsoleInvoiceResponse>; /** * Contributions d\'invités sur les réservations ouvertes * @type {Array<ManagerConsoleOpenGuestContributionResponse>} * @memberof BookingManagerConsoleResponse */ 'openGuestContributions': Array<ManagerConsoleOpenGuestContributionResponse>; } /** * * @export * @interface BookingPaymentStatus */ export interface BookingPaymentStatus { /** * * @type {string} * @memberof BookingPaymentStatus */ 'playerId': string; /** * * @type {string} * @memberof BookingPaymentStatus */ 'invoiceId'?: string | null; /** * * @type {InvoiceStatus} * @memberof BookingPaymentStatus */ 'invoiceStatus'?: InvoiceStatus | null; /** * * @type {PaymentMethod} * @memberof BookingPaymentStatus */ 'paymentMethod'?: PaymentMethod | null; } /** * * @export * @interface BookingPaymentStatusResponse */ export interface BookingPaymentStatusResponse { /** * * @type {BookingPaymentStatusResponseBooking} * @memberof BookingPaymentStatusResponse */ 'booking': BookingPaymentStatusResponseBooking; /** * Statut des paiements de chaque joueur * @type {Array<PlayerPaymentInfo>} * @memberof BookingPaymentStatusResponse */ 'paymentStatus': Array<PlayerPaymentInfo>; /** * * @type {BookingPaymentStatusResponseSummary} * @memberof BookingPaymentStatusResponse */ 'summary': BookingPaymentStatusResponseSummary; } /** * Information de la réservation * @export * @interface BookingPaymentStatusResponseBooking */ export interface BookingPaymentStatusResponseBooking { /** * * @type {number} * @memberof BookingPaymentStatusResponseBooking */ 'totalPrice': number; /** * * @type {boolean} * @memberof BookingPaymentStatusResponseBooking */ 'isCreatorPayingAll': boolean; /** * * @type {BookingStatus} * @memberof BookingPaymentStatusResponseBooking */ 'status': BookingStatus; /** * * @type {string} * @memberof BookingPaymentStatusResponseBooking */ 'id': string; } /** * Résumé des paiements * @export * @interface BookingPaymentStatusResponseSummary */ export interface BookingPaymentStatusResponseSummary { /** * * @type {number} * @memberof BookingPaymentStatusResponseSummary */ 'paidAmount': number; /** * * @type {number} * @memberof BookingPaymentStatusResponseSummary */ 'totalAmount': number; /** * * @type {number} * @memberof BookingPaymentStatusResponseSummary */ 'playersNeedingCheckIn': number; /** * * @type {number} * @memberof BookingPaymentStatusResponseSummary */ 'playersWhoHavePaid': number; /** * * @type {number} * @memberof BookingPaymentStatusResponseSummary */ 'totalPlayers': number; } /** * * @export * @interface BookingPlayerInfo */ export interface BookingPlayerInfo { /** * * @type {string} * @memberof BookingPlayerInfo */ 'id': string; /** * * @type {string} * @memberof BookingPlayerInfo */ 'firstName'?: string | null; /** * * @type {string} * @memberof BookingPlayerInfo */ 'lastName'?: string | null; /** * * @type {string} * @memberof BookingPlayerInfo */ 'profilePicture'?: string | null; } /** * * @export * @interface BookingPlayerPaymentSummary */ export interface BookingPlayerPaymentSummary { /** * * @type {string} * @memberof BookingPlayerPaymentSummary */ 'id': string; /** * * @type {string} * @memberof BookingPlayerPaymentSummary */ 'firstName'?: string | null; /** * * @type {string} * @memberof BookingPlayerPaymentSummary */ 'lastName'?: string | null; /** * * @type {string} * @memberof BookingPlayerPaymentSummary */ 'profilePicture'?: string | null; /** * * @type {number} * @memberof BookingPlayerPaymentSummary */ 'amountToPay': number; /** * * @type {number} * @memberof BookingPlayerPaymentSummary */ 'usedCredits'?: number | null; /** * * @type {string} * @memberof BookingPlayerPaymentSummary */ 'invoiceId'?: string | null; /** * * @type {InvoiceStatus} * @memberof BookingPlayerPaymentSummary */ 'invoiceStatus'?: InvoiceStatus | null; /** * * @type {boolean} * @memberof BookingPlayerPaymentSummary */ 'isCreator': boolean; /** * Nom(s) des abonnements actifs du joueur dans le club. * @type {Array<string>} * @memberof BookingPlayerPaymentSummary */ 'subscriptions'?: Array<string>; } /** * * @export * @interface BookingPopulated */ export interface BookingPopulated { /** * ID de la réservation * @type {string} * @memberof BookingPopulated */ 'id': string; /** * * @type {string} * @memberof BookingPopulated */ 'clubId': string; /** * * @type {UserInfo} * @memberof BookingPopulated */ 'creator': UserInfo; /** * Informations des slots * @type {Array<SlotInfo>} * @memberof BookingPopulated */ 'slotInfos': Array<SlotInfo>; /** * * @type {Array<UserInfo>} * @memberof BookingPopulated */ 'players': Array<UserInfo>; /** * Joueurs inclus à la création de la réservation (pour les créneaux ouverts) * @type {Array<UserInfo>} * @memberof BookingPopulated */ 'initialPlayers'?: Array<UserInfo>; /** * Joueurs ayant rejoint après la création (pour les créneaux ouverts) * @type {Array<UserInfo>} * @memberof BookingPopulated */ 'joinedPlayers'?: Array<UserInfo>; /** * Statut des paiements par joueur * @type {Array<PaymentByPlayerInfo>} * @memberof BookingPopulated */ 'paymentByPlayers': Array<PaymentByPlayerInfo>; /** * * @type {boolean} * @memberof BookingPopulated */ 'noShowChargeApplied'?: boolean; /** * * @type {number} * @memberof BookingPopulated */ 'noShowChargeAmount'?: number; /** * * @type {number} * @memberof BookingPopulated */ 'totalPrice': number; /** * * @type {boolean} * @memberof BookingPopulated */ 'isCreatorPayingAll': boolean; /** * * @type {Array<BookingHistoryPopulated>} * @memberof BookingPopulated */ 'history': Array<BookingHistoryPopulated>; /** * * @type {BookingStatus} * @memberof BookingPopulated */ 'status': BookingStatus; /** * * @type {boolean} * @memberof BookingPopulated */ 'cancelledByManager'?: boolean; /** * * @type {string} * @memberof BookingPopulated */ 'cancelledBy'?: string; /** * * @type {string} * @memberof BookingPopulated */ 'cancellationReason'?: string; /** * * @type {boolean} * @memberof BookingPopulated */ 'isOpen': boolean; /** * * @type {string} * @memberof BookingPopulated */ 'description'?: string; /** * * @type {string} * @memberof BookingPopulated */ 'minLevel'?: string; /** * Nombre total réel de joueurs attendu (créateur inclus) * @type {number} * @memberof BookingPopulated */ 'playersCount': number; /** * * @type {number} * @memberof BookingPopulated */ 'guestPaymentsCount'?: number; /** * * @type {number} * @memberof BookingPopulated */ 'maxPlayersDesired'?: number; /** * * @type {PaymentDistributionResult} * @memberof BookingPopulated */ 'paymentDistribution'?: PaymentDistributionResult; } /** * * @export * @interface BookingPriceBody */ export interface BookingPriceBody { /** * * @type {Array<string>} * @memberof BookingPriceBody */ 'slotIds': Array<string>; /** * Nombre total réel de joueurs participant à la réservation (créateur inclus) * @type {number} * @memberof BookingPriceBody */ 'playersCount': number; /** * * @type {PaymentMethod} * @memberof BookingPriceBody */ 'paymentMethod': PaymentMethod; /** * Nombre maximal de joueurs visé après les joins * @type {number} * @memberof BookingPriceBody */ 'maxPlayersDesired': number; /** * * @type {Array<PlayerShare>} * @memberof BookingPriceBody */ 'playerShares'?: Array<PlayerShare>; /** * * @type {number} * @memberof BookingPriceBody */ 'creditToUseInCents'?: number; } /** * * @export * @interface BookingPriceResponse */ export interface BookingPriceResponse { /** * * @type {boolean} * @memberof BookingPriceResponse */ 'creatorNeedsToRegisterPaymentMethod': boolean; /** * * @type {boolean} * @memberof BookingPriceResponse */ 'needsToSetupPaymentMethod'?: boolean; /** * * @type {number} * @memberof BookingPriceResponse */ 'creatorCreditAvailableInCents'?: number; /** * Prix total brut de la réservation (sans réductions joueurs, en centimes) * @type {number} * @memberof BookingPriceResponse */ 'fullTotalPrice'?: number; /** * * @type {Array<PlayerPrice>} * @memberof BookingPriceResponse */ 'playerPrices': Array<PlayerPrice>; } /** * * @export * @interface BookingResponse */ export interface BookingResponse { /** * * @type {BookingInfo} * @memberof BookingResponse */ 'booking'?: BookingInfo; /** * URL de la facture (pour paiement en ligne) * @type {string} * @memberof BookingResponse */ 'invoiceUrl'?: string; /** * Construct a type with a set of properties K of type T * @type {{ [key: string]: string; }} * @memberof BookingResponse */ 'paymentLinks'?: { [key: string]: string; }; /** * Paiements sur place requis * @type {Array<BookingResponseOnsitePaymentsInner>} * @memberof BookingResponse */ 'onsitePayments'?: Array<BookingResponseOnsitePaymentsInner>; /** * * @type {string} * @memberof BookingResponse */ 'setupNoShowPaymentUrl'?: string; /** * Message de confirmation * @type {string} * @memberof BookingResponse */ 'message': string; } /** * * @export * @interface BookingResponseOnsitePaymentsInner */ export interface BookingResponseOnsitePaymentsInner { /** * * @type {number} * @memberof BookingResponseOnsitePaymentsInner */ 'amount': number; /** * * @type {string} * @memberof BookingResponseOnsitePaymentsInner */ 'playerId': string; } /** * * @export * @interface BookingSlotInfo */ export interface BookingSlotInfo { /** * * @type {string} * @memberof BookingSlotInfo */ 'id': string; /** * * @type {string} * @memberof BookingSlotInfo */ 'startDate'?: string | null; /** * * @type {string} * @memberof BookingSlotInfo */ 'endDate'?: string | null; /** * * @type {number} * @memberof BookingSlotInfo */ 'durationMinutes'?: number | null; /** * * @type {BookingCourtInfo} * @memberof BookingSlotInfo */ 'court'?: BookingCourtInfo | null; /** * * @type {BookingSportInfo} * @memberof BookingSlotInfo */ 'sport'?: BookingSportInfo | null; } /** * * @export * @interface BookingSportInfo */ export interface BookingSportInfo { /** * * @type {string} * @memberof BookingSportInfo */ 'id'?: string | null; /** * * @type {string} * @memberof BookingSportInfo */ 'key'?: string | null; } /** * * @export * @enum {string} */ export declare const BookingStatus: { readonly Paid: "paid"; readonly Validated: "validated"; readonly Active: "active"; readonly Pending: "pending"; readonly ActivePaymentsTimeout: "active_payments_timeout"; readonly Canceled: "canceled"; readonly NoShow: "no-show"; }; export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus]; /** * * @export * @interface BookingSummary */ export interface BookingSummary { /** * * @type {string} * @memberof BookingSummary */ 'id': string; /** * * @type {string} * @memberof BookingSummary */ 'clubId': string; /** * * @type {string} * @memberof BookingSummary */ 'userId': string; /** * * @type {Array<string>} * @memberof BookingSummary */ 'playersIds': Array<string>; /** * * @type {BookingStatus} * @memberof BookingSummary */ 'status': BookingStatus; /** * * @type {Array<BookingPaymentStatus>} * @memberof BookingSummary */ 'paymentByPlayersStatus': Array<BookingPaymentStatus>; /** * * @type {boolean} * @memberof BookingSummary */ 'isCreatorPayingAll': boolean; /** * * @type {number} * @memberof BookingSummary */ 'totalPrice': number; /** * * @type {Array<string>} * @memberof BookingSummary */ 'slotIds': Array<string>; /** * * @type {boolean} * @memberof BookingSummary */ 'isPublic': boolean; /** * * @type {boolean} * @memberof BookingSummary */ 'isOpen': boolean; /** * * @type {string} * @memberof BookingSummary */ 'description'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'minLevel'?: string | null; /** * * @type {number} * @memberof BookingSummary */ 'maxPlayersDesired'?: number | null; /** * * @type {Array<BookingPlayerInfo>} * @memberof BookingSummary */ 'initialPlayers'?: Array<BookingPlayerInfo>; /** * * @type {string} * @memberof BookingSummary */ 'requestingUserId': string; /** * * @type {string} * @memberof BookingSummary */ 'creatorPaymentMethodId'?: string | null; /** * * @type {boolean} * @memberof BookingSummary */ 'paymentMethodSetupCompleted': boolean; /** * * @type {number} * @memberof BookingSummary */ 'noShowChargeAmount'?: number | null; /** * * @type {boolean} * @memberof BookingSummary */ 'noShowChargeApplied'?: boolean; /** * * @type {string} * @memberof BookingSummary */ 'noShowChargeIntentId'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'cancellationReason'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'cancelledBy'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'cancelledAt'?: string | null; /** * * @type {boolean} * @memberof BookingSummary */ 'cancelledByManager'?: boolean; /** * * @type {string} * @memberof BookingSummary */ 'createdAt': string | null; /** * * @type {string} * @memberof BookingSummary */ 'updatedAt': string | null; /** * * @type {number} * @memberof BookingSummary */ 'playersCount'?: number | null; /** * * @type {number} * @memberof BookingSummary */ 'guestPaymentsCount'?: number | null; /** * * @type {string} * @memberof BookingSummary */ 'clubPicture'?: string; /** * * @type {string} * @memberof BookingSummary */ 'clubBanner'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'courtName'?: string; /** * * @type {string} * @memberof BookingSummary */ 'sportName'?: string; /** * * @type {string} * @memberof BookingSummary */ 'startDate'?: string; /** * * @type {InvoiceStatus} * @memberof BookingSummary */ 'myPaymentStatus'?: InvoiceStatus | null; /** * * @type {string} * @memberof BookingSummary */ 'bookingStatus'?: string; /** * * @type {Array<string>} * @memberof BookingSummary */ 'playersName': Array<string>; /** * * @type {number} * @memberof BookingSummary */ 'myAmountToPay': number; /** * * @type {string} * @memberof BookingSummary */ 'paymentUrl'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'stripeInvoiceUrl'?: string | null; /** * * @type {number} * @memberof BookingSummary */ 'totalAmount': number; /** * * @type {PaymentDistributionResult} * @memberof BookingSummary */ 'paymentDistribution'?: PaymentDistributionResult; /** * * @type {string} * @memberof BookingSummary */ 'timeBeforeCancel'?: string | null; /** * * @type {string} * @memberof BookingSummary */ 'limitCancellationDate'?: string | null; /** * * @type {BookingSummaryClubAddress} * @memberof BookingSummary */ 'clubAddress'?: BookingSummaryClubAddress | null; /** * * @type {Array<BookingHistoryPopulated>} * @memberof BookingSummary */ 'bookingHistory'?: Array<BookingHistoryPopulated>; /** * * @type {BookingClubInfo} * @memberof BookingSummary */ 'club'?: BookingClubInfo | null; /** * * @type {Array<BookingSlotInfo>} * @memberof BookingSummary */ 'slots': Array<BookingSlotInfo>; /** * * @type {BookingCourtInfo} * @memberof BookingSummary */ 'court'?: BookingCourtInfo | null; /** * * @type {BookingSportInfo} * @memberof BookingSummary */ 'sport'?: BookingSportInfo | null; /** * * @type {Array<BookingPlayerPaymentSummary>} * @memberof BookingSummary */ 'players': Array<BookingPlayerPaymentSummary>; /** * * @type {string} * @memberof BookingSummary */ 'userParticipationStatus'?: BookingSummaryUserParticipationStatusEnum; /** * * @type {number} * @memberof BookingSummary */ 'waitListPosition'?: number | null; } export declare const BookingSummaryUserParticipationStatusEnum: { readonly Participant: "participant"; readonly WaitingJoinPayment: "waitingJoinPayment"; readonly Waitlist: "waitlist"; }; export type BookingSummaryUserParticipationStatusEnum = typeof BookingSummaryUserParticipationStatusEnum[keyof typeof BookingSummaryUserParticipationStatusEnum]; /** * * @export * @interface BookingSummaryClubAddress */ export interface BookingSummaryClubAddress { } /** * * @export * @interface BookingsPerDayItem */ export interface BookingsPerDayItem { /** * Valeur mesurée sur la période actuelle * @type {number} * @memberof BookingsPerDayItem */ 'value': number; /** * Valeur de référence calculée avec la comparaison Same Weekday * @type {number} * @memberof BookingsPerDayItem */ 'reference': number; /** * Différence entre la valeur actuelle et la référence * @type {number} * @memberof BookingsPerDayItem */ 'delta': number; /** * * @type {TrendDirection} * @memberof BookingsPerDayItem */ 'trend': TrendDirection; /** * Jour au format YYYY-MM-DD * @type {string} * @memberof BookingsPerDayItem */ 'date': string; /** * Nombre de réservations dont la séance se déroule ce jour-là * @type {number} * @memberof BookingsPerDayItem */ 'bookingsCount': number; } /** * * @export * @interface BookingsPerDayResponse */ export interface BookingsPerDayResponse { /** * Date de début incluse (format ISO) * @type {string} * @memberof BookingsPerDayResponse */ 'startDate': string; /** * Date de fin incluse (format ISO) * @type {string} * @memberof BookingsPerDayResponse */ 'endDate': string; /** * Comptes quotidiens * @type {Array<BookingsPerDayItem>} * @memberof BookingsPerDayResponse */ 'dailyCounts': Array<BookingsPerDayItem>; } /** * * @export * @interface BookingsWithTimeBoundsResponse */ export interface BookingsWithTimeBoundsResponse { /** * * @type {Array<AgendaBooking>} * @memberof BookingsWithTimeBoundsResponse */ 'bookings': Array<AgendaBooking>; /** * * @type {TimeBounds} * @memberof BookingsWithTimeBoundsResponse */ 'timeBounds': TimeBounds; } /** * * @export * @interface CancelBookingResponse */ export interface CancelBookingResponse { /** * Message de confirmation * @type {string} * @memberof CancelBookingResponse */ 'message': string; /** * * @type {BookingInfo} * @memberof CancelBookingResponse */ 'booking': BookingInfo; } /** * * @export * @interface CancelIncompleteBody */ export interface CancelIncompleteBody { /** * * @type {string} * @memberof CancelIncompleteBody */ 'subscriptionId': string; /** * * @type {string} * @memberof CancelIncompleteBody */ 'clubId': string; } /** * * @export * @interface CancelIncompleteResponse */ export interface CancelIncompleteResponse { /** * * @type {string} * @memberof CancelIncompleteResponse */ 'subscriptionId'?: string; /** * * @type {string} * @memberof CancelIncompleteResponse */ 'status'?: string; /** * * @type {boolean} * @memberof CancelIncompleteResponse */ 'canceled': boolean; } /** * * @export * @interface CaptureResult */ export interface CaptureResult { /** * Type de paiement * @type {string} * @memberof CaptureResult */ 'type': CaptureResultTypeEnum; /** * ID du joueur (optionnel) * @type {string} * @memberof CaptureResult */ 'playerId'?: string; /** * ID du PaymentIntent Stripe * @type {string} * @memberof CaptureResult */ 'paymentIntentId': string; /** * Montant capturé * @type {number} * @memberof CaptureResult */ 'amount'?: number; /** * URL de reçu Stripe * @type {string} * @memberof CaptureResult */ 'receiptUrl'?: string; /** * Statut de la capture * @type {string} * @memberof CaptureResult */ 'status': CaptureResultStatusEnum; /** * Erreur (si échoué) * @type {string} * @memberof CaptureResult */ 'error'?: string; } export declare const CaptureResultTypeEnum: { readonly CreatorPayment: "creator_payment"; readonly PlayerPayment: "player_payment"; }; export type CaptureResultTypeEnum = typeof CaptureResultTypeEnum[keyof typeof CaptureResultTypeEnum]; export declare const CaptureResultStatusEnum: { readonly Captured: "captured"; readonly Failed: "failed"; }; export type CaptureResultStatusEnum = typeof CaptureResultStatusEnum[keyof typeof CaptureResultStatusEnum]; /** * * @export * @interface ChangePasswordRequestBody */ export interface ChangePasswordRequestBody { /** * * @type {string} * @memberof ChangePasswordRequestBody */ 'currentPassword': string; /** * * @type {string} * @memberof ChangePasswordRequestBody */ 'newPassword': string; } /** * * @export * @interface ChangePasswordResponse */ export interface ChangePasswordResponse { /** * * @type {string} * @memberof ChangePasswordResponse */ 'message': string; } /** * * @export * @interface CharacteristicEntry */ export interface CharacteristicEntry { /** * * @type {string} * @memberof CharacteristicEntry */ 'value': string; /** * * @type {string} * @memberof CharacteristicEntry */ 'key': string; } /** * * @export * @interface CheckInEventParticipants200Response */ export interface CheckInEventParticipants200Response { /** * * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>} * @memberof CheckInEventParticipants200Response */ 'invoices': Array<CheckInEventParticipants200ResponseInvoicesInner>; /** * * @type {string} * @memberof CheckInEventParticipants200Response */ 'message': string; } /** * * @export * @interface CheckInEventParticipants200ResponseInvoicesInner */ export interface CheckInEventParticipants200ResponseInvoicesInner { /** * * @type {PaymentMethod} * @memberof CheckInEventParticipants200ResponseInvoicesInner */ 'paymentMethod': PaymentMethod; /** * * @type {string} * @memberof CheckInEventParticipants200ResponseInvoicesInner */ 'status': string; /** * * @type {number} * @memberof CheckInEventParticipants200ResponseInvoicesInner */ 'amount': number; /** * * @type {string} * @memberof CheckInEventParticipants200ResponseInvoicesInner */ 'invoiceId': string; /** * * @type {string} * @memberof CheckInEventParticipants200ResponseInvoicesInner */ 'playerId': string; } /** * * @export * @interface CheckInEventParticipantsRequest */ export interface CheckInEventParticipantsRequest { /** * * @type {string} * @memberof CheckInEventParticipantsRequest */ 'playerId': string; } /** * * @export * @interface CheckInPlayerRequest */ export interface CheckInPlayerRequest { /** * ID du joueur qui a payé/est arrivé * @type {string} * @memberof CheckInPlayerRequest */ 'playerId': string; } /** * * @export * @interface CheckInPlayerResponse */ export interface CheckInPlayerResponse { /** * Message de confirmation * @type {string} * @memberof CheckInPlayerResponse */ 'message': string; /** * * @type {CheckedInPlayer} * @memberof CheckInPlayerResponse */ 'invoice': CheckedInPlayer; } /** * * @export * @interface CheckInPlayerSumupRequest */ export interface CheckInPlayerSumupRequest { /** * ID du joueur qui a payé/est arrivé * @type {string} * @memberof CheckInPlayerSumupRequest */ 'playerId': string; /** * Reader SumUp ciblé (optionnel) * @type {string} * @memberof CheckInPlayerSumupRequest */ 'readerId'?: string; } /** * * @export * @interface CheckInPlayerSumupResponse */ export interface CheckInPlayerSumupResponse { /** * Message de confirmation * @type {string} * @memberof CheckInPlayerSumupResponse */ 'message': string; /** * * @type {CheckedInPlayer} * @memberof CheckInPlayerSumupResponse */ 'invoice': CheckedInPlayer; /** * * @type {CheckInSumupPaymentInfo} * @memberof CheckInPlayerSumupResponse */ 'sumupPayment'?: CheckInSumupPaymentInfo; } /** * * @export * @interface CheckInSumupPaymentInfo */ export interface CheckInSumupPaymentInfo { /** * ID du paiement SumUp * @type {string} * @memberof CheckInSumupPaymentInfo */ 'paymentId': string; /** * ID du checkout SumUp * @type {string} * @memberof CheckInSumupPaymentInfo */ 'checkoutId'?: string; /** * * @type {PaymentStatus} * @memberof CheckInSumupPaymentInfo */ 'status': PaymentStatus; /** * Reader SumUp utilisé * @type {string} * @memberof CheckInSumupPaymentInfo */ 'readerId'?: string; } /** * * @export * @interface CheckTeamNameAvailability200Response */ export interface CheckTeamNameAvailability200Response { /** * * @type {boolean} * @memberof CheckTeamNameAvailability200Response */ 'available': boolean; } /** * * @export * @interface CheckedInPlayer */ export interface CheckedInPlayer { /** * ID du joueur * @type {string} * @memberof CheckedInPlayer */ 'playerId': string; /** * ID de la facture * @type {string} * @memberof CheckedInPlayer */ 'invoiceId': string; /** * Montant payé * @type {number} * @memberof CheckedInPlayer */ 'amount': number; /** * Statut précédent (optionnel) * @type {string} * @memberof CheckedInPlayer */ 'previousStatus'?: string; /** * Nouveau statut (optionnel) * @type {string} * @memberof CheckedInPlayer */ 'newStatus'?: string; /** * Statut actuel * @type {string} * @memberof CheckedInPlayer */ 'status'?: string; /** * * @type {PaymentMethod} * @memberof CheckedInPlayer */ 'paymentMethod'?: PaymentMethod; /** * Note additionnelle * @type {string} * @memberof CheckedInPlayer */ 'note'?: string; } /** * * @export * @interface ClientFullOnboardingResponse */ export interface ClientFullOnboardingResponse { /** * * @type {string} * @memberof ClientFullOnboardingResponse */ 'clientAccountId': string; /** * * @type {string} * @memberof ClientFullOnboardingResponse */ 'stripeCustomerId': string; /** * * @type {string} * @memberof ClientFullOnboardingResponse */ 'stripeConnectedAccountId'?: string; /** * * @type {ClientFullOnboardingResponseClub} * @memberof ClientFullOnboardingResponse */ 'club': ClientFullOnboardingResponseClub; /** * * @type {string} * @memberof ClientFullOnboardingResponse */ 'message': string; } /** * * @export * @interface ClientFullOnboardingResponseClub */ export interface ClientFullOnboardingResponseClub { /** * * @type {string} * @memberof ClientFullOnboardingResponseClub */ 'clubType'?: string; /** * * @type {string} * @memberof ClientFullOnboardingResponseClub */ 'clubOnboardingLink'?: string; /** * * @type {string} * @memberof ClientFullOnboardingResponseClub */ 'stripeAccountId': string; /** * * @type {string} * @memberof ClientFullOnboardingResponseClub */ 'clubId': string; } /** * Facture de plateforme d\'un ClientAccount (abonnements, paiements) * @export * @interface ClientInvoiceResponse */ export interface ClientInvoiceResponse { /** * ID de la facture * @type {string} * @memberof ClientInvoiceResponse */ 'id': string; /** * ID du compte client * @type {string} * @memberof ClientInvoiceResponse */ 'clientAccountId': string; /** * ID de l\'utilisateur * @type {string} * @memberof ClientInvoiceResponse */ 'userId': string; /** * ID de la facture Stripe * @type {string} * @memberof ClientInvoiceResponse */ 'stripeInvoiceId': string; /** * ID du customer Stripe * @type {string} * @memberof ClientInvoiceResponse */ 'stripeCustomerId': string; /** * ID du PaymentIntent Stripe (optionnel) * @type {string} * @memberof ClientInvoiceResponse */ 'stripePaymentIntentId'?: string; /** * ID de l\'abonnement Stripe (optionnel) * @type {string} * @memberof ClientInvoiceResponse */ 'stripeSubscriptionId'?: string; /** * URL publique de la facture Stripe (optionnel) * @type {string} * @memberof ClientInvoiceResponse */ 'stripeInvoiceUrl'?: string; /** * URL du PDF de la facture Stripe (optionnel) * @type {string} * @memberof ClientInvoiceResponse */ 'stripeInvoicePdf'?: string; /** * Montant total de la facture en centimes * @type {number} * @memberof ClientInvoiceResponse */ 'amount': number; /** * Montant payé en centimes * @type {number} * @memberof ClientInvoiceResponse */ 'amountPaid': number; /** * Devise (ex: \"eur\", \"usd\") * @type {string} * @memberof ClientInvoiceResponse */ 'currency': string; /** * Statut de la facture (draft, open, paid, void, uncollectible) * @type {string} * @memberof ClientInvoiceResponse */ 'status': string; /** * Description de la facture *