public final class OrderLegacyPromotionBenefit 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
OrderLegacyPromotionBenefit() |
| Modifier and Type | Method and Description |
|---|---|
OrderLegacyPromotionBenefit |
clone() |
Price |
getDiscount()
The discount in the order price when the promotion is applied.
|
List<String> |
getOfferIds()
The OfferId(s) that were purchased in this order and map to this specific benefit of the
promotion.
|
String |
getSubType()
Further describes the benefit of the promotion.
|
Price |
getTaxImpact()
The impact on tax when the promotion is applied.
|
String |
getType()
Describes whether the promotion applies to products (e.g.
|
OrderLegacyPromotionBenefit |
set(String fieldName,
Object value) |
OrderLegacyPromotionBenefit |
setDiscount(Price discount)
The discount in the order price when the promotion is applied.
|
OrderLegacyPromotionBenefit |
setOfferIds(List<String> offerIds)
The OfferId(s) that were purchased in this order and map to this specific benefit of the
promotion.
|
OrderLegacyPromotionBenefit |
setSubType(String subType)
Further describes the benefit of the promotion.
|
OrderLegacyPromotionBenefit |
setTaxImpact(Price taxImpact)
The impact on tax when the promotion is applied.
|
OrderLegacyPromotionBenefit |
setType(String type)
Describes whether the promotion applies to products (e.g.
|
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 Price getDiscount()
null for nonepublic OrderLegacyPromotionBenefit setDiscount(Price discount)
discount - discount or null for nonepublic List<String> getOfferIds()
null for nonepublic OrderLegacyPromotionBenefit setOfferIds(List<String> offerIds)
offerIds - offerIds or null for nonepublic String getSubType()
null for nonepublic OrderLegacyPromotionBenefit setSubType(String subType)
subType - subType or null for nonepublic Price getTaxImpact()
null for nonepublic OrderLegacyPromotionBenefit setTaxImpact(Price taxImpact)
taxImpact - taxImpact or null for nonepublic String getType()
null for nonepublic OrderLegacyPromotionBenefit setType(String type)
type - type or null for nonepublic OrderLegacyPromotionBenefit set(String fieldName, Object value)
set in class GenericJsonpublic OrderLegacyPromotionBenefit clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.