Class PromotionsTiersDisableResponseBodySummaryOrders

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

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

  • Constructor Details

    • PromotionsTiersDisableResponseBodySummaryOrders

      public PromotionsTiersDisableResponseBodySummaryOrders()
  • Method Details

    • totalAmount

      public PromotionsTiersDisableResponseBodySummaryOrders totalAmount(Integer totalAmount)
    • getTotalAmount

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

      public void setTotalAmount(Integer totalAmount)
    • totalDiscountAmount

      public PromotionsTiersDisableResponseBodySummaryOrders 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 PromotionsTiersDisableResponseBodySummaryOrders fromJson(String jsonString) throws IOException
      Create an instance of PromotionsTiersDisableResponseBodySummaryOrders given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PromotionsTiersDisableResponseBodySummaryOrders
      Throws:
      IOException - if the JSON string is invalid with respect to PromotionsTiersDisableResponseBodySummaryOrders
    • toJson

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