public class XPFCoupon extends XPFEntity
Constructor and Description |
---|
XPFCoupon(@NonNull String guid,
@NonNull String couponCode,
boolean suspended,
@NonNull XPFEntitySupplier<XPFPromotionRule> rule,
@NonNull XPFCouponUsageLimitTypeEnum limitType,
Long usageLimit,
boolean limitedDuration,
Long durationInDays,
boolean multiUsePerOrder) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
@NonNull String |
getCouponCode()
The coupon code.
|
Long |
getDurationInDays()
The number of days, from when the coupon is first used, that the coupon is active for.
|
@NonNull String |
getGuid()
The coupon GUID.
|
@NonNull XPFCouponUsageLimitTypeEnum |
getLimitType()
The coupon usage limit type.
|
XPFPromotionRule |
getRule()
Returns the promotion rule for this coupon.
|
Long |
getUsageLimit()
The limit on how many times this can be used.
|
int |
hashCode() |
boolean |
isLimitedDuration()
The limited duration.
|
boolean |
isMultiUsePerOrder()
The multi use per order.
|
boolean |
isSuspended()
Indicates if the coupon is suspended.
|
String |
toString() |
getCustomData
public XPFCoupon(@NonNull @NonNull String guid, @NonNull @NonNull String couponCode, boolean suspended, @NonNull @NonNull XPFEntitySupplier<XPFPromotionRule> rule, @NonNull @NonNull XPFCouponUsageLimitTypeEnum limitType, Long usageLimit, boolean limitedDuration, Long durationInDays, boolean multiUsePerOrder)
@LazyLoaded public XPFPromotionRule getRule()
@NonNull public @NonNull String getGuid()
@NonNull public @NonNull String getCouponCode()
public boolean isSuspended()
@NonNull public @NonNull XPFCouponUsageLimitTypeEnum getLimitType()
public Long getUsageLimit()
public boolean isLimitedDuration()
public Long getDurationInDays()
public boolean isMultiUsePerOrder()
Copyright © 2025. All rights reserved.