Class Discount

java.lang.Object
com.bhn.risk.common.SmartObject<Discount>
com.bhn.risk.order.domain.Discount

public class Discount extends com.bhn.risk.common.SmartObject<Discount>

Discount class.

Version:
$Id: $Id
Author:
pvela00
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class com.bhn.risk.common.SmartObject

    addSerializableClass, addSerializableClass, addSerializableClass, compareTo, copy, createMapper, equals, fromString, fromString, hashCode, toExposedString, toString, toString, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • type

      @NotBlank(errorCode="discounts.discountType.blank", message="discounts.discountType can not be blank") public String type
    • code

      @NotBlank(errorCode="discounts.discountCode.blank", message="discounts.discountCode can not be blank") public String code
    • amount

      @NotNull(when="js:_this.percentage == null", errorCode="discountCode.amount.invalid", message="discountCode.amount is mandatory if discount percentage is not provided") public BigDecimal amount
    • percentage

      @NotNull(when="js:_this.amount == null", errorCode="discountCode.percentage.invalid", message="discountCode.percentage is mandatory if discount amount is not provided") public Double percentage
  • Constructor Details

    • Discount

      public Discount()