# openapi.model.BuyXGetYDiscountEntity

## 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] 
**buyType** | [**AmountOffProductBuyTypeEnum**](AmountOffProductBuyTypeEnum.md) |  | 
**buyValue** | **num** | The minimum amount of money or quantity | 
**getQuantity** | **num** | The number of items (Y) that the customer gets | 
**discountedType** | [**BuyXGetYDiscountTypeEnum**](BuyXGetYDiscountTypeEnum.md) |  | 
**discountedValue** | **num** |  | 
**maxNumberOfOrders** | **num** | This setting is particularly useful when you want to control the usage of a discount to prevent abuse or to manage the impact on your business's profitability | [optional] 
**getsAppliesTo** | [**BuyXgetYDiscountGetsAppliesToEnum**](BuyXgetYDiscountGetsAppliesToEnum.md) |  | 
**buysAppliesTo** | [**BuyXgetYDiscountBuysAppliesToEnum**](BuyXgetYDiscountBuysAppliesToEnum.md) |  | 
**discount** | [**DiscountEntity**](DiscountEntity.md) |  | [optional] 
**categoriesBuys** | [**BuiltList&lt;CategoryEntity&gt;**](CategoryEntity.md) |  | [optional] 
**categoriesGets** | [**BuiltList&lt;CategoryEntity&gt;**](CategoryEntity.md) |  | [optional] 
**productsBuys** | [**BuiltList&lt;ProductVariantEntity&gt;**](ProductVariantEntity.md) |  | [optional] 
**productsGets** | [**BuiltList&lt;ProductVariantEntity&gt;**](ProductVariantEntity.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)


