Class PromotionsTiersGetResponseBodyAction

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PromotionsTiersGetResponseBodyAction extends Object
Contains details about the discount applied by the promotion tier.
  • Field Details

  • Constructor Details

    • PromotionsTiersGetResponseBodyAction

      public PromotionsTiersGetResponseBodyAction()
  • Method Details

    • discount

      public PromotionsTiersGetResponseBodyAction discount(Discount discount)
    • getDiscount

      @Nullable public Discount getDiscount()
      Get discount
      Returns:
      discount
    • setDiscount

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

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