@Embeddable public class LegacyOfferUsesImpl extends Object implements LegacyOfferUses, MultiTenantCloneable<LegacyOfferUses>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
applyDiscountToMarkedItems
Deprecated.
|
protected Offer |
offer |
protected int |
uses |
| Constructor and Description |
|---|
LegacyOfferUsesImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends LegacyOfferUses> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
boolean |
equals(Object o) |
boolean |
getApplyDiscountToMarkedItems()
Deprecated.
|
int |
getMaxUses()
Returns the maximum number of times that this offer
can be used in the current order.
|
Offer |
getOffer() |
int |
getUses() |
int |
hashCode() |
boolean |
isApplyDiscountToMarkedItems()
Deprecated.
|
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated.
|
void |
setMaxUses(int maxUses)
Sets the maximum number of times that this offer
can be used in the current order.
|
void |
setOffer(Offer offer) |
void |
setUses(int uses) |
protected Offer offer
protected int uses
@Deprecated protected boolean applyDiscountToMarkedItems
public void setUses(int uses)
setUses in interface LegacyOfferUsespublic int getUses()
getUses in interface LegacyOfferUsespublic int getMaxUses()
LegacyOfferUsesgetMaxUses in interface LegacyOfferUsespublic void setMaxUses(int maxUses)
LegacyOfferUsessetMaxUses in interface LegacyOfferUses@Deprecated public boolean isApplyDiscountToMarkedItems()
isApplyDiscountToMarkedItems in interface LegacyOfferUses@Deprecated public boolean getApplyDiscountToMarkedItems()
@Deprecated public void setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
setApplyDiscountToMarkedItems in interface LegacyOfferUsespublic Offer getOffer()
public void setOffer(Offer offer)
public <G extends LegacyOfferUses> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<LegacyOfferUses>CloneNotSupportedExceptionCopyright © 2017. All rights reserved.