java.lang.Object
com.logicommerce.sdk.models.order.implementations.OrderDiscountImpl
All Implemented Interfaces:
OrderDiscount

public class OrderDiscountImpl extends Object implements OrderDiscount

OrderDiscountImpl class.

Since:
1.0.16
Author:
Logicommerce
  • Constructor Details

    • OrderDiscountImpl

      public OrderDiscountImpl()
  • Method Details

    • getDiscountType

      public int getDiscountType()

      Getter for the field discountType.

      Specified by:
      getDiscountType in interface OrderDiscount
      Returns:
      a int
    • getId

      public Integer getId()

      Getter for the field id.

      Specified by:
      getId in interface OrderDiscount
      Returns:
      a Integer object
    • getName

      public String getName()

      Getter for the field name.

      Specified by:
      getName in interface OrderDiscount
      Returns:
      a String object
    • getDescription

      public String getDescription()

      Getter for the field description.

      Specified by:
      getDescription in interface OrderDiscount
      Returns:
      a String object
    • getApplyTo

      public DiscountApplyTo getApplyTo()

      Getter for the field applyTo.

      Specified by:
      getApplyTo in interface OrderDiscount
      Returns:
      a DiscountApplyTo object
    • getDiscountTypeValue

      public DiscountType getDiscountTypeValue()

      Getter for the field discountTypeValue.

      Specified by:
      getDiscountTypeValue in interface OrderDiscount
      Returns:
      a DiscountType object
    • getDiscountValue

      public Double getDiscountValue()

      Getter for the field discountValue.

      Specified by:
      getDiscountValue in interface OrderDiscount
      Returns:
      a Double object
    • getMinCondition

      public Integer getMinCondition()

      Getter for the field minCondition.

      Specified by:
      getMinCondition in interface OrderDiscount
      Returns:
      a Integer object
    • getMaxCondition

      public Integer getMaxCondition()

      Getter for the field maxCondition.

      Specified by:
      getMaxCondition in interface OrderDiscount
      Returns:
      a Integer object
    • getTicketCode

      public String getTicketCode()

      Getter for the field ticketCode.

      Specified by:
      getTicketCode in interface OrderDiscount
      Returns:
      a String object
    • getExpiryDate

      public LocalDateTime getExpiryDate()

      Getter for the field expiryDate.

      Specified by:
      getExpiryDate in interface OrderDiscount
      Returns:
      a LocalDateTime object
    • getAmount

      public Double getAmount()

      Getter for the field amount.

      Specified by:
      getAmount in interface OrderDiscount
      Returns:
      a Double object
    • getDiscountId

      public Integer getDiscountId()

      Getter for the field discountId.

      Specified by:
      getDiscountId in interface OrderDiscount
      Returns:
      a Integer object
    • getTriggeredBy

      public String getTriggeredBy()

      Getter for the field triggeredBy.

      Specified by:
      getTriggeredBy in interface OrderDiscount
      Returns:
      a String object
    • getAccumulateProducts

      public boolean getAccumulateProducts()

      Getter for the field accumulateProducts.

      Specified by:
      getAccumulateProducts in interface OrderDiscount
      Returns:
      a boolean
    • getCalculationMode

      public CalculationMode getCalculationMode()

      Getter for the field calculationMode.

      Specified by:
      getCalculationMode in interface OrderDiscount
      Returns:
      a CalculationMode object
    • getBenefitMode

      public BenefitMode getBenefitMode()

      Getter for the field benefitMode.

      Specified by:
      getBenefitMode in interface OrderDiscount
      Returns:
      a BenefitMode object
    • setDiscountType

      public void setDiscountType(int discountType)

      Setter for the field discountType.

      Parameters:
      discountType - a int
    • setId

      public void setId(Integer id)

      Setter for the field id.

      Parameters:
      id - a Integer object
    • setName

      public void setName(String name)

      Setter for the field name.

      Parameters:
      name - a String object
    • setDescription

      public void setDescription(String description)

      Setter for the field description.

      Parameters:
      description - a String object
    • setApplyTo

      public void setApplyTo(DiscountApplyTo applyTo)

      Setter for the field applyTo.

      Parameters:
      applyTo - a DiscountApplyTo object
    • setDiscountTypeValue

      public void setDiscountTypeValue(DiscountType discountTypeValue)

      Setter for the field discountTypeValue.

      Parameters:
      discountTypeValue - a DiscountType object
    • setDiscountValue

      public void setDiscountValue(Double discountValue)

      Setter for the field discountValue.

      Parameters:
      discountValue - a Double object
    • setMinCondition

      public void setMinCondition(Integer minCondition)

      Setter for the field minCondition.

      Parameters:
      minCondition - a Integer object
    • setMaxCondition

      public void setMaxCondition(Integer maxCondition)

      Setter for the field maxCondition.

      Parameters:
      maxCondition - a Integer object
    • setTicketCode

      public void setTicketCode(String ticketCode)

      Setter for the field ticketCode.

      Parameters:
      ticketCode - a String object
    • setExpiryDate

      public void setExpiryDate(LocalDateTime expiryDate)

      Setter for the field expiryDate.

      Parameters:
      expiryDate - a LocalDateTime object
    • setAmount

      public void setAmount(Double amount)

      Setter for the field amount.

      Parameters:
      amount - a Double object
    • setDiscountId

      public void setDiscountId(Integer discountId)

      Setter for the field discountId.

      Parameters:
      discountId - a Integer object
    • setTriggeredBy

      public void setTriggeredBy(String triggeredBy)

      Setter for the field triggeredBy.

      Parameters:
      triggeredBy - a String object
    • setAccumulateProducts

      public void setAccumulateProducts(boolean accumulateProducts)

      Setter for the field accumulateProducts.

      Parameters:
      accumulateProducts - a boolean
    • setCalculationMode

      public void setCalculationMode(CalculationMode calculationMode)

      Setter for the field calculationMode.

      Parameters:
      calculationMode - a CalculationMode object
    • setBenefitMode

      public void setBenefitMode(BenefitMode benefitMode)

      Setter for the field benefitMode.

      Parameters:
      benefitMode - a BenefitMode object