Class ProductBundleItem


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class ProductBundleItem
    extends Object
    ProductBundleItem
    • Constructor Detail

      • ProductBundleItem

        public ProductBundleItem()
    • Method Detail

      • getSku

        @Nonnull
        public String getSku()
        Product SKU of the bundle item.
        Returns:
        sku
      • setSku

        public void setSku​(String sku)
      • getQty

        @Nullable
        public Float getQty()
        Quantity of the item in the bundle.
        Returns:
        qty
      • setQty

        public void setQty​(Float qty)
      • getUserDefinedQty

        @Nullable
        public Boolean getUserDefinedQty()
        Indicates whether the quantity of the item in the bundle can be defined by a shopper.
        Returns:
        userDefinedQty
      • setUserDefinedQty

        public void setUserDefinedQty​(Boolean userDefinedQty)
      • 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 ProductBundleItem
      • fromJson

        public static ProductBundleItem fromJson​(String jsonString)
                                          throws IOException
        Create an instance of ProductBundleItem given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ProductBundleItem
        Throws:
        IOException - if the JSON string is invalid with respect to ProductBundleItem
      • toJson

        public String toJson()
        Convert an instance of ProductBundleItem to an JSON string
        Returns:
        JSON string