Package com.adobe.aco.model
Class FeedPrices
- java.lang.Object
-
- com.adobe.aco.model.FeedPrices
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedPrices extends ObjectProduct 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedPrices.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DISCOUNTSstatic StringSERIALIZED_NAME_PRICE_BOOK_IDstatic StringSERIALIZED_NAME_REGULARstatic StringSERIALIZED_NAME_SKUstatic StringSERIALIZED_NAME_TIER_PRICES
-
Constructor Summary
Constructors Constructor Description FeedPrices()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedPricesaddDiscountsItem(FeedPricesDiscountsInner discountsItem)FeedPricesaddTierPricesItem(FeedPricesTierPricesInner tierPricesItem)FeedPricesdiscounts(List<FeedPricesDiscountsInner> discounts)booleanequals(Object o)static FeedPricesfromJson(String jsonString)Create an instance of FeedPrices given an JSON stringList<FeedPricesDiscountsInner>getDiscounts()Array of active discounts applied to the regular price.StringgetPriceBookId()Price book identifier.FloatgetRegular()Base price for the product SKU in the specified price book.StringgetSku()Product SKU identifier.List<FeedPricesTierPricesInner>getTierPrices()Array of tiered pricing for quantity-based discounts.inthashCode()FeedPricespriceBookId(String priceBookId)FeedPricesregular(Float regular)voidsetDiscounts(List<FeedPricesDiscountsInner> discounts)voidsetPriceBookId(String priceBookId)voidsetRegular(Float regular)voidsetSku(String sku)voidsetTierPrices(List<FeedPricesTierPricesInner> tierPrices)FeedPricessku(String sku)FeedPricestierPrices(List<FeedPricesTierPricesInner> tierPrices)StringtoJson()Convert an instance of FeedPrices 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_SKU
public static final String SERIALIZED_NAME_SKU
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRICE_BOOK_ID
public static final String SERIALIZED_NAME_PRICE_BOOK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGULAR
public static final String SERIALIZED_NAME_REGULAR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISCOUNTS
public static final String SERIALIZED_NAME_DISCOUNTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIER_PRICES
public static final String SERIALIZED_NAME_TIER_PRICES
- See Also:
- Constant Field Values
-
-
Method Detail
-
sku
public FeedPrices sku(String sku)
-
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)
-
priceBookId
public FeedPrices priceBookId(String priceBookId)
-
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)
-
regular
public FeedPrices regular(Float regular)
-
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)
-
discounts
public FeedPrices discounts(List<FeedPricesDiscountsInner> discounts)
-
addDiscountsItem
public FeedPrices addDiscountsItem(FeedPricesDiscountsInner discountsItem)
-
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
-
setDiscounts
public void setDiscounts(List<FeedPricesDiscountsInner> discounts)
-
tierPrices
public FeedPrices tierPrices(List<FeedPricesTierPricesInner> tierPrices)
-
addTierPricesItem
public FeedPrices addTierPricesItem(FeedPricesTierPricesInner tierPricesItem)
-
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
-
setTierPrices
public void setTierPrices(List<FeedPricesTierPricesInner> tierPrices)
-
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 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
-
-