target.apidocs.com.google.api.services.content.model.OrderLegacyPromotion.html Maven / Gradle / Ivy
OrderLegacyPromotion (Content API for Shopping v2-rev20210113-1.31.0)
com.google.api.services.content.model
Class OrderLegacyPromotion
- 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.OrderLegacyPromotion
-
public final class OrderLegacyPromotion
extends GenericJson
Model definition for OrderLegacyPromotion.
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
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
OrderLegacyPromotion()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, 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
-
getBenefits
public List<OrderLegacyPromotionBenefit> getBenefits()
- Returns:
- value or
null
for none
-
setBenefits
public OrderLegacyPromotion setBenefits(List<OrderLegacyPromotionBenefit> benefits)
- Parameters:
benefits
- benefits or null
for none
-
getEffectiveDates
public String getEffectiveDates()
The date and time frame when the promotion is active and ready for validation review. Note that
the promotion live time may be delayed for a few hours due to the validation review. Start date
and end date are separated by a forward slash (/). The start date is specified by the format
(YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in
Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end
date is in the same format.
- Returns:
- value or
null
for none
-
setEffectiveDates
public OrderLegacyPromotion setEffectiveDates(String effectiveDates)
The date and time frame when the promotion is active and ready for validation review. Note that
the promotion live time may be delayed for a few hours due to the validation review. Start date
and end date are separated by a forward slash (/). The start date is specified by the format
(YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in
Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end
date is in the same format.
- Parameters:
effectiveDates
- effectiveDates or null
for none
-
getGenericRedemptionCode
public String getGenericRedemptionCode()
Optional. The text code that corresponds to the promotion when applied on the retailer?s
website.
- Returns:
- value or
null
for none
-
setGenericRedemptionCode
public OrderLegacyPromotion setGenericRedemptionCode(String genericRedemptionCode)
Optional. The text code that corresponds to the promotion when applied on the retailer?s
website.
- Parameters:
genericRedemptionCode
- genericRedemptionCode or null
for none
-
getId
public String getId()
The unique ID of the promotion.
- Returns:
- value or
null
for none
-
setId
public OrderLegacyPromotion setId(String id)
The unique ID of the promotion.
- Parameters:
id
- id or null
for none
-
getLongTitle
public String getLongTitle()
The full title of the promotion.
- Returns:
- value or
null
for none
-
setLongTitle
public OrderLegacyPromotion setLongTitle(String longTitle)
The full title of the promotion.
- Parameters:
longTitle
- longTitle or null
for none
-
getProductApplicability
public String getProductApplicability()
Whether the promotion is applicable to all products or only specific products. Acceptable
values are: - "`allProducts`" - "`specificProducts`"
- Returns:
- value or
null
for none
-
setProductApplicability
public OrderLegacyPromotion setProductApplicability(String productApplicability)
Whether the promotion is applicable to all products or only specific products. Acceptable
values are: - "`allProducts`" - "`specificProducts`"
- Parameters:
productApplicability
- productApplicability or null
for none
-
getRedemptionChannel
public String getRedemptionChannel()
Indicates that the promotion is valid online. Acceptable values are: - "`online`"
- Returns:
- value or
null
for none
-
setRedemptionChannel
public OrderLegacyPromotion setRedemptionChannel(String redemptionChannel)
Indicates that the promotion is valid online. Acceptable values are: - "`online`"
- Parameters:
redemptionChannel
- redemptionChannel or null
for none
-
set
public OrderLegacyPromotion set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public OrderLegacyPromotion clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy