Class OrderLineItem
java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.OrderLineItem
Order Line Item
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDerived status: fulfilled if quantity.fulfilled == quantity.total, partial if quantity.fulfilled > 0, otherwise processing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Line item identifier.getItem()Item ResponseParent line item identifier for any nested structures.Quantity tracking.Derived status: fulfilled if quantity.fulfilled == quantity.total, partial if quantity.fulfilled > 0, otherwise processing.Line item totals breakdown.inthashCode()voidsetAdditionalProperty(String name, Object value) voidLine item identifier.voidsetItem(ItemResponse item) Item ResponsevoidsetParentId(String parentId) Parent line item identifier for any nested structures.voidsetQuantity(Quantity quantity) Quantity tracking.voidsetStatus(OrderLineItem.Status status) Derived status: fulfilled if quantity.fulfilled == quantity.total, partial if quantity.fulfilled > 0, otherwise processing.voidsetTotals(List<TotalResponse> totals) Line item totals breakdown.toString()withAdditionalProperty(String name, Object value) withItem(ItemResponse item) withParentId(String parentId) withQuantity(Quantity quantity) withStatus(OrderLineItem.Status status) withTotals(List<TotalResponse> totals)
-
Constructor Details
-
OrderLineItem
public OrderLineItem()
-
-
Method Details
-
getId
Line item identifier. (Required) -
setId
Line item identifier. (Required) -
withId
-
getItem
Item Response(Required)
-
setItem
Item Response(Required)
-
withItem
-
getQuantity
Quantity tracking. Both total and fulfilled are derived from events. (Required) -
setQuantity
Quantity tracking. Both total and fulfilled are derived from events. (Required) -
withQuantity
-
getTotals
Line item totals breakdown. (Required) -
setTotals
Line item totals breakdown. (Required) -
withTotals
-
getStatus
Derived status: fulfilled if quantity.fulfilled == quantity.total, partial if quantity.fulfilled > 0, otherwise processing. (Required) -
setStatus
Derived status: fulfilled if quantity.fulfilled == quantity.total, partial if quantity.fulfilled > 0, otherwise processing. (Required) -
withStatus
-
getParentId
Parent line item identifier for any nested structures. -
setParentId
Parent line item identifier for any nested structures. -
withParentId
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-