Package io.voucherify.client.model
Class RewardsUpdateRequestBody
java.lang.Object
io.voucherify.client.model.RewardsUpdateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RewardsUpdateRequestBody
extends Object
RewardsUpdateRequestBody
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(RewardsUpdateRequestBodyAttributes attributes) booleanstatic RewardsUpdateRequestBodyCreate an instance of RewardsUpdateRequestBody given an JSON stringGet attributesThe metadata object stores all custom attributes assigned to the reward.getName()Reward name.Get parametersgetStock()The number of units of the product that you want to share as a reward.inthashCode()parameters(RewardsUpdateRequestBodyParameters parameters) voidsetAttributes(RewardsUpdateRequestBodyAttributes attributes) voidsetMetadata(Object metadata) voidvoidsetParameters(RewardsUpdateRequestBodyParameters parameters) voidtoJson()Convert an instance of RewardsUpdateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PARAMETERS
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_STOCK
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RewardsUpdateRequestBody
public RewardsUpdateRequestBody()
-
-
Method Details
-
name
-
getName
Reward name.- Returns:
- name
-
setName
-
parameters
-
getParameters
Get parameters- Returns:
- parameters
-
setParameters
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format.- Returns:
- metadata
-
setMetadata
-
stock
-
getStock
The number of units of the product that you want to share as a reward.- Returns:
- stock
-
setStock
-
attributes
-
getAttributes
Get attributes- Returns:
- attributes
-
setAttributes
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RewardsUpdateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RewardsUpdateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to RewardsUpdateRequestBody
-
toJson
Convert an instance of RewardsUpdateRequestBody to an JSON string- Returns:
- JSON string
-