Class RedemptionsGetResponseBodyPromotionTierSummaryOrders

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionsGetResponseBodyPromotionTierSummaryOrders extends Object
RedemptionsGetResponseBodyPromotionTierSummaryOrders
  • Field Details

  • Constructor Details

    • RedemptionsGetResponseBodyPromotionTierSummaryOrders

      public RedemptionsGetResponseBodyPromotionTierSummaryOrders()
  • Method Details

    • totalAmount

    • getTotalAmount

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

      public void setTotalAmount(Integer totalAmount)
    • totalDiscountAmount

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

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