Package io.voucherify.client.model
Class RewardsCreateRequestBody
java.lang.Object
io.voucherify.client.model.RewardsCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RewardsCreateRequestBody
extends Object
RewardsCreateRequestBody
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(RewardsCreateRequestBodyAttributes attributes) booleanstatic RewardsCreateRequestBodyCreate an instance of RewardsCreateRequestBody 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(RewardsCreateRequestBodyParameters parameters) voidsetAttributes(RewardsCreateRequestBodyAttributes attributes) voidsetMetadata(Object metadata) voidvoidsetParameters(RewardsCreateRequestBodyParameters parameters) voidtoJson()Convert an instance of RewardsCreateRequestBody 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
-
RewardsCreateRequestBody
public RewardsCreateRequestBody()
-
-
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 RewardsCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RewardsCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to RewardsCreateRequestBody
-
toJson
Convert an instance of RewardsCreateRequestBody to an JSON string- Returns:
- JSON string
-