public final class Promotion
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Promotion() |
| Modifier and Type | Method and Description |
|---|---|
Promotion |
clone() |
List<String> |
getBrand()
Product filter by brand for the promotion.
|
List<String> |
getBrandExclusion()
Product filter by brand exclusion for the promotion.
|
String |
getContentLanguage()
Required.
|
String |
getCouponValueType()
Required.
|
String |
getFreeGiftDescription()
Free gift description for the promotion.
|
String |
getFreeGiftItemId()
Free gift item ID for the promotion.
|
PriceAmount |
getFreeGiftValue()
Free gift value for the promotion.
|
String |
getGenericRedemptionCode()
Generic redemption code for the promotion.
|
Integer |
getGetThisQuantityDiscounted()
The number of items discounted in the promotion.
|
String |
getId()
Output only.
|
List<String> |
getItemGroupId()
Product filter by item group ID for the promotion.
|
List<String> |
getItemGroupIdExclusion()
Product filter by item group ID exclusion for the promotion.
|
List<String> |
getItemId()
Product filter by item ID for the promotion.
|
List<String> |
getItemIdExclusion()
Product filter by item ID exclusion for the promotion.
|
Integer |
getLimitQuantity()
Maximum purchase quantity for the promotion.
|
PriceAmount |
getLimitValue()
Maximum purchase value for the promotion.
|
String |
getLongTitle()
Required.
|
PriceAmount |
getMinimumPurchaseAmount()
Minimum purchase amount for the promotion.
|
Integer |
getMinimumPurchaseQuantity()
Minimum purchase quantity for the promotion.
|
PriceAmount |
getMoneyBudget()
Cost cap for the promotion.
|
PriceAmount |
getMoneyOffAmount()
The money off amount offered in the promotion.
|
String |
getOfferType()
Required.
|
Integer |
getOrderLimit()
Order limit for the promotion.
|
Integer |
getPercentOff()
The percentage discount offered in the promotion.
|
String |
getProductApplicability()
Required.
|
List<String> |
getProductType()
Product filter by product type for the promotion.
|
List<String> |
getProductTypeExclusion()
Product filter by product type exclusion for the promotion.
|
List<String> |
getPromotionDestinationIds()
Destination ID for the promotion.
|
String |
getPromotionDisplayDates()
String representation of the promotion display dates.
|
TimePeriod |
getPromotionDisplayTimePeriod()
`TimePeriod` representation of the promotion's display dates.
|
String |
getPromotionEffectiveDates()
String representation of the promotion effective dates.
|
TimePeriod |
getPromotionEffectiveTimePeriod()
Required.
|
String |
getPromotionId()
Required.
|
PromotionPromotionStatus |
getPromotionStatus()
Output only.
|
String |
getPromotionUrl()
URL to the page on the merchant's site where the promotion shows.
|
List<String> |
getRedemptionChannel()
Required.
|
List<String> |
getShippingServiceNames()
Shipping service names for the promotion.
|
String |
getStoreApplicability()
Whether the promotion applies to all stores, or only specified stores.
|
List<String> |
getStoreCode()
Store codes to include for the promotion.
|
List<String> |
getStoreCodeExclusion()
Store codes to exclude for the promotion.
|
String |
getTargetCountry()
Required.
|
Promotion |
set(String fieldName,
Object value) |
Promotion |
setBrand(List<String> brand)
Product filter by brand for the promotion.
|
Promotion |
setBrandExclusion(List<String> brandExclusion)
Product filter by brand exclusion for the promotion.
|
Promotion |
setContentLanguage(String contentLanguage)
Required.
|
Promotion |
setCouponValueType(String couponValueType)
Required.
|
Promotion |
setFreeGiftDescription(String freeGiftDescription)
Free gift description for the promotion.
|
Promotion |
setFreeGiftItemId(String freeGiftItemId)
Free gift item ID for the promotion.
|
Promotion |
setFreeGiftValue(PriceAmount freeGiftValue)
Free gift value for the promotion.
|
Promotion |
setGenericRedemptionCode(String genericRedemptionCode)
Generic redemption code for the promotion.
|
Promotion |
setGetThisQuantityDiscounted(Integer getThisQuantityDiscounted)
The number of items discounted in the promotion.
|
Promotion |
setId(String id)
Output only.
|
Promotion |
setItemGroupId(List<String> itemGroupId)
Product filter by item group ID for the promotion.
|
Promotion |
setItemGroupIdExclusion(List<String> itemGroupIdExclusion)
Product filter by item group ID exclusion for the promotion.
|
Promotion |
setItemId(List<String> itemId)
Product filter by item ID for the promotion.
|
Promotion |
setItemIdExclusion(List<String> itemIdExclusion)
Product filter by item ID exclusion for the promotion.
|
Promotion |
setLimitQuantity(Integer limitQuantity)
Maximum purchase quantity for the promotion.
|
Promotion |
setLimitValue(PriceAmount limitValue)
Maximum purchase value for the promotion.
|
Promotion |
setLongTitle(String longTitle)
Required.
|
Promotion |
setMinimumPurchaseAmount(PriceAmount minimumPurchaseAmount)
Minimum purchase amount for the promotion.
|
Promotion |
setMinimumPurchaseQuantity(Integer minimumPurchaseQuantity)
Minimum purchase quantity for the promotion.
|
Promotion |
setMoneyBudget(PriceAmount moneyBudget)
Cost cap for the promotion.
|
Promotion |
setMoneyOffAmount(PriceAmount moneyOffAmount)
The money off amount offered in the promotion.
|
Promotion |
setOfferType(String offerType)
Required.
|
Promotion |
setOrderLimit(Integer orderLimit)
Order limit for the promotion.
|
Promotion |
setPercentOff(Integer percentOff)
The percentage discount offered in the promotion.
|
Promotion |
setProductApplicability(String productApplicability)
Required.
|
Promotion |
setProductType(List<String> productType)
Product filter by product type for the promotion.
|
Promotion |
setProductTypeExclusion(List<String> productTypeExclusion)
Product filter by product type exclusion for the promotion.
|
Promotion |
setPromotionDestinationIds(List<String> promotionDestinationIds)
Destination ID for the promotion.
|
Promotion |
setPromotionDisplayDates(String promotionDisplayDates)
String representation of the promotion display dates.
|
Promotion |
setPromotionDisplayTimePeriod(TimePeriod promotionDisplayTimePeriod)
`TimePeriod` representation of the promotion's display dates.
|
Promotion |
setPromotionEffectiveDates(String promotionEffectiveDates)
String representation of the promotion effective dates.
|
Promotion |
setPromotionEffectiveTimePeriod(TimePeriod promotionEffectiveTimePeriod)
Required.
|
Promotion |
setPromotionId(String promotionId)
Required.
|
Promotion |
setPromotionStatus(PromotionPromotionStatus promotionStatus)
Output only.
|
Promotion |
setPromotionUrl(String promotionUrl)
URL to the page on the merchant's site where the promotion shows.
|
Promotion |
setRedemptionChannel(List<String> redemptionChannel)
Required.
|
Promotion |
setShippingServiceNames(List<String> shippingServiceNames)
Shipping service names for the promotion.
|
Promotion |
setStoreApplicability(String storeApplicability)
Whether the promotion applies to all stores, or only specified stores.
|
Promotion |
setStoreCode(List<String> storeCode)
Store codes to include for the promotion.
|
Promotion |
setStoreCodeExclusion(List<String> storeCodeExclusion)
Store codes to exclude for the promotion.
|
Promotion |
setTargetCountry(String targetCountry)
Required.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<String> getBrand()
null for nonepublic Promotion setBrand(List<String> brand)
brand - brand or null for nonepublic List<String> getBrandExclusion()
null for nonepublic Promotion setBrandExclusion(List<String> brandExclusion)
brandExclusion - brandExclusion or null for nonepublic String getContentLanguage()
null for nonepublic Promotion setContentLanguage(String contentLanguage)
contentLanguage - contentLanguage or null for nonepublic String getCouponValueType()
null for nonepublic Promotion setCouponValueType(String couponValueType)
couponValueType - couponValueType or null for nonepublic String getFreeGiftDescription()
null for nonepublic Promotion setFreeGiftDescription(String freeGiftDescription)
freeGiftDescription - freeGiftDescription or null for nonepublic String getFreeGiftItemId()
null for nonepublic Promotion setFreeGiftItemId(String freeGiftItemId)
freeGiftItemId - freeGiftItemId or null for nonepublic PriceAmount getFreeGiftValue()
null for nonepublic Promotion setFreeGiftValue(PriceAmount freeGiftValue)
freeGiftValue - freeGiftValue or null for nonepublic String getGenericRedemptionCode()
null for nonepublic Promotion setGenericRedemptionCode(String genericRedemptionCode)
genericRedemptionCode - genericRedemptionCode or null for nonepublic Integer getGetThisQuantityDiscounted()
null for nonepublic Promotion setGetThisQuantityDiscounted(Integer getThisQuantityDiscounted)
getThisQuantityDiscounted - getThisQuantityDiscounted or null for nonepublic String getId()
null for nonepublic Promotion setId(String id)
id - id or null for nonepublic List<String> getItemGroupId()
null for nonepublic Promotion setItemGroupId(List<String> itemGroupId)
itemGroupId - itemGroupId or null for nonepublic List<String> getItemGroupIdExclusion()
null for nonepublic Promotion setItemGroupIdExclusion(List<String> itemGroupIdExclusion)
itemGroupIdExclusion - itemGroupIdExclusion or null for nonepublic List<String> getItemId()
null for nonepublic Promotion setItemId(List<String> itemId)
itemId - itemId or null for nonepublic List<String> getItemIdExclusion()
null for nonepublic Promotion setItemIdExclusion(List<String> itemIdExclusion)
itemIdExclusion - itemIdExclusion or null for nonepublic Integer getLimitQuantity()
null for nonepublic Promotion setLimitQuantity(Integer limitQuantity)
limitQuantity - limitQuantity or null for nonepublic PriceAmount getLimitValue()
null for nonepublic Promotion setLimitValue(PriceAmount limitValue)
limitValue - limitValue or null for nonepublic String getLongTitle()
null for nonepublic Promotion setLongTitle(String longTitle)
longTitle - longTitle or null for nonepublic PriceAmount getMinimumPurchaseAmount()
null for nonepublic Promotion setMinimumPurchaseAmount(PriceAmount minimumPurchaseAmount)
minimumPurchaseAmount - minimumPurchaseAmount or null for nonepublic Integer getMinimumPurchaseQuantity()
null for nonepublic Promotion setMinimumPurchaseQuantity(Integer minimumPurchaseQuantity)
minimumPurchaseQuantity - minimumPurchaseQuantity or null for nonepublic PriceAmount getMoneyBudget()
null for nonepublic Promotion setMoneyBudget(PriceAmount moneyBudget)
moneyBudget - moneyBudget or null for nonepublic PriceAmount getMoneyOffAmount()
null for nonepublic Promotion setMoneyOffAmount(PriceAmount moneyOffAmount)
moneyOffAmount - moneyOffAmount or null for nonepublic String getOfferType()
null for nonepublic Promotion setOfferType(String offerType)
offerType - offerType or null for nonepublic Integer getOrderLimit()
null for nonepublic Promotion setOrderLimit(Integer orderLimit)
orderLimit - orderLimit or null for nonepublic Integer getPercentOff()
null for nonepublic Promotion setPercentOff(Integer percentOff)
percentOff - percentOff or null for nonepublic String getProductApplicability()
null for nonepublic Promotion setProductApplicability(String productApplicability)
productApplicability - productApplicability or null for nonepublic List<String> getProductType()
null for nonepublic Promotion setProductType(List<String> productType)
productType - productType or null for nonepublic List<String> getProductTypeExclusion()
null for nonepublic Promotion setProductTypeExclusion(List<String> productTypeExclusion)
productTypeExclusion - productTypeExclusion or null for nonepublic List<String> getPromotionDestinationIds()
null for nonepublic Promotion setPromotionDestinationIds(List<String> promotionDestinationIds)
promotionDestinationIds - promotionDestinationIds or null for nonepublic String getPromotionDisplayDates()
null for nonepublic Promotion setPromotionDisplayDates(String promotionDisplayDates)
promotionDisplayDates - promotionDisplayDates or null for nonepublic TimePeriod getPromotionDisplayTimePeriod()
null for nonepublic Promotion setPromotionDisplayTimePeriod(TimePeriod promotionDisplayTimePeriod)
promotionDisplayTimePeriod - promotionDisplayTimePeriod or null for nonepublic String getPromotionEffectiveDates()
null for nonepublic Promotion setPromotionEffectiveDates(String promotionEffectiveDates)
promotionEffectiveDates - promotionEffectiveDates or null for nonepublic TimePeriod getPromotionEffectiveTimePeriod()
null for nonepublic Promotion setPromotionEffectiveTimePeriod(TimePeriod promotionEffectiveTimePeriod)
promotionEffectiveTimePeriod - promotionEffectiveTimePeriod or null for nonepublic String getPromotionId()
null for nonepublic Promotion setPromotionId(String promotionId)
promotionId - promotionId or null for nonepublic PromotionPromotionStatus getPromotionStatus()
null for nonepublic Promotion setPromotionStatus(PromotionPromotionStatus promotionStatus)
promotionStatus - promotionStatus or null for nonepublic String getPromotionUrl()
null for nonepublic Promotion setPromotionUrl(String promotionUrl)
promotionUrl - promotionUrl or null for nonepublic List<String> getRedemptionChannel()
null for nonepublic Promotion setRedemptionChannel(List<String> redemptionChannel)
redemptionChannel - redemptionChannel or null for nonepublic List<String> getShippingServiceNames()
null for nonepublic Promotion setShippingServiceNames(List<String> shippingServiceNames)
shippingServiceNames - shippingServiceNames or null for nonepublic String getStoreApplicability()
null for nonepublic Promotion setStoreApplicability(String storeApplicability)
storeApplicability - storeApplicability or null for nonepublic List<String> getStoreCode()
null for nonepublic Promotion setStoreCode(List<String> storeCode)
storeCode - storeCode or null for nonepublic List<String> getStoreCodeExclusion()
null for nonepublic Promotion setStoreCodeExclusion(List<String> storeCodeExclusion)
storeCodeExclusion - storeCodeExclusion or null for nonepublic String getTargetCountry()
null for nonepublic Promotion setTargetCountry(String targetCountry)
targetCountry - targetCountry or null for nonepublic Promotion set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Promotion clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.