Class RedemptionRewardResultParametersProduct

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionRewardResultParametersProduct extends Object
Defines the product redeemed as a reward.
  • Field Details

  • Constructor Details

    • RedemptionRewardResultParametersProduct

      public RedemptionRewardResultParametersProduct()
  • Method Details

    • id

    • getId

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

      public void setId(String id)
    • skuId

    • getSkuId

      @Nullable public String getSkuId()
      Unique identifier of the SKU. It is assigned by Voucherify.
      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 RedemptionRewardResultParametersProduct fromJson(String jsonString) throws IOException
      Create an instance of RedemptionRewardResultParametersProduct given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of RedemptionRewardResultParametersProduct
      Throws:
      IOException - if the JSON string is invalid with respect to RedemptionRewardResultParametersProduct
    • toJson

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