public class XPFCouponUsageValidationResult extends XPFEntity
Constructor and Description |
---|
XPFCouponUsageValidationResult(XPFCoupon coupon,
XPFStructuredErrorMessage error) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
XPFCoupon |
getCoupon()
The coupon.
|
XPFStructuredErrorMessage |
getError()
Error message if the coupon is not valid.
|
int |
hashCode() |
boolean |
isValid()
Indicates if the coupon is valid for the given context.
|
String |
toString() |
getCustomData
public XPFCouponUsageValidationResult(XPFCoupon coupon, XPFStructuredErrorMessage error)
public boolean isValid()
public XPFCoupon getCoupon()
public XPFStructuredErrorMessage getError()
Copyright © 2025. All rights reserved.