Class RewardTypeProduct

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RewardTypeProduct extends Object
Contains information about the product given as a reward.
  • Field Details

  • Constructor Details

    • RewardTypeProduct

      public RewardTypeProduct()
  • Method Details

    • id

      public RewardTypeProduct id(String id)
    • getId

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

      public void setId(String id)
    • skuId

      public RewardTypeProduct skuId(String skuId)
    • getSkuId

      @Nullable public String getSkuId()
      Unique SKU ID, assigned by Voucherify, of the SKU given as a reward.
      Returns:
      skuId
    • setSkuId

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

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