@Generated(value="")
public class DiscountRule
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
discountId |
protected java.lang.Long |
id |
protected @NotEmpty java.lang.String |
type |
protected java.lang.String |
typeSettings |
java.lang.String |
xClassName |
Constructor and Description |
---|
DiscountRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
@DecimalMin(value="0") java.lang.Long |
getDiscountId() |
@DecimalMin(value="0") java.lang.Long |
getId() |
java.lang.String |
getType() |
java.lang.String |
getTypeSettings() |
int |
hashCode() |
void |
setDiscountId(java.lang.Long discountId) |
void |
setDiscountId(com.liferay.petra.function.UnsafeSupplier<java.lang.Long,java.lang.Exception> discountIdUnsafeSupplier) |
void |
setId(java.lang.Long id) |
void |
setId(com.liferay.petra.function.UnsafeSupplier<java.lang.Long,java.lang.Exception> idUnsafeSupplier) |
void |
setType(java.lang.String type) |
void |
setType(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> typeUnsafeSupplier) |
void |
setTypeSettings(java.lang.String typeSettings) |
void |
setTypeSettings(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> typeSettingsUnsafeSupplier) |
static DiscountRule |
toDTO(java.lang.String json) |
java.lang.String |
toString() |
static DiscountRule |
unsafeToDTO(java.lang.String json) |
protected java.lang.Long discountId
protected java.lang.Long id
@NotEmpty protected @NotEmpty java.lang.String type
protected java.lang.String typeSettings
public java.lang.String xClassName
public static DiscountRule toDTO(java.lang.String json)
public static DiscountRule unsafeToDTO(java.lang.String json)
@DecimalMin(value="0") public @DecimalMin(value="0") java.lang.Long getDiscountId()
public void setDiscountId(java.lang.Long discountId)
public void setDiscountId(com.liferay.petra.function.UnsafeSupplier<java.lang.Long,java.lang.Exception> discountIdUnsafeSupplier)
@DecimalMin(value="0") public @DecimalMin(value="0") java.lang.Long getId()
public void setId(java.lang.Long id)
public void setId(com.liferay.petra.function.UnsafeSupplier<java.lang.Long,java.lang.Exception> idUnsafeSupplier)
public java.lang.String getType()
public void setType(java.lang.String type)
public void setType(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> typeUnsafeSupplier)
public java.lang.String getTypeSettings()
public void setTypeSettings(java.lang.String typeSettings)
public void setTypeSettings(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> typeSettingsUnsafeSupplier)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object