# openapi.model.UpdateDiscountBody

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **num** | Unique identifier | [optional] 
**createdAt** | [**DateTime**](DateTime.md) |  | [optional] 
**updatedAt** | [**DateTime**](DateTime.md) |  | [optional] 
**discountType** | [**DiscountDiscountTypeEnum**](DiscountDiscountTypeEnum.md) |  | 
**methodType** | [**DiscountMethodEnum**](DiscountMethodEnum.md) |  | 
**methodValue** | **String** |  | 
**isActive** | **bool** |  | [optional] 
**customerEligibility** | [**CustomerEligibilityEnum**](CustomerEligibilityEnum.md) |  | 
**limitNumberOfTimesInTotal** | **num** | Limit number of times that discount can be used | [optional] 
**limitOneUsePerCustomer** | **bool** | If true, then each customer can use it only one time | 
**startDate** | [**DateTime**](DateTime.md) |  | 
**endDate** | [**DateTime**](DateTime.md) | After this date, the discount will be not available | [optional] 
**isDeleted** | **bool** |  | [optional] [default to false]
**amountOffOrder** | [**AmountOffOrderDiscountEntity**](AmountOffOrderDiscountEntity.md) |  | [optional] 
**amountOffProduct** | [**AmountOffProductDiscountEntity**](AmountOffProductDiscountEntity.md) |  | [optional] 
**buyXGetY** | [**BuyXGetYDiscountEntity**](BuyXGetYDiscountEntity.md) |  | [optional] 
**freeShipping** | [**FreeShippingDiscountEntity**](FreeShippingDiscountEntity.md) |  | [optional] 
**newsletter** | [**NewsletterEmailEntity**](NewsletterEmailEntity.md) |  | [optional] 
**customers** | [**BuiltList&lt;CustomerEntity&gt;**](CustomerEntity.md) |  | [optional] 
**comments** | [**BuiltList&lt;DiscountCommentEntity&gt;**](DiscountCommentEntity.md) |  | [optional] 

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


