Class RewardsCreateRequestBodyParametersProduct

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

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

  • Constructor Details

    • RewardsCreateRequestBodyParametersProduct

      public RewardsCreateRequestBodyParametersProduct()
  • Method Details

    • id

    • getId

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

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

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