@tennac-booking/sdk
Version:
OpenAPI client for @tennac-booking/sdk
62 lines (39 loc) • 1.8 kB
Markdown
# TermsAndConditionsPublicApi
All URIs are relative to *http://localhost*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getLatestTerms**](#getlatestterms) | **GET** /api/terms-and-conditions/latest | |
# **getLatestTerms**
> TermsAndConditionsResponse getLatestTerms()
Récupère la dernière version active des CGU en français
### Example
```typescript
import {
TermsAndConditionsPublicApi,
Configuration
} from '@tennac-booking/sdk';
const configuration = new Configuration();
const apiInstance = new TermsAndConditionsPublicApi(configuration);
let audience: TermsAudience; //Type de CGU à récupérer: \"user\" pour les utilisateurs finaux, \"manager\" pour les gestionnaires de clubs (optional) (default to undefined)
const { status, data } = await apiInstance.getLatestTerms(
audience
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **audience** | **TermsAudience** | Type de CGU à récupérer: \"user\" pour les utilisateurs finaux, \"manager\" pour les gestionnaires de clubs | (optional) defaults to undefined|
### Return type
**TermsAndConditionsResponse**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Dernière version des CGU | - |
|**404** | Aucune CGU trouvée | - |
|**500** | Server Error | - |
[[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)