java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.Order

@Generated("jsonschema2pojo") public class Order extends Object
Order

Order schema with immutable line items, buyer-facing fulfillment expectations, and append-only event logs.

  • Constructor Details

    • Order

      public Order()
  • Method Details

    • getUcp

      public UCPOrderResponse getUcp()
      UCP Order Response

      UCP metadata for order responses. No payment handlers needed post-purchase. (Required)

    • setUcp

      public void setUcp(UCPOrderResponse ucp)
      UCP Order Response

      UCP metadata for order responses. No payment handlers needed post-purchase. (Required)

    • withUcp

      public Order withUcp(UCPOrderResponse ucp)
    • getId

      public String getId()
      Unique order identifier. (Required)
    • setId

      public void setId(String id)
      Unique order identifier. (Required)
    • withId

      public Order withId(String id)
    • getCheckoutId

      public String getCheckoutId()
      Associated checkout ID for reconciliation. (Required)
    • setCheckoutId

      public void setCheckoutId(String checkoutId)
      Associated checkout ID for reconciliation. (Required)
    • withCheckoutId

      public Order withCheckoutId(String checkoutId)
    • getPermalinkUrl

      public URI getPermalinkUrl()
      Permalink to access the order on merchant site. (Required)
    • setPermalinkUrl

      public void setPermalinkUrl(URI permalinkUrl)
      Permalink to access the order on merchant site. (Required)
    • withPermalinkUrl

      public Order withPermalinkUrl(URI permalinkUrl)
    • getLineItems

      public List<OrderLineItem> getLineItems()
      Immutable line items — source of truth for what was ordered. (Required)
    • setLineItems

      public void setLineItems(List<OrderLineItem> lineItems)
      Immutable line items — source of truth for what was ordered. (Required)
    • withLineItems

      public Order withLineItems(List<OrderLineItem> lineItems)
    • getFulfillment

      public Fulfillment getFulfillment()
      Fulfillment data: buyer expectations and what actually happened. (Required)
    • setFulfillment

      public void setFulfillment(Fulfillment fulfillment)
      Fulfillment data: buyer expectations and what actually happened. (Required)
    • withFulfillment

      public Order withFulfillment(Fulfillment fulfillment)
    • getAdjustments

      public List<Adjustment> getAdjustments()
      Append-only event log of money movements (refunds, returns, credits, disputes, cancellations, etc.) that exist independently of fulfillment.
    • setAdjustments

      public void setAdjustments(List<Adjustment> adjustments)
      Append-only event log of money movements (refunds, returns, credits, disputes, cancellations, etc.) that exist independently of fulfillment.
    • withAdjustments

      public Order withAdjustments(List<Adjustment> adjustments)
    • getTotals

      public List<TotalResponse> getTotals()
      Different totals for the order. (Required)
    • setTotals

      public void setTotals(List<TotalResponse> totals)
      Different totals for the order. (Required)
    • withTotals

      public Order withTotals(List<TotalResponse> totals)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • withAdditionalProperty

      public Order withAdditionalProperty(String name, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object