Package com.adobe.aco.model
Class FeedPricesUpdate
- java.lang.Object
-
- com.adobe.aco.model.FeedPricesUpdate
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class FeedPricesUpdate extends ObjectProduct price information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedPricesUpdate.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 FeedPricesUpdate()
-
Method Summary
-
-
-
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 FeedPricesUpdate sku(String sku)
-
getSku
@Nonnull public String getSku()
Product SKU- Returns:
- sku
-
setSku
public void setSku(String sku)
-
priceBookId
public FeedPricesUpdate priceBookId(String priceBookId)
-
getPriceBookId
@Nonnull public String getPriceBookId()
Price book id- Returns:
- priceBookId
-
setPriceBookId
public void setPriceBookId(String priceBookId)
-
regular
public FeedPricesUpdate regular(Float regular)
-
getRegular
@Nullable public Float getRegular()
Regular price- Returns:
- regular
-
setRegular
public void setRegular(Float regular)
-
discounts
public FeedPricesUpdate discounts(List<FeedPricesDiscountsInner> discounts)
-
addDiscountsItem
public FeedPricesUpdate addDiscountsItem(FeedPricesDiscountsInner discountsItem)
-
getDiscounts
@Nullable public List<FeedPricesDiscountsInner> getDiscounts()
Active discounts- Returns:
- discounts
-
setDiscounts
public void setDiscounts(List<FeedPricesDiscountsInner> discounts)
-
tierPrices
public FeedPricesUpdate tierPrices(List<FeedPricesTierPricesInner> tierPrices)
-
addTierPricesItem
public FeedPricesUpdate addTierPricesItem(FeedPricesTierPricesInner tierPricesItem)
-
getTierPrices
@Nullable public List<FeedPricesTierPricesInner> getTierPrices()
Tier prices for quantities greater-than one- 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 FeedPricesUpdate
-
fromJson
public static FeedPricesUpdate fromJson(String jsonString) throws IOException
Create an instance of FeedPricesUpdate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeedPricesUpdate
- Throws:
IOException- if the JSON string is invalid with respect to FeedPricesUpdate
-
toJson
public String toJson()
Convert an instance of FeedPricesUpdate to an JSON string- Returns:
- JSON string
-
-