Enum Class OrderFulfillmentStatus
java.lang.Object
java.lang.Enum<OrderFulfillmentStatus>
com.broadleafcommerce.order.client.domain.OrderFulfillmentStatus
- All Implemented Interfaces:
Serializable
,Comparable<OrderFulfillmentStatus>
,Constable
Default values for
OrderFulfillment.getStatus()
.- Author:
- Samarth Dhruva (samarthd)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the fulfillment has been cancelled.Indicates that the fulfillment payment is sent to the payment gateway but awaiting transaction result.Indicates that the fulfillment payment is currently being captured.Indicates that the fulfillment failed to be fulfilled.Indicates that the fulfillment has been fulfilled.Indicates that the fulfillment is in the process of being fulfilled.Indicates that the fulfillment is newly created.Indicates that the fulfillment payment was unable to be captured.Indicates that the fulfillment payment was successfully captured.Indicates that the fulfillment was created but cannot be fulfilled until inventory is available.Indicates that the fulfillment payment is sent to the payment gateway but awaiting refund transaction result.Indicates that the fulfillment payments were not fully refunded. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isCancelled
(String status) static boolean
isCaptureAwaitingResult
(String status) static boolean
isCapturingPayment
(String status) static boolean
isFulfilled
(String status) static boolean
isFulfillFailed
(String status) static boolean
isFulfilling
(String status) static boolean
static boolean
isPaymentCaptured
(String status) static boolean
isPaymentCaptureFailed
(String status) static boolean
isRefundAwaitingResult
(String status) static boolean
isRefundFailed
(String status) static OrderFulfillmentStatus
Returns the enum constant of this class with the specified name.static OrderFulfillmentStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW
Indicates that the fulfillment is newly created. -
PENDING_INVENTORY
Indicates that the fulfillment was created but cannot be fulfilled until inventory is available.This state is usually entered when we expect future stock to become available soon, such as Pre-Order or Backorder items.
-
CAPTURING_PAYMENT
Indicates that the fulfillment payment is currently being captured.Putting a fulfillment into this status should trigger payment capture. Only used if payment is being captured separately from authorization.
-
CAPTURE_AWAITING_RESULT
Indicates that the fulfillment payment is sent to the payment gateway but awaiting transaction result. Note that if one of the captures is awaiting result in a multiple-payment scenario, the order fulfillment will still have the awaiting result status. -
PAYMENT_CAPTURED
Indicates that the fulfillment payment was successfully captured.This status means that a fulfillment can now be fulfilled. Only used if payment is being captured separately from authorization.
-
PAYMENT_CAPTURE_FAILED
Indicates that the fulfillment payment was unable to be captured.The only action that can be performed on a status in this state is a cancellation. Cancelling this fulfillment may be necessary in the case of multiple payments, since only one payment might have failed, and others could have been captured. Only used if payment is being captured separately from authorization.
-
FULFILLING
Indicates that the fulfillment is in the process of being fulfilled. -
FULFILLED
Indicates that the fulfillment has been fulfilled. -
FULFILL_FAILED
Indicates that the fulfillment failed to be fulfilled. -
REFUND_AWAITING_RESULT
Indicates that the fulfillment payment is sent to the payment gateway but awaiting refund transaction result. This status is used for the canceling captured fulfillment scenarios. It is different fromReturnConfirmationStatus.REFUND_AWAITING_RESULT
-
REFUND_FAILED
Indicates that the fulfillment payments were not fully refunded. This status is used for the canceling captured fulfillment scenarios. It is different fromReturnConfirmationStatus.REFUND_FAILED
-
CANCELLED
Indicates that the fulfillment has been cancelled.
-
-
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
-
isNew
-
isCapturingPayment
-
isCaptureAwaitingResult
-
isPaymentCaptured
-
isPaymentCaptureFailed
-
isFulfilling
-
isFulfilled
-
isFulfillFailed
-
isRefundFailed
-
isRefundAwaitingResult
-
isCancelled
-