Package io.voucherify.client.model
Class ValidationsRedeemableSkipped
java.lang.Object
io.voucherify.client.model.ValidationsRedeemableSkipped
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationsRedeemableSkipped
extends Object
ValidationsRedeemableSkipped
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumRedeemable's object type.static enumIndicates whether the redeemable can be applied or not applied based on the validation rules. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(CategoryWithStackingRulesType categoriesItem) campaignId(String campaignId) campaignName(String campaignName) categories(List<CategoryWithStackingRulesType> categories) booleanstatic ValidationsRedeemableSkippedCreate an instance of ValidationsRedeemableSkipped given an JSON stringUnique campaign ID assigned by Voucherify.Campaign name.Get categoriesgetId()Redeemable ID, i.e.The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable.getName()Name of the promotion tier.Redeemable's object type.Get resultIndicates whether the redeemable can be applied or not applied based on the validation rules.inthashCode()voidsetCampaignId(String campaignId) voidsetCampaignName(String campaignName) voidsetCategories(List<CategoryWithStackingRulesType> categories) voidvoidsetMetadata(Object metadata) voidvoidvoidvoidtoJson()Convert an instance of ValidationsRedeemableSkipped to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_NAME
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidationsRedeemableSkipped
public ValidationsRedeemableSkipped()
-
-
Method Details
-
status
-
getStatus
Indicates whether the redeemable can be applied or not applied based on the validation rules.- Returns:
- status
-
setStatus
-
id
-
getId
Redeemable ID, i.e. the voucher code.- Returns:
- id
-
setId
-
_object
-
getObject
Redeemable's object type.- Returns:
- _object
-
setObject
-
result
-
getResult
Get result- Returns:
- result
-
setResult
-
metadata
-
getMetadata
The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable.- Returns:
- metadata
-
setMetadata
-
categories
-
addCategoriesItem
-
getCategories
Get categories- Returns:
- categories
-
setCategories
-
campaignName
-
getCampaignName
Campaign name. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.- Returns:
- campaignName
-
setCampaignName
-
campaignId
-
getCampaignId
Unique campaign ID assigned by Voucherify. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.- Returns:
- campaignId
-
setCampaignId
-
name
-
getName
Name of the promotion tier. Displayed only if the `options.expand` is passed with a `redeemable` value in the validation request body.- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ValidationsRedeemableSkipped given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationsRedeemableSkipped
- Throws:
IOException- if the JSON string is invalid with respect to ValidationsRedeemableSkipped
-
toJson
Convert an instance of ValidationsRedeemableSkipped to an JSON string- Returns:
- JSON string
-