public final class OrderLegacyPromotion extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OrderLegacyPromotion() |
Modifier and Type | Method and Description |
---|---|
OrderLegacyPromotion |
clone() |
List<OrderLegacyPromotionBenefit> |
getBenefits() |
String |
getEffectiveDates()
The date and time frame when the promotion is active and ready for validation review.
|
String |
getGenericRedemptionCode()
Optional.
|
String |
getId()
The unique ID of the promotion.
|
String |
getLongTitle()
The full title of the promotion.
|
String |
getProductApplicability()
Whether the promotion is applicable to all products or only specific products.
|
String |
getRedemptionChannel()
Indicates that the promotion is valid online.
|
OrderLegacyPromotion |
set(String fieldName,
Object value) |
OrderLegacyPromotion |
setBenefits(List<OrderLegacyPromotionBenefit> benefits) |
OrderLegacyPromotion |
setEffectiveDates(String effectiveDates)
The date and time frame when the promotion is active and ready for validation review.
|
OrderLegacyPromotion |
setGenericRedemptionCode(String genericRedemptionCode)
Optional.
|
OrderLegacyPromotion |
setId(String id)
The unique ID of the promotion.
|
OrderLegacyPromotion |
setLongTitle(String longTitle)
The full title of the promotion.
|
OrderLegacyPromotion |
setProductApplicability(String productApplicability)
Whether the promotion is applicable to all products or only specific products.
|
OrderLegacyPromotion |
setRedemptionChannel(String redemptionChannel)
Indicates that the promotion is valid online.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<OrderLegacyPromotionBenefit> getBenefits()
null
for nonepublic OrderLegacyPromotion setBenefits(List<OrderLegacyPromotionBenefit> benefits)
benefits
- benefits or null
for nonepublic String getEffectiveDates()
null
for nonepublic OrderLegacyPromotion setEffectiveDates(String effectiveDates)
effectiveDates
- effectiveDates or null
for nonepublic String getGenericRedemptionCode()
null
for nonepublic OrderLegacyPromotion setGenericRedemptionCode(String genericRedemptionCode)
genericRedemptionCode
- genericRedemptionCode or null
for nonepublic String getId()
null
for nonepublic OrderLegacyPromotion setId(String id)
id
- id or null
for nonepublic String getLongTitle()
null
for nonepublic OrderLegacyPromotion setLongTitle(String longTitle)
longTitle
- longTitle or null
for nonepublic String getProductApplicability()
null
for nonepublic OrderLegacyPromotion setProductApplicability(String productApplicability)
productApplicability
- productApplicability or null
for nonepublic String getRedemptionChannel()
null
for nonepublic OrderLegacyPromotion setRedemptionChannel(String redemptionChannel)
redemptionChannel
- redemptionChannel or null
for nonepublic OrderLegacyPromotion set(String fieldName, Object value)
set
in class GenericJson
public OrderLegacyPromotion clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.