UNPKG

@tennac-booking/sdk

Version:

OpenAPI client for @tennac-booking/sdk

114 lines (72 loc) 2.99 kB
# ClubCustomerStaffApi All URIs are relative to *http://localhost* |Method | HTTP request | Description| |------------- | ------------- | -------------| |[**getClubCustomerSettings**](#getclubcustomersettings) | **GET** /api/clubCustomers/clubCustomer/{userId}/settings | | |[**updateClubCustomerSettings**](#updateclubcustomersettings) | **PATCH** /api/clubCustomers/clubCustomer/{userId}/settings | | # **getClubCustomerSettings** > ClubCustomerSettingsResponse getClubCustomerSettings() ### Example ```typescript import { ClubCustomerStaffApi, Configuration } from '@tennac-booking/sdk'; const configuration = new Configuration(); const apiInstance = new ClubCustomerStaffApi(configuration); let userId: string; // (default to undefined) const { status, data } = await apiInstance.getClubCustomerSettings( userId ); ``` ### Parameters |Name | Type | Description | Notes| |------------- | ------------- | ------------- | -------------| | **userId** | [**string**] | | defaults to undefined| ### Return type **ClubCustomerSettingsResponse** ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| |**200** | Réglages du joueur du club | - | [[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) # **updateClubCustomerSettings** > ClubCustomerSettingsResponse updateClubCustomerSettings(clubCustomerSettingsResponse) ### Example ```typescript import { ClubCustomerStaffApi, Configuration, ClubCustomerSettingsResponse } from '@tennac-booking/sdk'; const configuration = new Configuration(); const apiInstance = new ClubCustomerStaffApi(configuration); let userId: string; // (default to undefined) let clubCustomerSettingsResponse: ClubCustomerSettingsResponse; // const { status, data } = await apiInstance.updateClubCustomerSettings( userId, clubCustomerSettingsResponse ); ``` ### Parameters |Name | Type | Description | Notes| |------------- | ------------- | ------------- | -------------| | **clubCustomerSettingsResponse** | **ClubCustomerSettingsResponse**| | | | **userId** | [**string**] | | defaults to undefined| ### Return type **ClubCustomerSettingsResponse** ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| |**200** | Réglages mis à jour | - | [[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)