Class Adjustment

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

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

Append-only event that exists independently of fulfillment. Typically represents money movements but can be any post-order change. Polymorphic type that can optionally reference line items.

  • Constructor Details

    • Adjustment

      public Adjustment()
  • Method Details

    • getId

      public String getId()
      Adjustment event identifier. (Required)
    • setId

      public void setId(String id)
      Adjustment event identifier. (Required)
    • withId

      public Adjustment withId(String id)
    • getType

      public String getType()
      Type of adjustment (open string). Typically money-related like: refund, return, credit, price_adjustment, dispute, cancellation. Can be any value that makes sense for the merchant's business. (Required)
    • setType

      public void setType(String type)
      Type of adjustment (open string). Typically money-related like: refund, return, credit, price_adjustment, dispute, cancellation. Can be any value that makes sense for the merchant's business. (Required)
    • withType

      public Adjustment withType(String type)
    • getOccurredAt

      public Date getOccurredAt()
      RFC 3339 timestamp when this adjustment occurred. (Required)
    • setOccurredAt

      public void setOccurredAt(Date occurredAt)
      RFC 3339 timestamp when this adjustment occurred. (Required)
    • withOccurredAt

      public Adjustment withOccurredAt(Date occurredAt)
    • getStatus

      public Adjustment.Status getStatus()
      Adjustment status. (Required)
    • setStatus

      public void setStatus(Adjustment.Status status)
      Adjustment status. (Required)
    • withStatus

      public Adjustment withStatus(Adjustment.Status status)
    • getLineItems

      public List<LineItem__2> getLineItems()
      Which line items and quantities are affected (optional).
    • setLineItems

      public void setLineItems(List<LineItem__2> lineItems)
      Which line items and quantities are affected (optional).
    • withLineItems

      public Adjustment withLineItems(List<LineItem__2> lineItems)
    • getAmount

      public Integer getAmount()
      Amount in minor units (cents) for refunds, credits, price adjustments (optional).
    • setAmount

      public void setAmount(Integer amount)
      Amount in minor units (cents) for refunds, credits, price adjustments (optional).
    • withAmount

      public Adjustment withAmount(Integer amount)
    • getDescription

      public String getDescription()
      Human-readable reason or description (e.g., 'Defective item', 'Customer requested').
    • setDescription

      public void setDescription(String description)
      Human-readable reason or description (e.g., 'Defective item', 'Customer requested').
    • withDescription

      public Adjustment withDescription(String description)
    • getAdditionalProperties

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

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

      public Adjustment 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