# openapi.api.CheckoutCustomerOrdersApi

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

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**findAll**](CheckoutCustomerOrdersApi.md#findall) | **GET** /api/checkout/customer/orders/customer/{customerId} | 
[**findOne**](CheckoutCustomerOrdersApi.md#findone) | **GET** /api/checkout/customer/orders/customer/{customerId}/{id}/type/{type} | 
[**returnProduct**](CheckoutCustomerOrdersApi.md#returnproduct) | **POST** /api/checkout/customer/orders/customer/{customerId}/{orderDetailId}/return | Return items


# **findAll**
> FindAllCustomerOrder findAll(customerId)



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

final api = Openapi().getCheckoutCustomerOrdersApi();
final num customerId = 8.14; // num | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **customerId** | **num**|  | 

### Return type

[**FindAllCustomerOrder**](FindAllCustomerOrder.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)

# **findOne**
> FindOneCustomerOrderRes findOne(id, type, customerId)



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

final api = Openapi().getCheckoutCustomerOrdersApi();
final num id = 8.14; // num | 
final String type = type_example; // String | 
final num customerId = 8.14; // num | 

try {
    final response = api.findOne(id, type, customerId);
    print(response);
} catch on DioError (e) {
    print('Exception when calling CheckoutCustomerOrdersApi->findOne: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **num**|  | 
 **type** | **String**|  | 
 **customerId** | **num**|  | 

### Return type

[**FindOneCustomerOrderRes**](FindOneCustomerOrderRes.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)

# **returnProduct**
> OkRes returnProduct(orderDetailId, returnCustomerOrder)

Return items

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

final api = Openapi().getCheckoutCustomerOrdersApi();
final num orderDetailId = 8.14; // num | Order Detail ID
final ReturnCustomerOrder returnCustomerOrder = ; // ReturnCustomerOrder | 

try {
    final response = api.returnProduct(orderDetailId, returnCustomerOrder);
    print(response);
} catch on DioError (e) {
    print('Exception when calling CheckoutCustomerOrdersApi->returnProduct: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **orderDetailId** | **num**| Order Detail ID | 
 **returnCustomerOrder** | [**ReturnCustomerOrder**](ReturnCustomerOrder.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)

