Package io.voucherify.client.model
Class ValidationsRedeemableInapplicable
java.lang.Object
io.voucherify.client.model.ValidationsRedeemableInapplicable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationsRedeemableInapplicable
extends Object
ValidationsRedeemableInapplicable
-
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) booleanCreate an instance of ValidationsRedeemableInapplicable 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 ValidationsRedeemableInapplicable 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
-
ValidationsRedeemableInapplicable
public ValidationsRedeemableInapplicable()
-
-
Method Details
-
status
public ValidationsRedeemableInapplicable status(ValidationsRedeemableInapplicable.StatusEnum 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
public ValidationsRedeemableInapplicable _object(ValidationsRedeemableInapplicable.ObjectEnum _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
public ValidationsRedeemableInapplicable addCategoriesItem(CategoryWithStackingRulesType categoriesItem) -
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 ValidationsRedeemableInapplicable given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationsRedeemableInapplicable
- Throws:
IOException- if the JSON string is invalid with respect to ValidationsRedeemableInapplicable
-
toJson
Convert an instance of ValidationsRedeemableInapplicable to an JSON string- Returns:
- JSON string
-