Class DiscountProduct

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

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

  • Constructor Details

    • DiscountProduct

      public DiscountProduct()
  • Method Details

    • id

      public DiscountProduct id(String id)
    • getId

      @Nullable public String getId()
      Unique product ID, assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public DiscountProduct sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      Product's source ID.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • name

      public DiscountProduct name(String name)
    • getName

      @Nullable public String getName()
      Product name.
      Returns:
      name
    • setName

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

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