Class PromotionsTiersCreateResponseBodySummaryOrders

java.lang.Object
io.voucherify.client.model.PromotionsTiersCreateResponseBodySummaryOrders

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PromotionsTiersCreateResponseBodySummaryOrders extends Object
Contains statistics about orders related to the promotion tier.
  • Field Details

  • Constructor Details

    • PromotionsTiersCreateResponseBodySummaryOrders

      public PromotionsTiersCreateResponseBodySummaryOrders()
  • Method Details

    • totalAmount

      public PromotionsTiersCreateResponseBodySummaryOrders totalAmount(Integer totalAmount)
    • getTotalAmount

      @Nullable public Integer getTotalAmount()
      Sum of order totals.
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(Integer totalAmount)
    • totalDiscountAmount

      public PromotionsTiersCreateResponseBodySummaryOrders totalDiscountAmount(Integer totalDiscountAmount)
    • getTotalDiscountAmount

      @Nullable public Integer getTotalDiscountAmount()
      Sum of total discount applied using the promotion tier.
      Returns:
      totalDiscountAmount
    • setTotalDiscountAmount

      public void setTotalDiscountAmount(Integer totalDiscountAmount)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public static PromotionsTiersCreateResponseBodySummaryOrders fromJson(String jsonString) throws IOException
      Create an instance of PromotionsTiersCreateResponseBodySummaryOrders given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PromotionsTiersCreateResponseBodySummaryOrders
      Throws:
      IOException - if the JSON string is invalid with respect to PromotionsTiersCreateResponseBodySummaryOrders
    • toJson

      public String toJson()
      Convert an instance of PromotionsTiersCreateResponseBodySummaryOrders to an JSON string
      Returns:
      JSON string