Class TierFinalPrice


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class TierFinalPrice
    extends Object
    Final 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.
    • Constructor Detail

      • TierFinalPrice

        public TierFinalPrice()
    • Method Detail

      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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