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 attributesGet metadatagetName()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
-
setName
-
parameters
-
getParameters
Get parameters- Returns:
- parameters
-
setParameters
-
metadata
-
getMetadata
-
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
-
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
-