target.apidocs.com.google.api.services.content.model.OrderLegacyPromotionBenefit.html Maven / Gradle / Ivy
OrderLegacyPromotionBenefit (Content API for Shopping v2-rev20220105-1.32.1)
com.google.api.services.content.model
Class OrderLegacyPromotionBenefit
- 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.OrderLegacyPromotionBenefit
-
public final class OrderLegacyPromotionBenefit
extends GenericJson
Model definition for OrderLegacyPromotionBenefit.
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
OrderLegacyPromotionBenefit()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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
-
getDiscount
public Price getDiscount()
The discount in the order price when the promotion is applied.
- Returns:
- value or
null
for none
-
setDiscount
public OrderLegacyPromotionBenefit setDiscount(Price discount)
The discount in the order price when the promotion is applied.
- Parameters:
discount
- discount or null
for none
-
getOfferIds
public List<String> getOfferIds()
The OfferId(s) that were purchased in this order and map to this specific benefit of the
promotion.
- Returns:
- value or
null
for none
-
setOfferIds
public OrderLegacyPromotionBenefit setOfferIds(List<String> offerIds)
The OfferId(s) that were purchased in this order and map to this specific benefit of the
promotion.
- Parameters:
offerIds
- offerIds or null
for none
-
getSubType
public String getSubType()
Further describes the benefit of the promotion. Note that we will expand on this enumeration as
we support new promotion sub-types. Acceptable values are: - "`buyMGetMoneyOff`" -
"`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" -
"`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeOvernightShipping`" - "`freeShipping`" -
"`freeTwoDayShipping`" - "`moneyOff`" - "`percentageOff`" - "`rewardPoints`" - "`salePrice`"
- Returns:
- value or
null
for none
-
setSubType
public OrderLegacyPromotionBenefit setSubType(String subType)
Further describes the benefit of the promotion. Note that we will expand on this enumeration as
we support new promotion sub-types. Acceptable values are: - "`buyMGetMoneyOff`" -
"`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" -
"`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeOvernightShipping`" - "`freeShipping`" -
"`freeTwoDayShipping`" - "`moneyOff`" - "`percentageOff`" - "`rewardPoints`" - "`salePrice`"
- Parameters:
subType
- subType or null
for none
-
getTaxImpact
public Price getTaxImpact()
The impact on tax when the promotion is applied.
- Returns:
- value or
null
for none
-
setTaxImpact
public OrderLegacyPromotionBenefit setTaxImpact(Price taxImpact)
The impact on tax when the promotion is applied.
- Parameters:
taxImpact
- taxImpact or null
for none
-
getType
public String getType()
Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free
Shipping). Acceptable values are: - "`product`" - "`shipping`"
- Returns:
- value or
null
for none
-
setType
public OrderLegacyPromotionBenefit setType(String type)
Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free
Shipping). Acceptable values are: - "`product`" - "`shipping`"
- Parameters:
type
- type or null
for none
-
set
public OrderLegacyPromotionBenefit set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public OrderLegacyPromotionBenefit clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy