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 that this promotion may be applied to.
|
List<OrderPromotionItem> |
getAppliedItems()
Items that this promotion have been applied to.
|
String |
getEndTime()
Promotion end time in ISO 8601 format.
|
String |
getFunder()
Required.
|
String |
getMerchantPromotionId()
Required.
|
Price |
getPriceValue()
Estimated discount applied to price.
|
String |
getShortTitle()
A short title of the promotion to be shown on the checkout page.
|
String |
getStartTime()
Promotion start time in ISO 8601 format.
|
String |
getSubtype()
Required.
|
Price |
getTaxValue()
Estimated discount applied to tax (if allowed by law).
|
String |
getTitle()
Required.
|
String |
getType()
Required.
|
OrderPromotion |
set(String fieldName,
Object value) |
OrderPromotion |
setApplicableItems(List<OrderPromotionItem> applicableItems)
Items that this promotion may be applied to.
|
OrderPromotion |
setAppliedItems(List<OrderPromotionItem> appliedItems)
Items that this promotion have been applied to.
|
OrderPromotion |
setEndTime(String endTime)
Promotion end time in ISO 8601 format.
|
OrderPromotion |
setFunder(String funder)
Required.
|
OrderPromotion |
setMerchantPromotionId(String merchantPromotionId)
Required.
|
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 |
setStartTime(String startTime)
Promotion start time in ISO 8601 format.
|
OrderPromotion |
setSubtype(String subtype)
Required.
|
OrderPromotion |
setTaxValue(Price taxValue)
Estimated discount applied to tax (if allowed by law).
|
OrderPromotion |
setTitle(String title)
Required.
|
OrderPromotion |
setType(String type)
Required.
|
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<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 getEndTime()
null
for nonepublic OrderPromotion setEndTime(String endTime)
endTime
- endTime 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 getStartTime()
null
for nonepublic OrderPromotion setStartTime(String startTime)
startTime
- startTime 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–2024 Google. All rights reserved.