Package io.voucherify.client.model
Class RedeemableHolder
java.lang.Object
io.voucherify.client.model.RedeemableHolder
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedeemableHolder
extends Object
Single customer's redeemable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the type of the campaign.static classstatic enumRole of the holder.static enumThe type of the object represented by JSON.static enumDefines the type of the voucher. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(RedeemableHolder.ObjectEnum _object) campaignId(String campaignId) campaignType(RedeemableHolder.CampaignTypeEnum campaignType) createdAt(OffsetDateTime createdAt) customerId(String customerId) booleanstatic RedeemableHolderCreate an instance of RedeemableHolder given an JSON stringUnique identifier of the campaign as assigned by Voucherify.Defines the type of the campaign.Timestamp representing the date and time when the redeemable was assigned.Unique identifier of the customer.Role of the holder.getId()Unique identifier of the redeemable holder.A set of custom key/value pairs that you can attach to a redeemable holder.The type of the object represented by JSON.Identifier of the redeemable item.Type of the redeemable.Defines the type of the voucher.inthashCode()holderRole(RedeemableHolder.HolderRoleEnum holderRole) redeemableId(String redeemableId) redeemableObject(String redeemableObject) voidsetCampaignId(String campaignId) voidsetCampaignType(RedeemableHolder.CampaignTypeEnum campaignType) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCustomerId(String customerId) voidsetHolderRole(RedeemableHolder.HolderRoleEnum holderRole) voidvoidsetMetadata(Object metadata) voidsetObject(RedeemableHolder.ObjectEnum _object) voidsetRedeemableId(String redeemableId) voidsetRedeemableObject(String redeemableObject) voidsetVoucherType(RedeemableHolder.VoucherTypeEnum voucherType) toJson()Convert an instance of RedeemableHolder to an JSON stringtoString()voucherType(RedeemableHolder.VoucherTypeEnum voucherType)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_REDEEMABLE_ID
- See Also:
-
SERIALIZED_NAME_REDEEMABLE_OBJECT
- See Also:
-
SERIALIZED_NAME_CUSTOMER_ID
- See Also:
-
SERIALIZED_NAME_HOLDER_ROLE
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_TYPE
- See Also:
-
SERIALIZED_NAME_VOUCHER_TYPE
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedeemableHolder
public RedeemableHolder()
-
-
Method Details
-
id
-
getId
Unique identifier of the redeemable holder.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the redeemable was assigned. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
redeemableId
-
getRedeemableId
Identifier of the redeemable item.- Returns:
- redeemableId
-
setRedeemableId
-
redeemableObject
-
getRedeemableObject
Type of the redeemable.- Returns:
- redeemableObject
-
setRedeemableObject
-
customerId
-
getCustomerId
Unique identifier of the customer.- Returns:
- customerId
-
setCustomerId
-
holderRole
-
getHolderRole
Role of the holder.- Returns:
- holderRole
-
setHolderRole
-
campaignId
-
getCampaignId
Unique identifier of the campaign as assigned by Voucherify.- Returns:
- campaignId
-
setCampaignId
-
campaignType
-
getCampaignType
Defines the type of the campaign.- Returns:
- campaignType
-
setCampaignType
-
voucherType
-
getVoucherType
Defines the type of the voucher.- Returns:
- voucherType
-
setVoucherType
-
metadata
-
getMetadata
A set of custom key/value pairs that you can attach to a redeemable holder. The metadata object stores all custom attributes assigned to the `redeemable_holder` object.- Returns:
- metadata
-
setMetadata
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedeemableHolder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedeemableHolder
- Throws:
IOException- if the JSON string is invalid with respect to RedeemableHolder
-
toJson
Convert an instance of RedeemableHolder to an JSON string- Returns:
- JSON string
-