Package com.adobe.aco.model
Class TierFinalPrice
- java.lang.Object
-
- com.adobe.aco.model.TierFinalPrice
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class TierFinalPrice extends ObjectFinal price offered for bulk purchases at a specific quantity threshold. Example: $100 regular price with tier price of $80 for quantity of 5 or more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTierFinalPrice.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PRICEstatic StringSERIALIZED_NAME_QTY
-
Constructor Summary
Constructors Constructor Description TierFinalPrice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TierFinalPricefromJson(String jsonString)Create an instance of TierFinalPrice given an JSON stringFloatgetPrice()Fixed price offered for the specified quantity threshold.FloatgetQty()Minimum quantity required to qualify for this tier price.inthashCode()TierFinalPriceprice(Float price)TierFinalPriceqty(Float qty)voidsetPrice(Float price)voidsetQty(Float qty)StringtoJson()Convert an instance of TierFinalPrice to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_QTY
public static final String SERIALIZED_NAME_QTY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRICE
public static final String SERIALIZED_NAME_PRICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
qty
public TierFinalPrice qty(Float qty)
-
getQty
@Nonnull public Float getQty()
Minimum quantity required to qualify for this tier price. Must be greater than 1.- Returns:
- qty
-
setQty
public void setQty(Float qty)
-
price
public TierFinalPrice price(Float price)
-
getPrice
@Nonnull public Float getPrice()
Fixed price offered for the specified quantity threshold. Must be a positive number less than or equal to the regular price.- Returns:
- price
-
setPrice
public void setPrice(Float price)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TierFinalPrice
-
fromJson
public static TierFinalPrice fromJson(String jsonString) throws IOException
Create an instance of TierFinalPrice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TierFinalPrice
- Throws:
IOException- if the JSON string is invalid with respect to TierFinalPrice
-
toJson
public String toJson()
Convert an instance of TierFinalPrice to an JSON string- Returns:
- JSON string
-
-