Class TotalResponse

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

@Generated("jsonschema2pojo") public class TotalResponse extends Object
Total Response

  • Constructor Details

    • TotalResponse

      public TotalResponse()
  • Method Details

    • getType

      public TotalResponse.Type getType()
      Type of total categorization. (Required)
    • setType

      public void setType(TotalResponse.Type type)
      Type of total categorization. (Required)
    • withType

      public TotalResponse withType(TotalResponse.Type type)
    • getDisplayText

      public String getDisplayText()
      Text to display against the amount. Should reflect appropriate method (e.g., 'Shipping', 'Delivery').
    • setDisplayText

      public void setDisplayText(String displayText)
      Text to display against the amount. Should reflect appropriate method (e.g., 'Shipping', 'Delivery').
    • withDisplayText

      public TotalResponse withDisplayText(String displayText)
    • getAmount

      public Integer getAmount()
      If type == total, sums subtotal - discount + fulfillment + tax + fee. Should be >= 0. Amount in minor (cents) currency units. (Required)
    • setAmount

      public void setAmount(Integer amount)
      If type == total, sums subtotal - discount + fulfillment + tax + fee. Should be >= 0. Amount in minor (cents) currency units. (Required)
    • withAmount

      public TotalResponse withAmount(Integer amount)
    • getAdditionalProperties

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

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

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