target.apidocs.com.google.api.services.content.model.Promotion.html Maven / Gradle / Ivy
Promotion (Content API for Shopping v2.1-rev20190215-1.27.0)
com.google.api.services.content.model
Class Promotion
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.Promotion
-
public final class Promotion
extends com.google.api.client.json.GenericJson
Model definition for Promotion.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Promotion()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Promotion
clone()
Amount
getPromotionAmount()
[required] Amount of the promotion.
String
getPromotionId()
[required] ID of the promotion.
Promotion
set(String fieldName,
Object value)
Promotion
setPromotionAmount(Amount promotionAmount)
[required] Amount of the promotion.
Promotion
setPromotionId(String promotionId)
[required] ID of the promotion.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getPromotionAmount
public Amount getPromotionAmount()
[required] Amount of the promotion. The values here are the promotion applied to the unit price
pretax and to the total of the tax amounts.
- Returns:
- value or
null
for none
-
setPromotionAmount
public Promotion setPromotionAmount(Amount promotionAmount)
[required] Amount of the promotion. The values here are the promotion applied to the unit price
pretax and to the total of the tax amounts.
- Parameters:
promotionAmount
- promotionAmount or null
for none
-
getPromotionId
public String getPromotionId()
[required] ID of the promotion.
- Returns:
- value or
null
for none
-
setPromotionId
public Promotion setPromotionId(String promotionId)
[required] ID of the promotion.
- Parameters:
promotionId
- promotionId or null
for none
-
set
public Promotion set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Promotion clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy