Class CreditAccountRef
java.lang.Object
com.broadleafcommerce.creditaccount.domain.CreditAccountRef
- All Implemented Interfaces:
Serializable
The reference to the credit account.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfromCreditAccount(CreditAccount creditAccount) Builds aCreditAccountRefbased on the providedCreditAccountGenerated code that can be used to reference the credit account.getId()The credit account's id.The reference to the user that owns this credit account.Describes the owning user type of the credit account.getType()The type of this credit account.inthashCode()voidsetAccountNumber(String accountNumber) Generated code that can be used to reference the credit account.voidThe credit account's id.voidsetOwningUserRef(String owningUserRef) The reference to the user that owns this credit account.voidsetOwningUserType(String owningUserType) Describes the owning user type of the credit account.voidThe type of this credit account.toString()
-
Constructor Details
-
CreditAccountRef
public CreditAccountRef()
-
-
Method Details
-
fromCreditAccount
Builds aCreditAccountRefbased on the providedCreditAccount- Parameters:
creditAccount- the CreditAccount used to build the CreditAccountRef- Returns:
- a CreditAccountRef based on the provided CreditAccount
-
getId
The credit account's id.- Returns:
- The credit account's id.
-
getType
The type of this credit account.- Returns:
- The type of this credit account.
- See Also:
-
getAccountNumber
Generated code that can be used to reference the credit account.- Returns:
- The account number.
-
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, or BLC_ACCOUNT.- Returns:
- The type describing the owning user of the credit account
- See Also:
-
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
The credit account's id.- Parameters:
id- The credit account's id.
-
setType
The type of this credit account.- Parameters:
type- The type of this credit account.- See Also:
-
setAccountNumber
Generated code that can be used to reference the credit account.- Parameters:
accountNumber- The account number.
-
setOwningUserType
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, or BLC_ACCOUNT.- Parameters:
owningUserType- The type describing the owning user of the credit account- See Also:
-
setOwningUserRef
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-