Class PromotionTierSummaryOrders

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

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

  • Constructor Details

    • PromotionTierSummaryOrders

      public PromotionTierSummaryOrders()
  • Method Details

    • totalAmount

      public PromotionTierSummaryOrders totalAmount(Integer totalAmount)
    • getTotalAmount

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

      public void setTotalAmount(Integer totalAmount)
    • totalDiscountAmount

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

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