Class FulfillmentStatusChangeRequest
java.lang.Object
com.broadleafcommerce.orderoperation.domain.FulfillmentStatusChangeRequest
- All Implemented Interfaces:
Serializable
A request DTO for changing the status of a fulfillment, or partially changing the status of some
of the items in that fulfillment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe ID of the fulfillment to have its status changed.Any extra fees to include when performing this status change.The quantities of each fulfillment item which should change status.The status to change the fulfillment to.inthashCode()voidsetFulfillmentId(String fulfillmentId) The ID of the fulfillment to have its status changed.voidsetIncludedExtraFees(Set<String> includedExtraFees) Any extra fees to include when performing this status change.voidsetItemQuantities(Map<String, Integer> itemQuantities) The quantities of each fulfillment item which should change status.voidThe status to change the fulfillment to.toString()
-
Constructor Details
-
FulfillmentStatusChangeRequest
public FulfillmentStatusChangeRequest()
-
-
Method Details
-
getFulfillmentId
The ID of the fulfillment to have its status changed.- Returns:
- the ID of the fulfillment to have its status changed
-
getStatus
The status to change the fulfillment to.- Returns:
- the status to change the fulfillment to
-
getItemQuantities
The quantities of each fulfillment item which should change status.If empty or null, then the entire fulfillment will change status. Otherwise, if only a subset of the items and quantities are included, then the unchanged item quantities will be split into a new fulfillment with the previous status.
- Returns:
- the quantities of each fulfillment item which should change status
-
getIncludedExtraFees
Any extra fees to include when performing this status change. Extra fees are represented by order items but not fulfillment items and so normally aren't included in status changes.This is primarily useful for including fees in cancel and capture events. This may not mean anything for other status changes.
- Since:
- Order Operations 2.2.0, Release Train 2.3.0
-
setFulfillmentId
The ID of the fulfillment to have its status changed.- Parameters:
fulfillmentId- the ID of the fulfillment to have its status changed
-
setStatus
The status to change the fulfillment to.- Parameters:
status- the status to change the fulfillment to
-
setItemQuantities
The quantities of each fulfillment item which should change status.If empty or null, then the entire fulfillment will change status. Otherwise, if only a subset of the items and quantities are included, then the unchanged item quantities will be split into a new fulfillment with the previous status.
- Parameters:
itemQuantities- the quantities of each fulfillment item which should change status
-
setIncludedExtraFees
Any extra fees to include when performing this status change. Extra fees are represented by order items but not fulfillment items and so normally aren't included in status changes.This is primarily useful for including fees in cancel and capture events. This may not mean anything for other status changes.
- Since:
- Order Operations 2.2.0, Release Train 2.3.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-