Class ProductBundle


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

      • ProductBundle

        public ProductBundle()
    • Method Detail

      • getGroup

        @Nonnull
        public String getGroup()
        Name of the group that organizes the bundle items. This helps in categorizing the items within the bundle for better organization. For example, groups can be \"shirts\", \"pants\", \"accessories\", etc.
        Returns:
        group
      • setGroup

        public void setGroup​(String group)
      • getRequired

        @Nullable
        public Boolean getRequired()
        Indicates whether a shopper is required to select any products from this group to add the bundle to the shopping cart.
        Returns:
        required
      • setRequired

        public void setRequired​(Boolean required)
      • getMultiSelect

        @Nullable
        public Boolean getMultiSelect()
        Indicates whether multiple products can be selected by a shopper.
        Returns:
        multiSelect
      • setMultiSelect

        public void setMultiSelect​(Boolean multiSelect)
      • addDefaultItemSkusItem

        public ProductBundle addDefaultItemSkusItem​(String defaultItemSkusItem)
      • getDefaultItemSkus

        @Nullable
        public List<String> getDefaultItemSkus()
        A list of default product SKUs that are selected in this bundle group.
        Returns:
        defaultItemSkus
      • setDefaultItemSkus

        public void setDefaultItemSkus​(List<String> defaultItemSkus)
      • getItems

        @Nonnull
        public List<ProductBundleItem> getItems()
        A list of individual products that are part of the bundle. Each item in the list represents a product that can be selected as part of the bundle.
        Returns:
        items
      • 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 ProductBundle
      • fromJson

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

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