Enum Class DefaultSourceEntityType
java.lang.Object
java.lang.Enum<DefaultSourceEntityType>
com.broadleafcommerce.creditaccount.domain.enums.DefaultSourceEntityType
- All Implemented Interfaces:
SourceEntityType,Serializable,Comparable<DefaultSourceEntityType>,Constable
public enum DefaultSourceEntityType
extends Enum<DefaultSourceEntityType>
implements SourceEntityType
The default source entity types for the credit account transactions.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeclares that the credit accountTransactionwas executed due to a Broadleaf appeasement.Declares that the credit accountTransactionwas executed due to the creation of the credit account.Declares that the credit accountTransactionwas executed due to a Broadleaf payment.Declares that the credit accountTransactionwas executed due to a Broadleaf return.Declares that the credit account debitTransactionwas executed due to the credit expiration job.Declares that the credit account debitTransactionwas executed due to a debit transaction. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBroadleafAppeasement(String sourceEntityType) static booleanisBroadleafPayment(String sourceEntityType) static booleanisBroadleafReturn(String sourceEntityType) static booleanisCreditExpirationJob(String sourceEntityType) static booleanisDebitTransaction(String sourceEntityType) static DefaultSourceEntityTypeReturns the enum constant of this class with the specified name.static DefaultSourceEntityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.broadleafcommerce.creditaccount.domain.enums.SourceEntityType
name
-
Enum Constant Details
-
BLC_PAYMENT
Declares that the credit accountTransactionwas executed due to a Broadleaf payment. -
BLC_APPEASEMENT
Declares that the credit accountTransactionwas executed due to a Broadleaf appeasement. -
BLC_RETURN
Declares that the credit accountTransactionwas executed due to a Broadleaf return. -
BLC_CREATE_CREDIT_ACCOUNT
Declares that the credit accountTransactionwas executed due to the creation of the credit account. -
DEBIT_TRANSACTION
Declares that the credit account debitTransactionwas executed due to a debit transaction. This is specifically used with expiring credit transactions that are expired when a debit transaction is executed. -
CREDIT_EXPIRATION_JOB
Declares that the credit account debitTransactionwas executed due to the credit expiration job.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isBroadleafPayment
-
isBroadleafAppeasement
-
isBroadleafReturn
-
isDebitTransaction
-
isCreditExpirationJob
-