java.lang.Object
com.liferay.headless.commerce.admin.pricing.dto.v2_0.Discount
All Implemented Interfaces:
Serializable

@Generated("") public class Discount extends Object implements Serializable
See Also:
Generated:
  • Field Details

    • actions

      protected Map<String,Map<String,String>> actions
    • active

      protected Boolean active
    • amountFormatted

      protected String amountFormatted
    • couponCode

      protected String couponCode
    • customFields

      protected Map<String,?> customFields
    • discountAccountGroups

      protected DiscountAccountGroup[] discountAccountGroups
    • discountAccounts

      protected DiscountAccount[] discountAccounts
    • discountCategories

      protected DiscountCategory[] discountCategories
    • discountChannels

      protected DiscountChannel[] discountChannels
    • discountOrderTypes

      protected DiscountOrderType[] discountOrderTypes
    • discountProductGroups

      protected DiscountProductGroup[] discountProductGroups
    • discountProducts

      protected DiscountProduct[] discountProducts
    • discountRules

      protected DiscountRule[] discountRules
    • displayDate

      protected Date displayDate
    • expirationDate

      protected Date expirationDate
    • externalReferenceCode

      protected String externalReferenceCode
    • id

      protected Long id
    • level

      @NotEmpty protected @NotEmpty String level
    • limitationTimes

      protected Integer limitationTimes
    • limitationTimesPerAccount

      protected Integer limitationTimesPerAccount
    • limitationType

      @NotEmpty protected @NotEmpty String limitationType
    • maximumDiscountAmount

      protected BigDecimal maximumDiscountAmount
    • modifiedDate

      protected Date modifiedDate
    • neverExpire

      protected Boolean neverExpire
    • numberOfUse

      protected Integer numberOfUse
    • percentageLevel1

      protected BigDecimal percentageLevel1
    • percentageLevel2

      protected BigDecimal percentageLevel2
    • percentageLevel3

      protected BigDecimal percentageLevel3
    • percentageLevel4

      protected BigDecimal percentageLevel4
    • rulesConjunction

      protected Boolean rulesConjunction
    • target

      @NotEmpty protected @NotEmpty String target
    • title

      @NotEmpty protected @NotEmpty String title
    • useCouponCode

      protected Boolean useCouponCode
    • usePercentage

      @NotNull protected @NotNull Boolean usePercentage
    • xClassName

      public String xClassName
  • Constructor Details

    • Discount

      public Discount()
  • Method Details

    • toDTO

      public static Discount toDTO(String json)
    • unsafeToDTO

      public static Discount unsafeToDTO(String json)
    • getActions

      @Valid public @Valid Map<String,Map<String,String>> getActions()
    • setActions

      public void setActions(Map<String,Map<String,String>> actions)
    • setActions

      public void setActions(com.liferay.petra.function.UnsafeSupplier<Map<String,Map<String,String>>,Exception> actionsUnsafeSupplier)
    • getActive

      public Boolean getActive()
    • setActive

      public void setActive(Boolean active)
    • setActive

      public void setActive(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> activeUnsafeSupplier)
    • getAmountFormatted

      public String getAmountFormatted()
    • setAmountFormatted

      public void setAmountFormatted(String amountFormatted)
    • setAmountFormatted

      public void setAmountFormatted(com.liferay.petra.function.UnsafeSupplier<String,Exception> amountFormattedUnsafeSupplier)
    • getCouponCode

      public String getCouponCode()
    • setCouponCode

      public void setCouponCode(String couponCode)
    • setCouponCode

      public void setCouponCode(com.liferay.petra.function.UnsafeSupplier<String,Exception> couponCodeUnsafeSupplier)
    • getCustomFields

      @Valid public @Valid Map<String,?> getCustomFields()
    • setCustomFields

      public void setCustomFields(Map<String,?> customFields)
    • setCustomFields

      public void setCustomFields(com.liferay.petra.function.UnsafeSupplier<Map<String,?>,Exception> customFieldsUnsafeSupplier)
    • getDiscountAccountGroups

      @Valid public @Valid DiscountAccountGroup[] getDiscountAccountGroups()
    • setDiscountAccountGroups

      public void setDiscountAccountGroups(DiscountAccountGroup[] discountAccountGroups)
    • setDiscountAccountGroups

      public void setDiscountAccountGroups(com.liferay.petra.function.UnsafeSupplier<DiscountAccountGroup[],Exception> discountAccountGroupsUnsafeSupplier)
    • getDiscountAccounts

      @Valid public @Valid DiscountAccount[] getDiscountAccounts()
    • setDiscountAccounts

      public void setDiscountAccounts(DiscountAccount[] discountAccounts)
    • setDiscountAccounts

      public void setDiscountAccounts(com.liferay.petra.function.UnsafeSupplier<DiscountAccount[],Exception> discountAccountsUnsafeSupplier)
    • getDiscountCategories

      @Valid public @Valid DiscountCategory[] getDiscountCategories()
    • setDiscountCategories

      public void setDiscountCategories(DiscountCategory[] discountCategories)
    • setDiscountCategories

      public void setDiscountCategories(com.liferay.petra.function.UnsafeSupplier<DiscountCategory[],Exception> discountCategoriesUnsafeSupplier)
    • getDiscountChannels

      @Valid public @Valid DiscountChannel[] getDiscountChannels()
    • setDiscountChannels

      public void setDiscountChannels(DiscountChannel[] discountChannels)
    • setDiscountChannels

      public void setDiscountChannels(com.liferay.petra.function.UnsafeSupplier<DiscountChannel[],Exception> discountChannelsUnsafeSupplier)
    • getDiscountOrderTypes

      @Valid public @Valid DiscountOrderType[] getDiscountOrderTypes()
    • setDiscountOrderTypes

      public void setDiscountOrderTypes(DiscountOrderType[] discountOrderTypes)
    • setDiscountOrderTypes

      public void setDiscountOrderTypes(com.liferay.petra.function.UnsafeSupplier<DiscountOrderType[],Exception> discountOrderTypesUnsafeSupplier)
    • getDiscountProductGroups

      @Valid public @Valid DiscountProductGroup[] getDiscountProductGroups()
    • setDiscountProductGroups

      public void setDiscountProductGroups(DiscountProductGroup[] discountProductGroups)
    • setDiscountProductGroups

      public void setDiscountProductGroups(com.liferay.petra.function.UnsafeSupplier<DiscountProductGroup[],Exception> discountProductGroupsUnsafeSupplier)
    • getDiscountProducts

      @Valid public @Valid DiscountProduct[] getDiscountProducts()
    • setDiscountProducts

      public void setDiscountProducts(DiscountProduct[] discountProducts)
    • setDiscountProducts

      public void setDiscountProducts(com.liferay.petra.function.UnsafeSupplier<DiscountProduct[],Exception> discountProductsUnsafeSupplier)
    • getDiscountRules

      @Valid public @Valid DiscountRule[] getDiscountRules()
    • setDiscountRules

      public void setDiscountRules(DiscountRule[] discountRules)
    • setDiscountRules

      public void setDiscountRules(com.liferay.petra.function.UnsafeSupplier<DiscountRule[],Exception> discountRulesUnsafeSupplier)
    • getDisplayDate

      public Date getDisplayDate()
    • setDisplayDate

      public void setDisplayDate(Date displayDate)
    • setDisplayDate

      public void setDisplayDate(com.liferay.petra.function.UnsafeSupplier<Date,Exception> displayDateUnsafeSupplier)
    • getExpirationDate

      public Date getExpirationDate()
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
    • setExpirationDate

      public void setExpirationDate(com.liferay.petra.function.UnsafeSupplier<Date,Exception> expirationDateUnsafeSupplier)
    • getExternalReferenceCode

      public String getExternalReferenceCode()
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
    • setExternalReferenceCode

      public void setExternalReferenceCode(com.liferay.petra.function.UnsafeSupplier<String,Exception> externalReferenceCodeUnsafeSupplier)
    • getId

      @DecimalMin("0") public @DecimalMin("0") Long getId()
    • setId

      public void setId(Long id)
    • setId

      public void setId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> idUnsafeSupplier)
    • getLevel

      public String getLevel()
    • setLevel

      public void setLevel(String level)
    • setLevel

      public void setLevel(com.liferay.petra.function.UnsafeSupplier<String,Exception> levelUnsafeSupplier)
    • getLimitationTimes

      @DecimalMin("0") public @DecimalMin("0") Integer getLimitationTimes()
    • setLimitationTimes

      public void setLimitationTimes(Integer limitationTimes)
    • setLimitationTimes

      public void setLimitationTimes(com.liferay.petra.function.UnsafeSupplier<Integer,Exception> limitationTimesUnsafeSupplier)
    • getLimitationTimesPerAccount

      @DecimalMin("0") public @DecimalMin("0") Integer getLimitationTimesPerAccount()
    • setLimitationTimesPerAccount

      public void setLimitationTimesPerAccount(Integer limitationTimesPerAccount)
    • setLimitationTimesPerAccount

      public void setLimitationTimesPerAccount(com.liferay.petra.function.UnsafeSupplier<Integer,Exception> limitationTimesPerAccountUnsafeSupplier)
    • getLimitationType

      public String getLimitationType()
    • setLimitationType

      public void setLimitationType(String limitationType)
    • setLimitationType

      public void setLimitationType(com.liferay.petra.function.UnsafeSupplier<String,Exception> limitationTypeUnsafeSupplier)
    • getMaximumDiscountAmount

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getMaximumDiscountAmount()
    • setMaximumDiscountAmount

      public void setMaximumDiscountAmount(BigDecimal maximumDiscountAmount)
    • setMaximumDiscountAmount

      public void setMaximumDiscountAmount(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> maximumDiscountAmountUnsafeSupplier)
    • getModifiedDate

      public Date getModifiedDate()
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
    • setModifiedDate

      public void setModifiedDate(com.liferay.petra.function.UnsafeSupplier<Date,Exception> modifiedDateUnsafeSupplier)
    • getNeverExpire

      public Boolean getNeverExpire()
    • setNeverExpire

      public void setNeverExpire(Boolean neverExpire)
    • setNeverExpire

      public void setNeverExpire(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> neverExpireUnsafeSupplier)
    • getNumberOfUse

      @DecimalMin("0") public @DecimalMin("0") Integer getNumberOfUse()
    • setNumberOfUse

      public void setNumberOfUse(Integer numberOfUse)
    • setNumberOfUse

      public void setNumberOfUse(com.liferay.petra.function.UnsafeSupplier<Integer,Exception> numberOfUseUnsafeSupplier)
    • getPercentageLevel1

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getPercentageLevel1()
    • setPercentageLevel1

      public void setPercentageLevel1(BigDecimal percentageLevel1)
    • setPercentageLevel1

      public void setPercentageLevel1(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> percentageLevel1UnsafeSupplier)
    • getPercentageLevel2

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getPercentageLevel2()
    • setPercentageLevel2

      public void setPercentageLevel2(BigDecimal percentageLevel2)
    • setPercentageLevel2

      public void setPercentageLevel2(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> percentageLevel2UnsafeSupplier)
    • getPercentageLevel3

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getPercentageLevel3()
    • setPercentageLevel3

      public void setPercentageLevel3(BigDecimal percentageLevel3)
    • setPercentageLevel3

      public void setPercentageLevel3(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> percentageLevel3UnsafeSupplier)
    • getPercentageLevel4

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getPercentageLevel4()
    • setPercentageLevel4

      public void setPercentageLevel4(BigDecimal percentageLevel4)
    • setPercentageLevel4

      public void setPercentageLevel4(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> percentageLevel4UnsafeSupplier)
    • getRulesConjunction

      public Boolean getRulesConjunction()
    • setRulesConjunction

      public void setRulesConjunction(Boolean rulesConjunction)
    • setRulesConjunction

      public void setRulesConjunction(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> rulesConjunctionUnsafeSupplier)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • setTarget

      public void setTarget(com.liferay.petra.function.UnsafeSupplier<String,Exception> targetUnsafeSupplier)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • setTitle

      public void setTitle(com.liferay.petra.function.UnsafeSupplier<String,Exception> titleUnsafeSupplier)
    • getUseCouponCode

      public Boolean getUseCouponCode()
    • setUseCouponCode

      public void setUseCouponCode(Boolean useCouponCode)
    • setUseCouponCode

      public void setUseCouponCode(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> useCouponCodeUnsafeSupplier)
    • getUsePercentage

      public Boolean getUsePercentage()
    • setUsePercentage

      public void setUsePercentage(Boolean usePercentage)
    • setUsePercentage

      public void setUsePercentage(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> usePercentageUnsafeSupplier)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object