Class OrderDiscountImpl
- All Implemented Interfaces:
OrderDiscount
OrderDiscountImpl class.
- Since:
- 1.0.16
- Author:
- Logicommerce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGetter for the fieldaccumulateProducts.Getter for the fieldamount.Getter for the fieldapplyTo.Getter for the fieldbenefitMode.Getter for the fieldcalculationMode.Getter for the fielddescription.Getter for the fielddiscountId.intGetter for the fielddiscountType.Getter for the fielddiscountTypeValue.Getter for the fielddiscountValue.Getter for the fieldexpiryDate.getId()Getter for the fieldid.Getter for the fieldmaxCondition.Getter for the fieldminCondition.getName()Getter for the fieldname.Getter for the fieldticketCode.Getter for the fieldtriggeredBy.voidsetAccumulateProducts(boolean accumulateProducts) Setter for the fieldaccumulateProducts.voidSetter for the fieldamount.voidsetApplyTo(DiscountApplyTo applyTo) Setter for the fieldapplyTo.voidsetBenefitMode(BenefitMode benefitMode) Setter for the fieldbenefitMode.voidsetCalculationMode(CalculationMode calculationMode) Setter for the fieldcalculationMode.voidsetDescription(String description) Setter for the fielddescription.voidsetDiscountId(Integer discountId) Setter for the fielddiscountId.voidsetDiscountType(int discountType) Setter for the fielddiscountType.voidsetDiscountTypeValue(DiscountType discountTypeValue) Setter for the fielddiscountTypeValue.voidsetDiscountValue(Double discountValue) Setter for the fielddiscountValue.voidsetExpiryDate(LocalDateTime expiryDate) Setter for the fieldexpiryDate.voidSetter for the fieldid.voidsetMaxCondition(Integer maxCondition) Setter for the fieldmaxCondition.voidsetMinCondition(Integer minCondition) Setter for the fieldminCondition.voidSetter for the fieldname.voidsetTicketCode(String ticketCode) Setter for the fieldticketCode.voidsetTriggeredBy(String triggeredBy) Setter for the fieldtriggeredBy.
-
Constructor Details
-
OrderDiscountImpl
public OrderDiscountImpl()
-
-
Method Details
-
getDiscountType
public int getDiscountType()Getter for the field
discountType.- Specified by:
getDiscountTypein interfaceOrderDiscount- Returns:
- a int
-
getId
Getter for the field
id.- Specified by:
getIdin interfaceOrderDiscount- Returns:
- a
Integerobject
-
getName
Getter for the field
name.- Specified by:
getNamein interfaceOrderDiscount- Returns:
- a
Stringobject
-
getDescription
Getter for the field
description.- Specified by:
getDescriptionin interfaceOrderDiscount- Returns:
- a
Stringobject
-
getApplyTo
Getter for the field
applyTo.- Specified by:
getApplyToin interfaceOrderDiscount- Returns:
- a
DiscountApplyToobject
-
getDiscountTypeValue
Getter for the field
discountTypeValue.- Specified by:
getDiscountTypeValuein interfaceOrderDiscount- Returns:
- a
DiscountTypeobject
-
getDiscountValue
Getter for the field
discountValue.- Specified by:
getDiscountValuein interfaceOrderDiscount- Returns:
- a
Doubleobject
-
getMinCondition
Getter for the field
minCondition.- Specified by:
getMinConditionin interfaceOrderDiscount- Returns:
- a
Integerobject
-
getMaxCondition
Getter for the field
maxCondition.- Specified by:
getMaxConditionin interfaceOrderDiscount- Returns:
- a
Integerobject
-
getTicketCode
Getter for the field
ticketCode.- Specified by:
getTicketCodein interfaceOrderDiscount- Returns:
- a
Stringobject
-
getExpiryDate
Getter for the field
expiryDate.- Specified by:
getExpiryDatein interfaceOrderDiscount- Returns:
- a
LocalDateTimeobject
-
getAmount
Getter for the field
amount.- Specified by:
getAmountin interfaceOrderDiscount- Returns:
- a
Doubleobject
-
getDiscountId
Getter for the field
discountId.- Specified by:
getDiscountIdin interfaceOrderDiscount- Returns:
- a
Integerobject
-
getTriggeredBy
Getter for the field
triggeredBy.- Specified by:
getTriggeredByin interfaceOrderDiscount- Returns:
- a
Stringobject
-
getAccumulateProducts
public boolean getAccumulateProducts()Getter for the field
accumulateProducts.- Specified by:
getAccumulateProductsin interfaceOrderDiscount- Returns:
- a boolean
-
getCalculationMode
Getter for the field
calculationMode.- Specified by:
getCalculationModein interfaceOrderDiscount- Returns:
- a
CalculationModeobject
-
getBenefitMode
Getter for the field
benefitMode.- Specified by:
getBenefitModein interfaceOrderDiscount- Returns:
- a
BenefitModeobject
-
setDiscountType
public void setDiscountType(int discountType) Setter for the field
discountType.- Parameters:
discountType- a int
-
setId
Setter for the field
id.- Parameters:
id- aIntegerobject
-
setName
Setter for the field
name.- Parameters:
name- aStringobject
-
setDescription
Setter for the field
description.- Parameters:
description- aStringobject
-
setApplyTo
Setter for the field
applyTo.- Parameters:
applyTo- aDiscountApplyToobject
-
setDiscountTypeValue
Setter for the field
discountTypeValue.- Parameters:
discountTypeValue- aDiscountTypeobject
-
setDiscountValue
Setter for the field
discountValue.- Parameters:
discountValue- aDoubleobject
-
setMinCondition
Setter for the field
minCondition.- Parameters:
minCondition- aIntegerobject
-
setMaxCondition
Setter for the field
maxCondition.- Parameters:
maxCondition- aIntegerobject
-
setTicketCode
Setter for the field
ticketCode.- Parameters:
ticketCode- aStringobject
-
setExpiryDate
Setter for the field
expiryDate.- Parameters:
expiryDate- aLocalDateTimeobject
-
setAmount
Setter for the field
amount.- Parameters:
amount- aDoubleobject
-
setDiscountId
Setter for the field
discountId.- Parameters:
discountId- aIntegerobject
-
setTriggeredBy
Setter for the field
triggeredBy.- Parameters:
triggeredBy- aStringobject
-
setAccumulateProducts
public void setAccumulateProducts(boolean accumulateProducts) Setter for the field
accumulateProducts.- Parameters:
accumulateProducts- a boolean
-
setCalculationMode
Setter for the field
calculationMode.- Parameters:
calculationMode- aCalculationModeobject
-
setBenefitMode
Setter for the field
benefitMode.- Parameters:
benefitMode- aBenefitModeobject
-