Package io.voucherify.client.model
Class PromotionsTiersEnableResponseBodyAction
java.lang.Object
io.voucherify.client.model.PromotionsTiersEnableResponseBodyAction
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsTiersEnableResponseBodyAction
extends Object
Contains details about the discount applied by the promotion tier.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of PromotionsTiersEnableResponseBodyAction given an JSON stringGet discountinthashCode()voidsetDiscount(Discount discount) toJson()Convert an instance of PromotionsTiersEnableResponseBodyAction to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_DISCOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionsTiersEnableResponseBodyAction
public PromotionsTiersEnableResponseBodyAction()
-
-
Method Details
-
discount
-
getDiscount
Get discount- Returns:
- discount
-
setDiscount
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static PromotionsTiersEnableResponseBodyAction fromJson(String jsonString) throws IOException Create an instance of PromotionsTiersEnableResponseBodyAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsTiersEnableResponseBodyAction
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsTiersEnableResponseBodyAction
-
toJson
Convert an instance of PromotionsTiersEnableResponseBodyAction to an JSON string- Returns:
- JSON string
-