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 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(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
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 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
-