@tennac-booking/sdk 1.0.81 → 1.0.83
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 +270 -134
- package/README.md +356 -123
- package/api.ts +18731 -6267
- package/base.ts +4 -4
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +12587 -3704
- package/dist/api.js +8344 -2830
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +12587 -3704
- package/dist/esm/api.js +8245 -2731
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +4 -4
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/docs/{DeleteSlotsByClubInRange200Response.md → AddClubMember201Response.md} +6 -4
- package/docs/AddClubMemberRequest.md +7 -3
- package/docs/AddOrganizationRequest.md +22 -0
- package/docs/AddPaymentMethodRequestBody.md +20 -0
- package/docs/BookingAnalyticsResponse.md +34 -0
- package/docs/BookingDetailResponse.md +46 -0
- package/docs/BookingHistoryPopulated.md +34 -0
- package/docs/BookingInfo.md +50 -0
- package/docs/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +27 -0
- package/docs/BookingPaymentStatusResponseSummary.md +29 -0
- package/docs/BookingPopulated.md +48 -0
- package/docs/BookingResponse.md +4 -4
- package/docs/BookingResponseOnsitePaymentsInner.md +22 -0
- package/docs/BookingStatus.md +11 -1
- package/docs/BookingSummary.md +44 -0
- package/docs/{GetAllSportsRequest.md → BookingSummaryClubAddress.md} +3 -5
- package/docs/BookingsApi.md +138 -0
- package/docs/{ManagerSportsApi.md → BookingsManagerApi.md} +30 -34
- package/docs/BookingsStaffApi.md +323 -0
- package/docs/{UserBookingsApi.md → BookingsUserApi.md} +18 -26
- package/docs/CancelBookingResponse.md +1 -1
- package/docs/CaptureResult.md +30 -0
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +22 -0
- package/docs/CheckedInPlayer.md +34 -0
- package/docs/{AdminClubsApi.md → ClubAnalyticsApi.md} +27 -34
- package/docs/ClubAnalyticsStaffApi.md +696 -0
- package/docs/ClubDaySchedule.md +22 -0
- package/docs/ClubGeneralSettingsResponse.md +34 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubMemberResponse.md +24 -0
- package/docs/ClubMemberResponseUser.md +27 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +24 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/{RestoreSubscriptionPlanForClub200Response.md → ClubPlayerDetailResponseSportsLevelsInner.md} +7 -5
- package/docs/ClubPlayerResponse.md +36 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationAccessSettingsResponse.md +26 -0
- package/docs/ClubReservationSettingsResponse.md +36 -0
- package/docs/ClubResponse.md +26 -22
- package/docs/ClubResponseCreatedAt.md +19 -0
- package/docs/ClubResponseLocation.md +29 -0
- package/docs/ClubResponseLocationCoordinates.md +22 -0
- package/docs/ClubResponseUpdatedAt.md +19 -0
- package/docs/ClubRoleResponse.md +11 -9
- package/docs/ClubRolesManagerApi.md +177 -0
- package/docs/ClubRolesStaffApi.md +154 -0
- package/docs/ClubSettingsManagerApi.md +325 -0
- package/docs/ClubSettingsResponse.md +41 -0
- package/docs/ClubSettingsStaffApi.md +95 -0
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubSummary.md +28 -0
- package/docs/{GetNumberOfClubUsers200Response.md → ClubUserCountResponse.md} +4 -4
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsApi.md +614 -0
- package/docs/ClubsManagerApi.md +1054 -0
- package/docs/ClubsStaffApi.md +417 -0
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/CourtInfo.md +28 -0
- package/docs/CourtResponse.md +20 -16
- package/docs/CourtStatus.md +2 -5
- package/docs/CreateBookingRequest.md +3 -3
- package/docs/CreateClubRequest.md +0 -18
- package/docs/{ConfirmPaymentMethodSetupRequestBody.md → CreateClubRoleRequest.md} +7 -5
- package/docs/CreateClubSettingsRequest.md +15 -9
- package/docs/CreateCourtForClub201Response.md +20 -0
- package/docs/CreateCourtRequest.md +10 -12
- package/docs/CreateEventRequest.md +56 -0
- package/docs/CreatePlan201Response.md +22 -0
- package/docs/CreateSportForClub201Response.md +20 -0
- package/docs/CreateSportForClubRequest.md +26 -0
- package/docs/CreateSportRequest.md +6 -6
- package/docs/CreateSubscriptionPlanRequest.md +12 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/CreatorChargeResult.md +26 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/{StaffSportsApi.md → DefaultApi.md} +18 -18
- package/docs/{DeleteSlotsResponse.md → DeleteClubRoleResponse.md} +4 -4
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/{DeleteSport200Response.md → DeleteCourtResponse.md} +4 -4
- package/docs/{GenerateSlotsResponse.md → DeleteEventResponse.md} +4 -4
- package/docs/{DeleteClubRole200Response.md → DeleteSportResponse.md} +4 -4
- package/docs/DeleteSubscriptionPlanResponse.md +20 -0
- package/docs/{StripeStatus.md → DiscountType.md} +5 -7
- package/docs/EventResponse.md +66 -0
- package/docs/EventsApi.md +238 -0
- package/docs/EventsListResponse.md +20 -0
- package/docs/{ManagerClubsApi.md → EventsManagerApi.md} +79 -75
- package/docs/{StaffProfileApi.md → EventsStaffApi.md} +14 -13
- package/docs/{AddClubMemberResponse.md → FavoriteClubMutationResponse.md} +6 -6
- package/docs/{GetClubSettingsRequest.md → FavoriteClubRequestBody.md} +3 -3
- package/docs/{BlockSlotResponse.md → FavoriteClubsResponse.md} +5 -7
- package/docs/FavoritePlayerMutationResponse.md +22 -0
- package/docs/FavoritePlayerRequestBody.md +20 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/Gender.md +12 -0
- package/docs/GenderPercentageResponse.md +26 -0
- package/docs/GetActualities200Response.md +20 -0
- package/docs/GetAvailableSlotsBySports200Response.md +20 -0
- package/docs/{ClubMembersResponse.md → GetClubMembers200Response.md} +6 -6
- package/docs/GetClubRoles200Response.md +20 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +26 -0
- package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +24 -0
- package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
- package/docs/GoogleAuthRequestBody.md +20 -0
- package/docs/GoogleAuthResponse.md +30 -0
- package/docs/GoogleAuthResponseUser.md +26 -0
- package/docs/HotelAccessSettings.md +26 -0
- package/docs/{Court.md → ICourtData.md} +18 -6
- package/docs/ILevelBySports.md +22 -0
- package/docs/IUserAttributes.md +82 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/IUserLocation.md +44 -0
- package/docs/InvoiceInfo.md +24 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/{ApiErrorResponse.md → JoinEventResponse.md} +6 -6
- package/docs/LastSixMonthsTurnoverItem.md +22 -0
- package/docs/{ActiveClub.md → LevelBySportEntry.md} +7 -7
- package/docs/LoginResponse.md +2 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +1 -1
- package/docs/MonthlyBreakdown.md +24 -0
- package/docs/MonthlyTurnoverResponse.md +29 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/OffPeakRule.md +26 -0
- package/docs/PartialClubResponse.md +51 -0
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/PartialHotelAccessSettings.md +27 -0
- package/docs/PartialPaymentRequirementsSettings.md +23 -0
- package/docs/PartialPublicAccessPartialPublicAccessSettingsSchoolAccessPartialSchoolAccessSettingsHotelAccessPartialHotelAccessSettingsPaymentRequirementsPartialPaymentRequirementsSettings.md +27 -0
- package/docs/PartialPublicAccessSettings.md +25 -0
- package/docs/PartialSchoolAccessSettings.md +25 -0
- package/docs/PasswordResetRequestBody.md +20 -0
- package/docs/PaymentByPlayerInfo.md +22 -0
- package/docs/PaymentMethod.md +2 -1
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/PaymentRequirementsSettings.md +22 -0
- package/docs/PickIUserLocationExcludeKeyofIUserLocationType.md +43 -0
- package/docs/PlanInterval.md +14 -0
- package/docs/PlayerCategoriesResponse.md +20 -0
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/PlayerPaymentInfo.md +36 -0
- package/docs/PlayerSummary.md +42 -0
- package/docs/ProfilePictureResponse.md +20 -0
- package/docs/{ActiveClubListResponse.md → ProfilePictureUpdateRequestBody.md} +5 -5
- package/docs/PublicAccessSettings.md +24 -0
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/PublicUserProfileResponse.md +44 -0
- package/docs/PublishEventResponse.md +20 -0
- package/docs/QuickReservationClubSummary.md +28 -0
- package/docs/QuickReservationClubSummaryLocation.md +31 -0
- package/docs/QuickReservationResponse.md +22 -0
- package/docs/QuickReservationSlotSummary.md +42 -0
- package/docs/RefreshTokenResponse.md +6 -2
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/RegisterRequestBodyLocation.md +44 -0
- package/docs/RequestPasswordReset200Response.md +20 -0
- package/docs/{GoogleSignInResponse.md → ResetPasswordRequest.md} +5 -7
- package/docs/SchoolAccessSettings.md +24 -0
- package/docs/SetupPaymentMethodRequestBody.md +1 -3
- package/docs/SetupPaymentMethodResponse.md +3 -3
- package/docs/SlotInfo.md +26 -0
- package/docs/SportAnalyticsResponse.md +24 -0
- package/docs/SportInfo.md +22 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +14 -8
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +180 -0
- package/docs/SportsStaffApi.md +55 -0
- package/docs/StaffUserProfileResponse.md +86 -0
- package/docs/StripeStripeDeletedProduct.md +25 -0
- package/docs/StripeStripePrice.md +63 -0
- package/docs/StripeStripePriceBillingScheme.md +10 -0
- package/docs/StripeStripePriceCurrencyOptions.md +28 -0
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
- package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
- package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceProduct.md +59 -0
- package/docs/StripeStripePriceRecurring.md +28 -0
- package/docs/StripeStripePriceRecurringInterval.md +14 -0
- package/docs/StripeStripePriceRecurringUsageType.md +10 -0
- package/docs/StripeStripePriceTaxBehavior.md +12 -0
- package/docs/StripeStripePriceTier.md +28 -0
- package/docs/StripeStripePriceTiersMode.md +10 -0
- package/docs/StripeStripePriceTransformQuantity.md +22 -0
- package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
- package/docs/StripeStripePriceType.md +10 -0
- package/docs/StripeStripeProduct.md +59 -0
- package/docs/StripeStripeProductDefaultPrice.md +63 -0
- package/docs/StripeStripeProductMarketingFeature.md +20 -0
- package/docs/StripeStripeProductPackageDimensions.md +26 -0
- package/docs/StripeStripeProductTaxCode.md +27 -0
- package/docs/StripeStripeProductType.md +10 -0
- package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
- package/docs/StripeStripeTaxCode.md +27 -0
- package/docs/{DeleteClubSettingsRequest.md → SubscribeRequestBody.md} +5 -3
- package/docs/SubscriberPrice.md +22 -0
- package/docs/SubscriptionMutationResponse.md +20 -0
- package/docs/SubscriptionPlanResponse.md +16 -14
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/{StaffClubsApi.md → SubscriptionsPublicApi.md} +16 -15
- package/docs/{UserClubsApi.md → SubscriptionsStaffApi.md} +13 -12
- package/docs/SubscriptionsUserApi.md +222 -0
- package/docs/SurfaceType.md +12 -0
- package/docs/Team.md +22 -0
- package/docs/UpdateActuality200Response.md +20 -0
- package/docs/{GetClubInfos200Response.md → UpdateClubGeneralSettingsRequest.md} +11 -7
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubRequest.md +14 -20
- package/docs/UpdateClubRequestLocation.md +29 -0
- package/docs/UpdateClubRequestLocationCoordinates.md +22 -0
- package/docs/UpdateClubReservationSettingsRequest.md +34 -0
- package/docs/UpdateClubRoleRequest.md +22 -0
- package/docs/UpdateClubSettingsRequest.md +14 -10
- package/docs/UpdateCustomerRequestBody.md +3 -7
- package/docs/UpdateCustomerResponse.md +1 -3
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/{ClubListResponse.md → UpdateLevelBySportsRequestBody.md} +5 -7
- package/docs/UpdatePlanRequest.md +22 -0
- package/docs/UpdateSportRequest.md +7 -3
- package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserInfo.md +28 -0
- package/docs/UserLocationSummary.md +44 -0
- package/docs/UserProfileResponse.md +94 -0
- package/docs/UserRolesResponse.md +20 -0
- package/docs/{GetActiveClubs200Response.md → UserSubscriptionsResponse.md} +5 -5
- package/docs/UsersApi.md +1963 -0
- package/docs/VerifyEmailRequest.md +20 -0
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/index.ts +3 -3
- package/package.json +5 -4
- package/docs/AdminClubSlotsApi.md +0 -62
- package/docs/Booking.md +0 -32
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/Club.md +0 -46
- package/docs/ClubInfoResponse.md +0 -46
- package/docs/ClubMember.md +0 -34
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -34
- package/docs/ClubsResponse.md +0 -22
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtsResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -24
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -118
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -125
- package/docs/ManagerClubSubscriptionsApi.md +0 -408
- package/docs/PriceResponse.md +0 -32
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/Sport.md +0 -24
- package/docs/SportsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -111
- package/docs/StaffClubBookingsApi.md +0 -59
- package/docs/StaffClubSettingsApi.md +0 -62
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/User.md +0 -40
- package/docs/UserApi.md +0 -119
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserPaymentApi.md +0 -121
- package/docs/UserProfileApi.md +0 -224
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersResponse.md +0 -22
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
# UserAuthenticationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
|
|
8
|
-
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
|
|
9
|
-
|[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
|
|
10
|
-
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | Authentifie ou crée un utilisateur via Google OAuth|
|
|
11
|
-
|
|
12
|
-
# **login**
|
|
13
|
-
> LoginResponse login(loginRequestBody)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
UserAuthenticationApi,
|
|
21
|
-
Configuration,
|
|
22
|
-
LoginRequestBody
|
|
23
|
-
} from '@tennac-booking/sdk';
|
|
24
|
-
|
|
25
|
-
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
27
|
-
|
|
28
|
-
let loginRequestBody: LoginRequestBody; //
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.login(
|
|
31
|
-
loginRequestBody
|
|
32
|
-
);
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Return type
|
|
43
|
-
|
|
44
|
-
**LoginResponse**
|
|
45
|
-
|
|
46
|
-
### Authorization
|
|
47
|
-
|
|
48
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
-
|
|
50
|
-
### HTTP request headers
|
|
51
|
-
|
|
52
|
-
- **Content-Type**: application/json
|
|
53
|
-
- **Accept**: application/json
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### HTTP response details
|
|
57
|
-
| Status code | Description | Response headers |
|
|
58
|
-
|-------------|-------------|------------------|
|
|
59
|
-
|**200** | Authentification réussie | - |
|
|
60
|
-
|**400** | Requête invalide | - |
|
|
61
|
-
|**401** | Non autorisé | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
64
|
-
[[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)
|
|
65
|
-
|
|
66
|
-
# **refreshToken**
|
|
67
|
-
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Example
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
import {
|
|
74
|
-
UserAuthenticationApi,
|
|
75
|
-
Configuration,
|
|
76
|
-
RefreshTokenRequestBody
|
|
77
|
-
} from '@tennac-booking/sdk';
|
|
78
|
-
|
|
79
|
-
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
81
|
-
|
|
82
|
-
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
83
|
-
|
|
84
|
-
const { status, data } = await apiInstance.refreshToken(
|
|
85
|
-
refreshTokenRequestBody
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Parameters
|
|
90
|
-
|
|
91
|
-
|Name | Type | Description | Notes|
|
|
92
|
-
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Return type
|
|
97
|
-
|
|
98
|
-
**RefreshTokenResponse**
|
|
99
|
-
|
|
100
|
-
### Authorization
|
|
101
|
-
|
|
102
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
103
|
-
|
|
104
|
-
### HTTP request headers
|
|
105
|
-
|
|
106
|
-
- **Content-Type**: application/json
|
|
107
|
-
- **Accept**: application/json
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### HTTP response details
|
|
111
|
-
| Status code | Description | Response headers |
|
|
112
|
-
|-------------|-------------|------------------|
|
|
113
|
-
|**200** | Nouveaux tokens | - |
|
|
114
|
-
|**400** | Requête invalide | - |
|
|
115
|
-
|**401** | Non autorisé | - |
|
|
116
|
-
|**500** | Erreur serveur interne | - |
|
|
117
|
-
|
|
118
|
-
[[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)
|
|
119
|
-
|
|
120
|
-
# **register**
|
|
121
|
-
> UserResponse register(registerRequestBody)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### Example
|
|
125
|
-
|
|
126
|
-
```typescript
|
|
127
|
-
import {
|
|
128
|
-
UserAuthenticationApi,
|
|
129
|
-
Configuration,
|
|
130
|
-
RegisterRequestBody
|
|
131
|
-
} from '@tennac-booking/sdk';
|
|
132
|
-
|
|
133
|
-
const configuration = new Configuration();
|
|
134
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
135
|
-
|
|
136
|
-
let registerRequestBody: RegisterRequestBody; //
|
|
137
|
-
|
|
138
|
-
const { status, data } = await apiInstance.register(
|
|
139
|
-
registerRequestBody
|
|
140
|
-
);
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Parameters
|
|
144
|
-
|
|
145
|
-
|Name | Type | Description | Notes|
|
|
146
|
-
|------------- | ------------- | ------------- | -------------|
|
|
147
|
-
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### Return type
|
|
151
|
-
|
|
152
|
-
**UserResponse**
|
|
153
|
-
|
|
154
|
-
### Authorization
|
|
155
|
-
|
|
156
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
157
|
-
|
|
158
|
-
### HTTP request headers
|
|
159
|
-
|
|
160
|
-
- **Content-Type**: application/json
|
|
161
|
-
- **Accept**: application/json
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### HTTP response details
|
|
165
|
-
| Status code | Description | Response headers |
|
|
166
|
-
|-------------|-------------|------------------|
|
|
167
|
-
|**201** | Utilisateur créé | - |
|
|
168
|
-
|**400** | Requête invalide | - |
|
|
169
|
-
|**409** | Email déjà utilisé | - |
|
|
170
|
-
|**500** | Erreur serveur interne | - |
|
|
171
|
-
|
|
172
|
-
[[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)
|
|
173
|
-
|
|
174
|
-
# **signInOrSignUpWithGoogle**
|
|
175
|
-
> GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### Example
|
|
179
|
-
|
|
180
|
-
```typescript
|
|
181
|
-
import {
|
|
182
|
-
UserAuthenticationApi,
|
|
183
|
-
Configuration,
|
|
184
|
-
GoogleSignInRequestBody
|
|
185
|
-
} from '@tennac-booking/sdk';
|
|
186
|
-
|
|
187
|
-
const configuration = new Configuration();
|
|
188
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
189
|
-
|
|
190
|
-
let googleSignInRequestBody: GoogleSignInRequestBody; //
|
|
191
|
-
|
|
192
|
-
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
193
|
-
googleSignInRequestBody
|
|
194
|
-
);
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Parameters
|
|
198
|
-
|
|
199
|
-
|Name | Type | Description | Notes|
|
|
200
|
-
|------------- | ------------- | ------------- | -------------|
|
|
201
|
-
| **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
### Return type
|
|
205
|
-
|
|
206
|
-
**GoogleSignInResponse**
|
|
207
|
-
|
|
208
|
-
### Authorization
|
|
209
|
-
|
|
210
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
211
|
-
|
|
212
|
-
### HTTP request headers
|
|
213
|
-
|
|
214
|
-
- **Content-Type**: application/json
|
|
215
|
-
- **Accept**: application/json
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
### HTTP response details
|
|
219
|
-
| Status code | Description | Response headers |
|
|
220
|
-
|-------------|-------------|------------------|
|
|
221
|
-
|**200** | Authentification Google réussie | - |
|
|
222
|
-
|**400** | Requête invalide | - |
|
|
223
|
-
|**500** | Erreur serveur interne | - |
|
|
224
|
-
|
|
225
|
-
[[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)
|
|
226
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# UserClubCourtsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getCourtsByClubAndSport**](#getcourtsbyclubandsport) | **GET** /api/clubs/{id}/sports/{sportId}/courts | Récupérer les terrains d\'un club pour un sport spécifique|
|
|
8
|
-
|
|
9
|
-
# **getCourtsByClubAndSport**
|
|
10
|
-
> GetCourtsByClubAndSport200Response getCourtsByClubAndSport()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import {
|
|
17
|
-
UserClubCourtsApi,
|
|
18
|
-
Configuration
|
|
19
|
-
} from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new UserClubCourtsApi(configuration);
|
|
23
|
-
|
|
24
|
-
let id: string; //ID du club (default to undefined)
|
|
25
|
-
let sportId: string; //ID du sport (default to undefined)
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.getCourtsByClubAndSport(
|
|
28
|
-
id,
|
|
29
|
-
sportId
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
38
|
-
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Return type
|
|
42
|
-
|
|
43
|
-
**GetCourtsByClubAndSport200Response**
|
|
44
|
-
|
|
45
|
-
### Authorization
|
|
46
|
-
|
|
47
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
-
|
|
49
|
-
### HTTP request headers
|
|
50
|
-
|
|
51
|
-
- **Content-Type**: Not defined
|
|
52
|
-
- **Accept**: application/json
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### HTTP response details
|
|
56
|
-
| Status code | Description | Response headers |
|
|
57
|
-
|-------------|-------------|------------------|
|
|
58
|
-
|**200** | Liste des terrains du club pour le sport spécifié | - |
|
|
59
|
-
|**400** | Requête invalide | - |
|
|
60
|
-
|**404** | Ressource non trouvée | - |
|
|
61
|
-
|**500** | Erreur serveur interne | - |
|
|
62
|
-
|
|
63
|
-
[[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)
|
|
64
|
-
|
package/docs/UserClubSlotsApi.md
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
# UserClubSlotsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club|
|
|
8
|
-
|[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
|
|
9
|
-
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
|
|
10
|
-
|
|
11
|
-
# **getAvailableSlotsByClub**
|
|
12
|
-
> SlotsResponse getAvailableSlotsByClub()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
UserClubSlotsApi,
|
|
20
|
-
Configuration
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new UserClubSlotsApi(configuration);
|
|
25
|
-
|
|
26
|
-
let clubID: string; //ID du club (default to undefined)
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.getAvailableSlotsByClub(
|
|
29
|
-
clubID
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **clubID** | [**string**] | ID du club | defaults to undefined|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Return type
|
|
41
|
-
|
|
42
|
-
**SlotsResponse**
|
|
43
|
-
|
|
44
|
-
### Authorization
|
|
45
|
-
|
|
46
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
-
|
|
48
|
-
### HTTP request headers
|
|
49
|
-
|
|
50
|
-
- **Content-Type**: Not defined
|
|
51
|
-
- **Accept**: application/json
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### HTTP response details
|
|
55
|
-
| Status code | Description | Response headers |
|
|
56
|
-
|-------------|-------------|------------------|
|
|
57
|
-
|**200** | Liste des créneaux disponibles pour le club | - |
|
|
58
|
-
|**400** | Requête invalide | - |
|
|
59
|
-
|**500** | Erreur serveur interne | - |
|
|
60
|
-
|
|
61
|
-
[[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)
|
|
62
|
-
|
|
63
|
-
# **getAvailableSlotsBySports**
|
|
64
|
-
> SlotsResponse getAvailableSlotsBySports()
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Example
|
|
68
|
-
|
|
69
|
-
```typescript
|
|
70
|
-
import {
|
|
71
|
-
UserClubSlotsApi,
|
|
72
|
-
Configuration
|
|
73
|
-
} from '@tennac-booking/sdk';
|
|
74
|
-
|
|
75
|
-
const configuration = new Configuration();
|
|
76
|
-
const apiInstance = new UserClubSlotsApi(configuration);
|
|
77
|
-
|
|
78
|
-
let id: string; //ID du club (default to undefined)
|
|
79
|
-
let sportId: string; //ID du sport (default to undefined)
|
|
80
|
-
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
81
|
-
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
82
|
-
|
|
83
|
-
const { status, data } = await apiInstance.getAvailableSlotsBySports(
|
|
84
|
-
id,
|
|
85
|
-
sportId,
|
|
86
|
-
start,
|
|
87
|
-
end
|
|
88
|
-
);
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Parameters
|
|
92
|
-
|
|
93
|
-
|Name | Type | Description | Notes|
|
|
94
|
-
|------------- | ------------- | ------------- | -------------|
|
|
95
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
96
|
-
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
97
|
-
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
98
|
-
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### Return type
|
|
102
|
-
|
|
103
|
-
**SlotsResponse**
|
|
104
|
-
|
|
105
|
-
### Authorization
|
|
106
|
-
|
|
107
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
108
|
-
|
|
109
|
-
### HTTP request headers
|
|
110
|
-
|
|
111
|
-
- **Content-Type**: Not defined
|
|
112
|
-
- **Accept**: application/json
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### HTTP response details
|
|
116
|
-
| Status code | Description | Response headers |
|
|
117
|
-
|-------------|-------------|------------------|
|
|
118
|
-
|**200** | Liste des créneaux disponibles | - |
|
|
119
|
-
|**400** | Requête invalide | - |
|
|
120
|
-
|**500** | Erreur serveur interne | - |
|
|
121
|
-
|
|
122
|
-
[[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)
|
|
123
|
-
|
|
124
|
-
# **getAvailableSlotsBySportsAndDay**
|
|
125
|
-
> SlotsResponse getAvailableSlotsBySportsAndDay()
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Example
|
|
129
|
-
|
|
130
|
-
```typescript
|
|
131
|
-
import {
|
|
132
|
-
UserClubSlotsApi,
|
|
133
|
-
Configuration
|
|
134
|
-
} from '@tennac-booking/sdk';
|
|
135
|
-
|
|
136
|
-
const configuration = new Configuration();
|
|
137
|
-
const apiInstance = new UserClubSlotsApi(configuration);
|
|
138
|
-
|
|
139
|
-
let id: string; //ID du club (default to undefined)
|
|
140
|
-
let sportId: string; //ID du sport (default to undefined)
|
|
141
|
-
let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
|
|
142
|
-
|
|
143
|
-
const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
|
|
144
|
-
id,
|
|
145
|
-
sportId,
|
|
146
|
-
day
|
|
147
|
-
);
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
|Name | Type | Description | Notes|
|
|
153
|
-
|------------- | ------------- | ------------- | -------------|
|
|
154
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
155
|
-
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
156
|
-
| **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### Return type
|
|
160
|
-
|
|
161
|
-
**SlotsResponse**
|
|
162
|
-
|
|
163
|
-
### Authorization
|
|
164
|
-
|
|
165
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
166
|
-
|
|
167
|
-
### HTTP request headers
|
|
168
|
-
|
|
169
|
-
- **Content-Type**: Not defined
|
|
170
|
-
- **Accept**: application/json
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
### HTTP response details
|
|
174
|
-
| Status code | Description | Response headers |
|
|
175
|
-
|-------------|-------------|------------------|
|
|
176
|
-
|**200** | Liste des créneaux disponibles pour le jour donné | - |
|
|
177
|
-
|**400** | Requête invalide | - |
|
|
178
|
-
|**500** | Erreur serveur interne | - |
|
|
179
|
-
|
|
180
|
-
[[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)
|
|
181
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# UserClubSportsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
|
|
8
|
-
|
|
9
|
-
# **getSportsByClub**
|
|
10
|
-
> SportsResponse getSportsByClub()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import {
|
|
17
|
-
UserClubSportsApi,
|
|
18
|
-
Configuration
|
|
19
|
-
} from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new UserClubSportsApi(configuration);
|
|
23
|
-
|
|
24
|
-
let id: string; //ID du club (default to undefined)
|
|
25
|
-
|
|
26
|
-
const { status, data } = await apiInstance.getSportsByClub(
|
|
27
|
-
id
|
|
28
|
-
);
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Parameters
|
|
32
|
-
|
|
33
|
-
|Name | Type | Description | Notes|
|
|
34
|
-
|------------- | ------------- | ------------- | -------------|
|
|
35
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
### Return type
|
|
39
|
-
|
|
40
|
-
**SportsResponse**
|
|
41
|
-
|
|
42
|
-
### Authorization
|
|
43
|
-
|
|
44
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
45
|
-
|
|
46
|
-
### HTTP request headers
|
|
47
|
-
|
|
48
|
-
- **Content-Type**: Not defined
|
|
49
|
-
- **Accept**: application/json
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### HTTP response details
|
|
53
|
-
| Status code | Description | Response headers |
|
|
54
|
-
|-------------|-------------|------------------|
|
|
55
|
-
|**200** | Liste des sports du club | - |
|
|
56
|
-
|**400** | Requête invalide | - |
|
|
57
|
-
|**500** | Erreur serveur interne | - |
|
|
58
|
-
|
|
59
|
-
[[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)
|
|
60
|
-
|
package/docs/UserPaymentApi.md
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
# UserPaymentApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement|
|
|
8
|
-
|[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur|
|
|
9
|
-
|
|
10
|
-
# **confirmPaymentMethodSetup**
|
|
11
|
-
> ConfirmPaymentMethodSetupResponse confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody)
|
|
12
|
-
|
|
13
|
-
Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
UserPaymentApi,
|
|
20
|
-
Configuration,
|
|
21
|
-
ConfirmPaymentMethodSetupRequestBody
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new UserPaymentApi(configuration);
|
|
26
|
-
|
|
27
|
-
let confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody; //
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.confirmPaymentMethodSetup(
|
|
30
|
-
confirmPaymentMethodSetupRequestBody
|
|
31
|
-
);
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
|
|
36
|
-
|Name | Type | Description | Notes|
|
|
37
|
-
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **confirmPaymentMethodSetupRequestBody** | **ConfirmPaymentMethodSetupRequestBody**| | |
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Return type
|
|
42
|
-
|
|
43
|
-
**ConfirmPaymentMethodSetupResponse**
|
|
44
|
-
|
|
45
|
-
### Authorization
|
|
46
|
-
|
|
47
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
-
|
|
49
|
-
### HTTP request headers
|
|
50
|
-
|
|
51
|
-
- **Content-Type**: application/json
|
|
52
|
-
- **Accept**: application/json
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### HTTP response details
|
|
56
|
-
| Status code | Description | Response headers |
|
|
57
|
-
|-------------|-------------|------------------|
|
|
58
|
-
|**200** | Méthode de paiement confirmée avec succès | - |
|
|
59
|
-
|**400** | Requête invalide | - |
|
|
60
|
-
|**401** | Non autorisé | - |
|
|
61
|
-
|**404** | Ressource non trouvée | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
64
|
-
[[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)
|
|
65
|
-
|
|
66
|
-
# **setupPaymentMethod**
|
|
67
|
-
> SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
|
|
68
|
-
|
|
69
|
-
Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
70
|
-
|
|
71
|
-
### Example
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
import {
|
|
75
|
-
UserPaymentApi,
|
|
76
|
-
Configuration,
|
|
77
|
-
SetupPaymentMethodRequestBody
|
|
78
|
-
} from '@tennac-booking/sdk';
|
|
79
|
-
|
|
80
|
-
const configuration = new Configuration();
|
|
81
|
-
const apiInstance = new UserPaymentApi(configuration);
|
|
82
|
-
|
|
83
|
-
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
84
|
-
|
|
85
|
-
const { status, data } = await apiInstance.setupPaymentMethod(
|
|
86
|
-
setupPaymentMethodRequestBody
|
|
87
|
-
);
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### Parameters
|
|
91
|
-
|
|
92
|
-
|Name | Type | Description | Notes|
|
|
93
|
-
|------------- | ------------- | ------------- | -------------|
|
|
94
|
-
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
### Return type
|
|
98
|
-
|
|
99
|
-
**SetupPaymentMethodResponse**
|
|
100
|
-
|
|
101
|
-
### Authorization
|
|
102
|
-
|
|
103
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
104
|
-
|
|
105
|
-
### HTTP request headers
|
|
106
|
-
|
|
107
|
-
- **Content-Type**: application/json
|
|
108
|
-
- **Accept**: application/json
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### HTTP response details
|
|
112
|
-
| Status code | Description | Response headers |
|
|
113
|
-
|-------------|-------------|------------------|
|
|
114
|
-
|**200** | Setup Intent créé avec succès | - |
|
|
115
|
-
|**400** | Requête invalide | - |
|
|
116
|
-
|**401** | Non autorisé | - |
|
|
117
|
-
|**404** | Ressource non trouvée | - |
|
|
118
|
-
|**500** | Erreur serveur interne | - |
|
|
119
|
-
|
|
120
|
-
[[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)
|
|
121
|
-
|