Package io.voucherify.client.model
Class LoyaltiesRewardAssignmentsRewardGetResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesRewardAssignmentsRewardGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesRewardAssignmentsRewardGetResponseBody
extends Object
Response body schema for **GET** `v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward`
-
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 TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanCreate an instance of LoyaltiesRewardAssignmentsRewardGetResponseBody 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) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetMetadata(Object metadata) voidvoidvoidsetParameters(RewardType parameters) voidsetRedeemed(Integer redeemed) voidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of LoyaltiesRewardAssignmentsRewardGetResponseBody 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
-
LoyaltiesRewardAssignmentsRewardGetResponseBody
public LoyaltiesRewardAssignmentsRewardGetResponseBody()
-
-
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
public LoyaltiesRewardAssignmentsRewardGetResponseBody attributes(LoyaltiesRewardAssignmentsRewardGetResponseBodyAttributes 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
public static LoyaltiesRewardAssignmentsRewardGetResponseBody fromJson(String jsonString) throws IOException Create an instance of LoyaltiesRewardAssignmentsRewardGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesRewardAssignmentsRewardGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesRewardAssignmentsRewardGetResponseBody
-
toJson
Convert an instance of LoyaltiesRewardAssignmentsRewardGetResponseBody to an JSON string- Returns:
- JSON string
-