Package io.voucherify.client.model
Class ValidationsValidateResponseBodyRedeemablesItem
java.lang.Object
io.voucherify.client.model.ValidationsValidateResponseBodyRedeemablesItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationsValidateResponseBodyRedeemablesItem
extends Object
ValidationsValidateResponseBodyRedeemablesItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumRedeemable's object type.static enumGets or Sets status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(CategoryWithStackingRulesType categoriesItem) applicableTo(ApplicableToResultList applicableTo) campaignId(String campaignId) campaignName(String campaignName) categories(List<CategoryWithStackingRulesType> categories) booleanCreate an instance of ValidationsValidateResponseBodyRedeemablesItem given an JSON stringGet applicableToUnique campaign ID assigned by Voucherify.Campaign name.Get categoriesgetId()Redeemable ID, i.e.Get inapplicableToThe 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.getOrder()Get orderGet resultGet statusinthashCode()inapplicableTo(InapplicableToResultList inapplicableTo) order(OrderCalculated order) voidsetApplicableTo(ApplicableToResultList applicableTo) voidsetCampaignId(String campaignId) voidsetCampaignName(String campaignName) voidsetCategories(List<CategoryWithStackingRulesType> categories) voidvoidsetInapplicableTo(InapplicableToResultList inapplicableTo) voidsetMetadata(Object metadata) voidvoidvoidsetOrder(OrderCalculated order) voidvoidtoJson()Convert an instance of ValidationsValidateResponseBodyRedeemablesItem to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_APPLICABLE_TO
- See Also:
-
SERIALIZED_NAME_INAPPLICABLE_TO
- 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
-
ValidationsValidateResponseBodyRedeemablesItem
public ValidationsValidateResponseBodyRedeemablesItem()
-
-
Method Details
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
id
-
getId
Redeemable ID, i.e. the voucher code.- Returns:
- id
-
setId
-
_object
-
getObject
Redeemable's object type.- Returns:
- _object
-
setObject
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
applicableTo
public ValidationsValidateResponseBodyRedeemablesItem applicableTo(ApplicableToResultList applicableTo) -
getApplicableTo
Get applicableTo- Returns:
- applicableTo
-
setApplicableTo
-
inapplicableTo
public ValidationsValidateResponseBodyRedeemablesItem inapplicableTo(InapplicableToResultList inapplicableTo) -
getInapplicableTo
Get inapplicableTo- Returns:
- inapplicableTo
-
setInapplicableTo
-
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
public ValidationsValidateResponseBodyRedeemablesItem categories(List<CategoryWithStackingRulesType> categories) -
addCategoriesItem
public ValidationsValidateResponseBodyRedeemablesItem 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
public static ValidationsValidateResponseBodyRedeemablesItem fromJson(String jsonString) throws IOException Create an instance of ValidationsValidateResponseBodyRedeemablesItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationsValidateResponseBodyRedeemablesItem
- Throws:
IOException- if the JSON string is invalid with respect to ValidationsValidateResponseBodyRedeemablesItem
-
toJson
Convert an instance of ValidationsValidateResponseBodyRedeemablesItem to an JSON string- Returns:
- JSON string
-