Class CreditAccountRef

java.lang.Object
com.broadleafcommerce.cartoperation.domain.payment.CreditAccountRef
All Implemented Interfaces:
Serializable

public class CreditAccountRef extends Object implements Serializable
The reference to the credit account.
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • CreditAccountRef

      public CreditAccountRef()
  • Method Details

    • getId

      public String getId()
      The credit account's id.
      Returns:
      The credit account's id.
    • getType

      public String getType()
      The type of this credit account. By default, it can be "STORE_CREDIT", "ACCOUNT_CREDIT" or "GIFT_CARD".
      Returns:
      The type of this credit account.
    • getAccountNumber

      public String getAccountNumber()
      Generated code that can be used to reference the credit account.
      Returns:
      The account number.
    • getOwningUserType

      public String getOwningUserType()
      Describes the owning user type of the credit account. For example, the credit account could belong to a customer, anonymous user or an account, therefore this value might be BLC_CUSTOMER, ANONYMOUS_USER_EMAIL, ANONYMOUS_USER_PHONE, or BLC_ACCOUNT.
      Returns:
      The type describing the owning user of the credit account
    • getOwningUserRef

      public String getOwningUserRef()
      The reference to the user that owns this credit account. For example, this may be a customer id, an account id, or the anonymous user's email address.
      Returns:
      The reference to the user that owns this credit account.
    • setId

      public void setId(String id)
      The credit account's id.
      Parameters:
      id - The credit account's id.
    • setType

      public void setType(String type)
      The type of this credit account. By default, it can be "STORE_CREDIT", "ACCOUNT_CREDIT" or "GIFT_CARD".
      Parameters:
      type - The type of this credit account.
    • setAccountNumber

      public void setAccountNumber(String accountNumber)
      Generated code that can be used to reference the credit account.
      Parameters:
      accountNumber - The account number.
    • setOwningUserType

      public void setOwningUserType(String owningUserType)
      Describes the owning user type of the credit account. For example, the credit account could belong to a customer, anonymous user or an account, therefore this value might be BLC_CUSTOMER, ANONYMOUS_USER_EMAIL, ANONYMOUS_USER_PHONE, or BLC_ACCOUNT.
      Parameters:
      owningUserType - The type describing the owning user of the credit account
    • setOwningUserRef

      public void setOwningUserRef(String owningUserRef)
      The reference to the user that owns this credit account. For example, this may be a customer id, an account id, or the anonymous user's email address.
      Parameters:
      owningUserRef - The reference to the user that owns this credit account.
    • 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