Class FeedPrices


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class FeedPrices
    extends Object
    Product price information with support for regular pricing, discounts, and tiered pricing. Each price record must reference an existing price book and can include multiple discount types and tiered pricing levels for different quantity thresholds.
    • Constructor Detail

      • FeedPrices

        public FeedPrices()
    • Method Detail

      • getSku

        @Nonnull
        public String getSku()
        Product SKU identifier. Must match an existing product in the catalog. For configurable products, use the variant SKU, not the parent SKU.
        Returns:
        sku
      • setSku

        public void setSku​(String sku)
      • getPriceBookId

        @Nonnull
        public String getPriceBookId()
        Price book identifier. Must reference an existing price book. Prices referencing non-existing price books are ignored.
        Returns:
        priceBookId
      • setPriceBookId

        public void setPriceBookId​(String priceBookId)
      • getRegular

        @Nonnull
        public Float getRegular()
        Base price for the product SKU in the specified price book. This is the price before any discounts or tiered pricing are applied.
        Returns:
        regular
      • setRegular

        public void setRegular​(Float regular)
      • getDiscounts

        @Nullable
        public List<FeedPricesDiscountsInner> getDiscounts()
        Array of active discounts applied to the regular price. Each discount requires a unique code identifier. Supports both percentage and fixed amount discounts.
        Returns:
        discounts
      • getTierPrices

        @Nullable
        public List<FeedPricesTierPricesInner> getTierPrices()
        Array of tiered pricing for quantity-based discounts. Quantities must be greater than 1. Supports both percentage and fixed price tiers.
        Returns:
        tierPrices
      • 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 FeedPrices
      • fromJson

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

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