target.apidocs.com.google.api.services.content.model.OrderPromotionItem.html Maven / Gradle / Ivy
OrderPromotionItem (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class OrderPromotionItem
- 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.OrderPromotionItem
-
public final class OrderPromotionItem
extends com.google.api.client.json.GenericJson
Model definition for OrderPromotionItem.
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
OrderPromotionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OrderPromotionItem
clone()
String
getLineItemId()
The line item ID of a product.
String
getOfferId()
Required.
String
getProductId()
`orders.createtestorder`.
Integer
getQuantity()
The quantity of the associated product.
OrderPromotionItem
set(String fieldName,
Object value)
OrderPromotionItem
setLineItemId(String lineItemId)
The line item ID of a product.
OrderPromotionItem
setOfferId(String offerId)
Required.
OrderPromotionItem
setProductId(String productId)
`orders.createtestorder`.
OrderPromotionItem
setQuantity(Integer quantity)
The quantity of the associated product.
-
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
-
getLineItemId
public String getLineItemId()
The line item ID of a product. Do not provide for `orders.createtestorder`.
- Returns:
- value or
null
for none
-
setLineItemId
public OrderPromotionItem setLineItemId(String lineItemId)
The line item ID of a product. Do not provide for `orders.createtestorder`.
- Parameters:
lineItemId
- lineItemId or null
for none
-
getOfferId
public String getOfferId()
Required. Offer ID of a product. Only for `orders.createtestorder`.
- Returns:
- value or
null
for none
-
setOfferId
public OrderPromotionItem setOfferId(String offerId)
Required. Offer ID of a product. Only for `orders.createtestorder`.
- Parameters:
offerId
- offerId or null
for none
-
getProductId
public String getProductId()
`orders.createtestorder`.
- Returns:
- value or
null
for none
-
setProductId
public OrderPromotionItem setProductId(String productId)
`orders.createtestorder`.
- Parameters:
productId
- productId or null
for none
-
getQuantity
public Integer getQuantity()
The quantity of the associated product. Do not provide for `orders.createtestorder`.
- Returns:
- value or
null
for none
-
setQuantity
public OrderPromotionItem setQuantity(Integer quantity)
The quantity of the associated product. Do not provide for `orders.createtestorder`.
- Parameters:
quantity
- quantity or null
for none
-
set
public OrderPromotionItem set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OrderPromotionItem clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy