public final class OrderPromotion
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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OrderPromotion() |
Modifier and Type | Method and Description |
---|---|
OrderPromotion |
clone() |
List<OrderPromotionItem> |
getApplicableItems()
Items which this promotion may be applied to.
|
List<OrderPromotionItem> |
getAppliedItems()
Items which this promotion have been applied to.
|
String |
getFunder()
The party funding the promotion.
|
String |
getMerchantPromotionId()
This field is used to identify promotions within merchants' own systems.
|
Price |
getPriceValue()
Estimated discount applied to price.
|
String |
getShortTitle()
A short title of the promotion to be shown on the checkout page.
|
String |
getSubtype()
The category of the promotion.
|
Price |
getTaxValue()
Estimated discount applied to tax (if allowed by law).
|
String |
getTitle()
The title of the promotion.
|
String |
getType()
The scope of the promotion.
|
OrderPromotion |
set(String fieldName,
Object value) |
OrderPromotion |
setApplicableItems(List<OrderPromotionItem> applicableItems)
Items which this promotion may be applied to.
|
OrderPromotion |
setAppliedItems(List<OrderPromotionItem> appliedItems)
Items which this promotion have been applied to.
|
OrderPromotion |
setFunder(String funder)
The party funding the promotion.
|
OrderPromotion |
setMerchantPromotionId(String merchantPromotionId)
This field is used to identify promotions within merchants' own systems.
|
OrderPromotion |
setPriceValue(Price priceValue)
Estimated discount applied to price.
|
OrderPromotion |
setShortTitle(String shortTitle)
A short title of the promotion to be shown on the checkout page.
|
OrderPromotion |
setSubtype(String subtype)
The category of the promotion.
|
OrderPromotion |
setTaxValue(Price taxValue)
Estimated discount applied to tax (if allowed by law).
|
OrderPromotion |
setTitle(String title)
The title of the promotion.
|
OrderPromotion |
setType(String type)
The scope of the promotion.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<OrderPromotionItem> getApplicableItems()
null
for nonepublic OrderPromotion setApplicableItems(List<OrderPromotionItem> applicableItems)
applicableItems
- applicableItems or null
for nonepublic List<OrderPromotionItem> getAppliedItems()
null
for nonepublic OrderPromotion setAppliedItems(List<OrderPromotionItem> appliedItems)
appliedItems
- appliedItems or null
for nonepublic String getFunder()
null
for nonepublic OrderPromotion setFunder(String funder)
funder
- funder or null
for nonepublic String getMerchantPromotionId()
null
for nonepublic OrderPromotion setMerchantPromotionId(String merchantPromotionId)
merchantPromotionId
- merchantPromotionId or null
for nonepublic Price getPriceValue()
null
for nonepublic OrderPromotion setPriceValue(Price priceValue)
priceValue
- priceValue or null
for nonepublic String getShortTitle()
null
for nonepublic OrderPromotion setShortTitle(String shortTitle)
shortTitle
- shortTitle or null
for nonepublic String getSubtype()
null
for nonepublic OrderPromotion setSubtype(String subtype)
subtype
- subtype or null
for nonepublic Price getTaxValue()
null
for nonepublic OrderPromotion setTaxValue(Price taxValue)
taxValue
- taxValue or null
for nonepublic String getTitle()
null
for nonepublic OrderPromotion setTitle(String title)
title
- title or null
for nonepublic String getType()
null
for nonepublic OrderPromotion setType(String type)
type
- type or null
for nonepublic OrderPromotion set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public OrderPromotion clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.