Package io.voucherify.client.model
Class QualificationsRedeemableBase
java.lang.Object
io.voucherify.client.model.QualificationsRedeemableBase
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class QualificationsRedeemableBase
extends Object
Data of single redeemable which was properly qualified.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumObject type of the redeemable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(CategoryWithStackingRulesType categoriesItem) applicableTo(ApplicableToResultList applicableTo) campaignId(String campaignId) campaignName(String campaignName) categories(List<CategoryWithStackingRulesType> categories) createdAt(OffsetDateTime createdAt) booleanstatic QualificationsRedeemableBaseCreate an instance of QualificationsRedeemableBase given an JSON stringGet applicableToName of the earning rule.Id of the campaign associated to the redeemable.Name of the campaign associated to the redeemable.List of category information.Timestamp representing the date and time when the object was created.getId()Id of the redeemable.Get inapplicableToThe metadata object stores all custom attributes assigned to the product.getName()Name of the redeemable.Object type of the redeemable.getOrder()Get orderGet resultA unique validation rule identifier assigned by the Voucherify API.Get validationRulesAssignmentsinthashCode()inapplicableTo(InapplicableToResultList inapplicableTo) order(OrderCalculated order) result(RedeemableResult result) voidsetApplicableTo(ApplicableToResultList applicableTo) voidvoidsetCampaignId(String campaignId) voidsetCampaignName(String campaignName) voidsetCategories(List<CategoryWithStackingRulesType> categories) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetInapplicableTo(InapplicableToResultList inapplicableTo) voidsetMetadata(Object metadata) voidvoidvoidsetOrder(OrderCalculated order) voidsetResult(RedeemableResult result) voidsetValidationRuleId(String validationRuleId) voidsetValidationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) toJson()Convert an instance of QualificationsRedeemableBase to an JSON stringtoString()validationRuleId(String validationRuleId) validationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_VALIDATION_RULE_ID
- See Also:
-
SERIALIZED_NAME_APPLICABLE_TO
- See Also:
-
SERIALIZED_NAME_INAPPLICABLE_TO
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
SERIALIZED_NAME_BANNER
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_NAME
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_VALIDATION_RULES_ASSIGNMENTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QualificationsRedeemableBase
public QualificationsRedeemableBase()
-
-
Method Details
-
id
-
getId
Id of the redeemable.- Returns:
- id
-
setId
-
_object
-
getObject
Object type of the redeemable.- Returns:
- _object
-
setObject
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
result
-
getResult
Get result- Returns:
- result
-
setResult
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
validationRuleId
-
getValidationRuleId
A unique validation rule identifier assigned by the Voucherify API. The validation rule is verified before points are added to the balance.- Returns:
- validationRuleId
-
setValidationRuleId
-
applicableTo
-
getApplicableTo
Get applicableTo- Returns:
- applicableTo
-
setApplicableTo
-
inapplicableTo
-
getInapplicableTo
Get inapplicableTo- Returns:
- inapplicableTo
-
setInapplicableTo
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.- Returns:
- metadata
-
setMetadata
-
categories
-
addCategoriesItem
-
getCategories
List of category information.- Returns:
- categories
-
setCategories
-
banner
-
getBanner
Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.- Returns:
- banner
-
setBanner
-
name
-
getName
Name of the redeemable.- Returns:
- name
-
setName
-
campaignName
-
getCampaignName
Name of the campaign associated to the redeemable. This field is available only if object is not `campaign`- Returns:
- campaignName
-
setCampaignName
-
campaignId
-
getCampaignId
Id of the campaign associated to the redeemable. This field is available only if object is not `campaign`- Returns:
- campaignId
-
setCampaignId
-
validationRulesAssignments
public QualificationsRedeemableBase validationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) -
getValidationRulesAssignments
Get validationRulesAssignments- Returns:
- validationRulesAssignments
-
setValidationRulesAssignments
public void setValidationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) -
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of QualificationsRedeemableBase given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QualificationsRedeemableBase
- Throws:
IOException- if the JSON string is invalid with respect to QualificationsRedeemableBase
-
toJson
Convert an instance of QualificationsRedeemableBase to an JSON string- Returns:
- JSON string
-