Class Expectation
java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.Expectation
Expectation
Buyer-facing fulfillment expectation representing logical groupings of items (e.g., 'package'). Can be split, merged, or adjusted post-order to set buyer expectations for when/how items arrive.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDelivery method type (shipping, pickup, digital). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanHuman-readable delivery description (e.g., 'Arrives in 5-8 business days').Postal AddressWhen this expectation can be fulfilled: 'now' or ISO 8601 timestamp for future date (backorder, pre-order).getId()Expectation identifier.Which line items and quantities are in this expectation.Delivery method type (shipping, pickup, digital).inthashCode()voidsetAdditionalProperty(String name, Object value) voidsetDescription(String description) Human-readable delivery description (e.g., 'Arrives in 5-8 business days').voidsetDestination(PostalAddress destination) Postal AddressvoidsetFulfillableOn(String fulfillableOn) When this expectation can be fulfilled: 'now' or ISO 8601 timestamp for future date (backorder, pre-order).voidExpectation identifier.voidsetLineItems(List<LineItem> lineItems) Which line items and quantities are in this expectation.voidsetMethodType(Expectation.MethodType methodType) Delivery method type (shipping, pickup, digital).toString()withAdditionalProperty(String name, Object value) withDescription(String description) withDestination(PostalAddress destination) withFulfillableOn(String fulfillableOn) withLineItems(List<LineItem> lineItems) withMethodType(Expectation.MethodType methodType)
-
Constructor Details
-
Expectation
public Expectation()
-
-
Method Details
-
getId
Expectation identifier. (Required) -
setId
Expectation identifier. (Required) -
withId
-
getLineItems
Which line items and quantities are in this expectation. (Required) -
setLineItems
Which line items and quantities are in this expectation. (Required) -
withLineItems
-
getMethodType
Delivery method type (shipping, pickup, digital). (Required) -
setMethodType
Delivery method type (shipping, pickup, digital). (Required) -
withMethodType
-
getDestination
Postal Address(Required)
-
setDestination
Postal Address(Required)
-
withDestination
-
getDescription
Human-readable delivery description (e.g., 'Arrives in 5-8 business days'). -
setDescription
Human-readable delivery description (e.g., 'Arrives in 5-8 business days'). -
withDescription
-
getFulfillableOn
When this expectation can be fulfilled: 'now' or ISO 8601 timestamp for future date (backorder, pre-order). -
setFulfillableOn
When this expectation can be fulfilled: 'now' or ISO 8601 timestamp for future date (backorder, pre-order). -
withFulfillableOn
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-