Class OverrideDetail
- java.lang.Object
-
- com.broadleafcommerce.order.common.domain.OverrideDetail
-
- All Implemented Interfaces:
Serializable
public class OverrideDetail extends Object implements Serializable
Audit information for a CSR override which was performed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverrideDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAuthor()
The admin user who performed the override.String
getComment()
The optional, long-form comment explaining any extra context for the override.javax.money.MonetaryAmount
getOriginalAmount()
The amount contained in the field prior to being overridden.javax.money.MonetaryAmount
getOverrideAmount()
The amount which the field has been overridden to.String
getReason()
The reason the override was performed, for example, "Price Match".String
getType()
The type of override performed, e.g.String
getUserId()
The user ID of the admin user who performed the override.int
hashCode()
void
setAuthor(String author)
The admin user who performed the override.void
setComment(String comment)
The optional, long-form comment explaining any extra context for the override.void
setOriginalAmount(javax.money.MonetaryAmount originalAmount)
The amount contained in the field prior to being overridden.void
setOverrideAmount(javax.money.MonetaryAmount overrideAmount)
The amount which the field has been overridden to.void
setReason(String reason)
The reason the override was performed, for example, "Price Match".void
setType(String type)
The type of override performed, e.g.void
setUserId(String userId)
The user ID of the admin user who performed the override.String
toString()
-
-
-
Method Detail
-
getUserId
public String getUserId()
The user ID of the admin user who performed the override.- Returns:
- The ID of the admin user who pepwd rformed the override.
-
getAuthor
public String getAuthor()
The admin user who performed the override.- Returns:
- The admin user who performed the override.
-
getType
public String getType()
The type of override performed, e.g. a Cart Item Price override or a Fulfillment Group Price override.- Returns:
- The type of override performed.
- See Also:
DefaultOverrideTypes
-
getOriginalAmount
public javax.money.MonetaryAmount getOriginalAmount()
The amount contained in the field prior to being overridden.- Returns:
- The amount contained in the field prior to being overridden.
-
getOverrideAmount
public javax.money.MonetaryAmount getOverrideAmount()
The amount which the field has been overridden to.- Returns:
- The amount which the field has been overridden to.
-
getReason
@Nullable public String getReason()
The reason the override was performed, for example, "Price Match".- Returns:
- The reason the override was performed.
-
getComment
@Nullable public String getComment()
The optional, long-form comment explaining any extra context for the override.- Returns:
- The optional, long-form comment explaining any extra context for the override.
-
setUserId
public void setUserId(String userId)
The user ID of the admin user who performed the override.- Parameters:
userId
- The ID of the admin user who performed the override.
-
setAuthor
public void setAuthor(String author)
The admin user who performed the override.- Parameters:
userId
- The admin user who performed the override.
-
setType
public void setType(String type)
The type of override performed, e.g. a Cart Item Price override or a Fulfillment Group Price override.- Parameters:
type
- The type of override performed.- See Also:
DefaultOverrideTypes
-
setOriginalAmount
public void setOriginalAmount(javax.money.MonetaryAmount originalAmount)
The amount contained in the field prior to being overridden.- Parameters:
originalAmount
- The amount contained in the field prior to being overridden.
-
setOverrideAmount
public void setOverrideAmount(javax.money.MonetaryAmount overrideAmount)
The amount which the field has been overridden to.- Parameters:
overrideAmount
- The amount which the field has been overridden to.
-
setReason
public void setReason(@Nullable String reason)
The reason the override was performed, for example, "Price Match".- Parameters:
reason
- The reason the override was performed.
-
setComment
public void setComment(@Nullable String comment)
The optional, long-form comment explaining any extra context for the override.- Parameters:
comment
- The optional, long-form comment explaining any extra context for the override.
-
canEqual
protected boolean canEqual(Object other)
-
-