Package io.voucherify.client.model
Class ClientValidationsValidateResponseBodyRedeemablesItem
java.lang.Object
io.voucherify.client.model.ClientValidationsValidateResponseBodyRedeemablesItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientValidationsValidateResponseBodyRedeemablesItem
extends Object
ClientValidationsValidateResponseBodyRedeemablesItem
-
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 ClientValidationsValidateResponseBodyRedeemablesItem 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 ClientValidationsValidateResponseBodyRedeemablesItem 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
-
ClientValidationsValidateResponseBodyRedeemablesItem
public ClientValidationsValidateResponseBodyRedeemablesItem()
-
-
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 ClientValidationsValidateResponseBodyRedeemablesItem applicableTo(ApplicableToResultList applicableTo) -
getApplicableTo
Get applicableTo- Returns:
- applicableTo
-
setApplicableTo
-
inapplicableTo
public ClientValidationsValidateResponseBodyRedeemablesItem 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 ClientValidationsValidateResponseBodyRedeemablesItem categories(List<CategoryWithStackingRulesType> categories) -
addCategoriesItem
public ClientValidationsValidateResponseBodyRedeemablesItem 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 ClientValidationsValidateResponseBodyRedeemablesItem fromJson(String jsonString) throws IOException Create an instance of ClientValidationsValidateResponseBodyRedeemablesItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientValidationsValidateResponseBodyRedeemablesItem
- Throws:
IOException- if the JSON string is invalid with respect to ClientValidationsValidateResponseBodyRedeemablesItem
-
toJson
Convert an instance of ClientValidationsValidateResponseBodyRedeemablesItem to an JSON string- Returns:
- JSON string
-