Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RewardsCreateRequestBodyParametersProduct given an JSON stringgetId()Unique product ID, assigned by Voucherify, given as a reward.getSkuId()Unique SKU ID, assigned by Voucherify, of the SKU given as a reward.inthashCode()voidvoidtoJson()Convert an instance of RewardsCreateRequestBodyParametersProduct to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SKU_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RewardsCreateRequestBodyParametersProduct
public RewardsCreateRequestBodyParametersProduct()
-
-
Method Details
-
id
-
getId
Unique product ID, assigned by Voucherify, given as a reward.- Returns:
- id
-
setId
-
skuId
-
getSkuId
Unique SKU ID, assigned by Voucherify, of the SKU given as a reward.- Returns:
- skuId
-
setSkuId
-
equals
-
hashCode
public int hashCode() -
toString
-
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
Convert an instance of RewardsCreateRequestBodyParametersProduct to an JSON string- Returns:
- JSON string
-