Package com.bhn.risk.order.domain
Class Discount
java.lang.Object
com.bhn.risk.common.SmartObject<Discount>
com.bhn.risk.order.domain.Discount
Discount class.
- Version:
- $Id: $Id
- Author:
- pvela00
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
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()
-