Class OrderPaymentStatus
java.lang.Object
org.broadleafcommerce.core.payment.service.type.OrderPaymentStatus
- All Implemented Interfaces:
Serializable,BroadleafEnumerationType
Used to determine the status of an
OrderPayment
which is calculated based on the state of its containing
PaymentTransactions- Author:
- Elbert Bautista (elbertbautista)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OrderPaymentStatusThis is equivalent to having a successfulPaymentTransactionType.AUTHORIZEtransaction on the payment, but there are no transactions indicating that payment has been captured.static final OrderPaymentStatusThis represents a completed state for this order payment wherein no more action can be performed on the original transaction.static final OrderPaymentStatusThis is equivalent to having a successfulPaymentTransactionType.AUTHORIZE_AND_CAPTUREtransaction on the payment OR all the partialPaymentTransactionType.CAPTUREtransaction amounts equal the original order payment transaction, but there are no transactions indicating that payment has had any refunds issued against it.static final OrderPaymentStatusThis is equivalent to having a successfulPaymentTransactionType.AUTHORIZE_AND_CAPTUREOR one or morePaymentTransactionType.CAPTUREtransactions which may have zero or more refund transactions issued against it.static final OrderPaymentStatusThis represents the state where there is aPaymentTransactionType.PENDINGtransaction on the payment, but there is not yet a completedPaymentTransactionType.AUTHORIZEorPaymentTransactionType.AUTHORIZE_AND_CAPTUREtransaction.static final OrderPaymentStatusThis represents the state where there is only aPaymentTransactionType.UNCONFIRMEDtransaction on the payment.static final OrderPaymentStatusThis is the default status for an Order Payment and is meant to encompass a state not represented by the other payment statuses. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OrderPaymentStatusgetInstance(String type) getType()inthashCode()protected void
-
Field Details
-
UNDETERMINED
This is the default status for an Order Payment and is meant to encompass a state not represented by the other payment statuses. -
UNCONFIRMED
This represents the state where there is only aPaymentTransactionType.UNCONFIRMEDtransaction on the payment. -
PENDING
This represents the state where there is aPaymentTransactionType.PENDINGtransaction on the payment, but there is not yet a completedPaymentTransactionType.AUTHORIZEorPaymentTransactionType.AUTHORIZE_AND_CAPTUREtransaction. -
AUTHORIZED
This is equivalent to having a successfulPaymentTransactionType.AUTHORIZEtransaction on the payment, but there are no transactions indicating that payment has been captured. -
FULLY_CAPTURED
This is equivalent to having a successfulPaymentTransactionType.AUTHORIZE_AND_CAPTUREtransaction on the payment OR all the partialPaymentTransactionType.CAPTUREtransaction amounts equal the original order payment transaction, but there are no transactions indicating that payment has had any refunds issued against it. -
PARTIALLY_COMPLETE
This is equivalent to having a successfulPaymentTransactionType.AUTHORIZE_AND_CAPTUREOR one or morePaymentTransactionType.CAPTUREtransactions which may have zero or more refund transactions issued against it. -
COMPLETE
This represents a completed state for this order payment wherein no more action can be performed on the original transaction. Specifically, if the transaction log contains a successfulPaymentTransactionType.REVERSE_AUTH,PaymentTransactionType.VOID,PaymentTransactionType.DETACHED_CREDITor the total transaction amount is equal to all the refund transactions.
-
-
Constructor Details
-
OrderPaymentStatus
public OrderPaymentStatus() -
OrderPaymentStatus
-
-
Method Details
-
getInstance
-
getType
- Specified by:
getTypein interfaceBroadleafEnumerationType
-
setType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceBroadleafEnumerationType
-
hashCode
public int hashCode() -
equals
-