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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    The admin user who performed the override.
    The optional, long-form comment explaining any extra context for the override.
    javax.money.MonetaryAmount
    The amount contained in the field prior to being overridden.
    javax.money.MonetaryAmount
    The amount which the field has been overridden to.
    The reason the override was performed, for example, "Price Match".
    The type of override performed, e.g.
    The user ID of the admin user who performed the override.
    int
     
    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
    The type of override performed, e.g.
    void
    setUserId(String userId)
    The user ID of the admin user who performed the override.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OverrideDetail

      public OverrideDetail()
  • Method Details

    • 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:
    • 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:
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object