# openapi.api.ShopAuthApi

## Load the API package
```dart
import 'package:openapi/api.dart';
```

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**bookAppointment**](ShopAuthApi.md#bookappointment) | **POST** /api/shop-auth/guest/book | 
[**checkoutInformation**](ShopAuthApi.md#checkoutinformation) | **POST** /api/shop-auth/guest/checkout/information | 
[**currentUser**](ShopAuthApi.md#currentuser) | **GET** /api/shop-auth/current-user | 
[**login**](ShopAuthApi.md#login) | **POST** /api/shop-auth/login | 
[**logout**](ShopAuthApi.md#logout) | **POST** /api/shop-auth/logout | 
[**passwordReset**](ShopAuthApi.md#passwordreset) | **POST** /api/shop-auth/reset-password/{token} | 
[**passwordResetEmail**](ShopAuthApi.md#passwordresetemail) | **POST** /api/shop-auth/reset-password-email | Send password reset email
[**refresh**](ShopAuthApi.md#refresh) | **POST** /api/shop-auth/refresh-token | 
[**resendVerificationEmail**](ShopAuthApi.md#resendverificationemail) | **POST** /api/shop-auth/resend-verification-email | 
[**signup**](ShopAuthApi.md#signup) | **POST** /api/shop-auth/signup | 
[**verifyEmail**](ShopAuthApi.md#verifyemail) | **POST** /api/shop-auth/verify-email | 


# **bookAppointment**
> OkRes bookAppointment(createGuestBookAppointmentBodyDto)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final CreateGuestBookAppointmentBodyDto createGuestBookAppointmentBodyDto = ; // CreateGuestBookAppointmentBodyDto | 

try {
    final response = api.bookAppointment(createGuestBookAppointmentBodyDto);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->bookAppointment: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **createGuestBookAppointmentBodyDto** | [**CreateGuestBookAppointmentBodyDto**](CreateGuestBookAppointmentBodyDto.md)|  | 

### Return type

[**OkRes**](OkRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

# **checkoutInformation**
> CreateGuestCheckoutRes checkoutInformation(createGuestCheckoutInformationBodyDto)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final CreateGuestCheckoutInformationBodyDto createGuestCheckoutInformationBodyDto = ; // CreateGuestCheckoutInformationBodyDto | 

try {
    final response = api.checkoutInformation(createGuestCheckoutInformationBodyDto);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->checkoutInformation: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **createGuestCheckoutInformationBodyDto** | [**CreateGuestCheckoutInformationBodyDto**](CreateGuestCheckoutInformationBodyDto.md)|  | 

### Return type

[**CreateGuestCheckoutRes**](CreateGuestCheckoutRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

# **currentUser**
> CustomerEntity currentUser()



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();

try {
    final response = api.currentUser();
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->currentUser: $e\n');
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**CustomerEntity**](CustomerEntity.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

[[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)

# **login**
> ShopLoginRes login(loginBody)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final LoginBody loginBody = ; // LoginBody | 

try {
    final response = api.login(loginBody);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->login: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **loginBody** | [**LoginBody**](LoginBody.md)|  | 

### Return type

[**ShopLoginRes**](ShopLoginRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

# **logout**
> logout()



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();

try {
    api.logout();
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->logout: $e\n');
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

[[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)

# **passwordReset**
> String passwordReset(token, passwordResetDto)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final String token = token_example; // String | 
final PasswordResetDto passwordResetDto = ; // PasswordResetDto | 

try {
    final response = api.passwordReset(token, passwordResetDto);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->passwordReset: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **token** | **String**|  | 
 **passwordResetDto** | [**PasswordResetDto**](PasswordResetDto.md)|  | 

### Return type

**String**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

# **passwordResetEmail**
> String passwordResetEmail(shopPasswordResetEmailDto)

Send password reset email

### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final ShopPasswordResetEmailDto shopPasswordResetEmailDto = ; // ShopPasswordResetEmailDto | 

try {
    final response = api.passwordResetEmail(shopPasswordResetEmailDto);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->passwordResetEmail: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **shopPasswordResetEmailDto** | [**ShopPasswordResetEmailDto**](ShopPasswordResetEmailDto.md)|  | 

### Return type

**String**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

# **refresh**
> refresh()



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();

try {
    api.refresh();
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->refresh: $e\n');
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

[[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)

# **resendVerificationEmail**
> resendVerificationEmail()



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();

try {
    api.resendVerificationEmail();
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->resendVerificationEmail: $e\n');
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

[[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)

# **signup**
> ShopLoginRes signup(signupBody)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final SignupBody signupBody = ; // SignupBody | 

try {
    final response = api.signup(signupBody);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->signup: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **signupBody** | [**SignupBody**](SignupBody.md)|  | 

### Return type

[**ShopLoginRes**](ShopLoginRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

# **verifyEmail**
> String verifyEmail(verifyEmailBody)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getShopAuthApi();
final VerifyEmailBody verifyEmailBody = ; // VerifyEmailBody | 

try {
    final response = api.verifyEmail(verifyEmailBody);
    print(response);
} catch on DioError (e) {
    print('Exception when calling ShopAuthApi->verifyEmail: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **verifyEmailBody** | [**VerifyEmailBody**](VerifyEmailBody.md)|  | 

### Return type

**String**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[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)

