Class Order
java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.Order
Order
Order schema with immutable line items, buyer-facing fulfillment expectations, and append-only event logs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAppend-only event log of money movements (refunds, returns, credits, disputes, cancellations, etc.) that exist independently of fulfillment.Associated checkout ID for reconciliation.Fulfillment data: buyer expectations and what actually happened.getId()Unique order identifier.Immutable line items — source of truth for what was ordered.Permalink to access the order on merchant site.Different totals for the order.getUcp()UCP Order ResponseinthashCode()voidsetAdditionalProperty(String name, Object value) voidsetAdjustments(List<Adjustment> adjustments) Append-only event log of money movements (refunds, returns, credits, disputes, cancellations, etc.) that exist independently of fulfillment.voidsetCheckoutId(String checkoutId) Associated checkout ID for reconciliation.voidsetFulfillment(Fulfillment fulfillment) Fulfillment data: buyer expectations and what actually happened.voidUnique order identifier.voidsetLineItems(List<OrderLineItem> lineItems) Immutable line items — source of truth for what was ordered.voidsetPermalinkUrl(URI permalinkUrl) Permalink to access the order on merchant site.voidsetTotals(List<TotalResponse> totals) Different totals for the order.voidsetUcp(UCPOrderResponse ucp) UCP Order ResponsetoString()withAdditionalProperty(String name, Object value) withAdjustments(List<Adjustment> adjustments) withCheckoutId(String checkoutId) withFulfillment(Fulfillment fulfillment) withLineItems(List<OrderLineItem> lineItems) withPermalinkUrl(URI permalinkUrl) withTotals(List<TotalResponse> totals) withUcp(UCPOrderResponse ucp)
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
getUcp
UCP Order ResponseUCP metadata for order responses. No payment handlers needed post-purchase. (Required)
-
setUcp
UCP Order ResponseUCP metadata for order responses. No payment handlers needed post-purchase. (Required)
-
withUcp
-
getId
Unique order identifier. (Required) -
setId
Unique order identifier. (Required) -
withId
-
getCheckoutId
Associated checkout ID for reconciliation. (Required) -
setCheckoutId
Associated checkout ID for reconciliation. (Required) -
withCheckoutId
-
getPermalinkUrl
Permalink to access the order on merchant site. (Required) -
setPermalinkUrl
Permalink to access the order on merchant site. (Required) -
withPermalinkUrl
-
getLineItems
Immutable line items — source of truth for what was ordered. (Required) -
setLineItems
Immutable line items — source of truth for what was ordered. (Required) -
withLineItems
-
getFulfillment
Fulfillment data: buyer expectations and what actually happened. (Required) -
setFulfillment
Fulfillment data: buyer expectations and what actually happened. (Required) -
withFulfillment
-
getAdjustments
Append-only event log of money movements (refunds, returns, credits, disputes, cancellations, etc.) that exist independently of fulfillment. -
setAdjustments
Append-only event log of money movements (refunds, returns, credits, disputes, cancellations, etc.) that exist independently of fulfillment. -
withAdjustments
-
getTotals
Different totals for the order. (Required) -
setTotals
Different totals for the order. (Required) -
withTotals
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-