Package io.voucherify.client.model
Class RewardsUpdateResponseBody
java.lang.Object
io.voucherify.client.model.RewardsUpdateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RewardsUpdateResponseBody
extends Object
Response body schema for **PUT** `v1/rewards/{rewardId}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSON.static enumReward type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(RewardsUpdateResponseBodyAttributes attributes) createdAt(OffsetDateTime createdAt) booleanstatic RewardsUpdateResponseBodyCreate an instance of RewardsUpdateResponseBody given an JSON stringGet attributesTimestamp representing the date and time when the reward was created.getId()Unique reward ID, assigned by Voucherify.The metadata object stores all custom attributes assigned to the reward.getName()Reward name.The type of the object represented by the JSON.Get parametersDefines the number of already invoked (successful) reward redemptions.getStock()Configurable for **material rewards**.getType()Reward type.Timestamp representing the date and time when the reward was updated.inthashCode()parameters(RewardType parameters) voidsetAttributes(RewardsUpdateResponseBodyAttributes attributes) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetMetadata(Object metadata) voidvoidvoidsetParameters(RewardType parameters) voidsetRedeemed(Integer redeemed) voidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of RewardsUpdateResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_STOCK
- See Also:
-
SERIALIZED_NAME_REDEEMED
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_PARAMETERS
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RewardsUpdateResponseBody
public RewardsUpdateResponseBody()
-
-
Method Details
-
id
-
getId
Unique reward ID, assigned by Voucherify.- Returns:
- id
-
setId
-
name
-
getName
Reward name.- Returns:
- name
-
setName
-
stock
-
getStock
Configurable for **material rewards**. The number of units of the product that you want to share as reward.- Returns:
- stock
-
setStock
-
redeemed
-
getRedeemed
Defines the number of already invoked (successful) reward redemptions.- Returns:
- redeemed
-
setRedeemed
-
attributes
-
getAttributes
Get attributes- Returns:
- attributes
-
setAttributes
-
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
-
type
-
getType
Reward type.- Returns:
- type
-
setType
-
parameters
-
getParameters
Get parameters- Returns:
- parameters
-
setParameters
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the reward was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the reward was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
_object
-
getObject
The type of the object represented by the JSON. This object stores information about the reward.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RewardsUpdateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RewardsUpdateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to RewardsUpdateResponseBody
-
toJson
Convert an instance of RewardsUpdateResponseBody to an JSON string- Returns:
- JSON string
-