Package io.voucherify.client.model
Class ValidationRulesCreateRequestBodyApplicableTo
java.lang.Object
io.voucherify.client.model.ValidationRulesCreateRequestBodyApplicableTo
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationRulesCreateRequestBodyApplicableTo
extends Object
ValidationRulesCreateRequestBodyApplicableTo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExcludedItem(ApplicableTo excludedItem) addIncludedItem(ApplicableTo includedItem) booleanexcluded(List<ApplicableTo> excluded) Create an instance of ValidationRulesCreateRequestBodyApplicableTo given an JSON stringDefines which items are excluded from a discount.Defines which items are included in a discount.Indicates whether all items are included in the discount.inthashCode()included(List<ApplicableTo> included) includedAll(Boolean includedAll) voidsetExcluded(List<ApplicableTo> excluded) voidsetIncluded(List<ApplicableTo> included) voidsetIncludedAll(Boolean includedAll) toJson()Convert an instance of ValidationRulesCreateRequestBodyApplicableTo to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EXCLUDED
- See Also:
-
SERIALIZED_NAME_INCLUDED
- See Also:
-
SERIALIZED_NAME_INCLUDED_ALL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidationRulesCreateRequestBodyApplicableTo
public ValidationRulesCreateRequestBodyApplicableTo()
-
-
Method Details
-
excluded
-
addExcludedItem
-
getExcluded
Defines which items are excluded from a discount.- Returns:
- excluded
-
setExcluded
-
included
-
addIncludedItem
-
getIncluded
Defines which items are included in a discount.- Returns:
- included
-
setIncluded
-
includedAll
-
getIncludedAll
Indicates whether all items are included in the discount.- Returns:
- includedAll
-
setIncludedAll
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ValidationRulesCreateRequestBodyApplicableTo fromJson(String jsonString) throws IOException Create an instance of ValidationRulesCreateRequestBodyApplicableTo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationRulesCreateRequestBodyApplicableTo
- Throws:
IOException- if the JSON string is invalid with respect to ValidationRulesCreateRequestBodyApplicableTo
-
toJson
Convert an instance of ValidationRulesCreateRequestBodyApplicableTo to an JSON string- Returns:
- JSON string
-