target.apidocs.com.google.api.services.content.model.PosSale.html Maven / Gradle / Ivy
PosSale (Content API for Shopping v2.1-rev20190513-1.28.0)
com.google.api.services.content.model
Class PosSale
- 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.PosSale
-
public final class PosSale
extends com.google.api.client.json.GenericJson
The change of the available quantity of an item at the given store.
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
PosSale()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PosSale
clone()
String
getContentLanguage()
The two-letter ISO 639-1 language code for the item.
String
getGtin()
Global Trade Item Number.
String
getItemId()
A unique identifier for the item.
String
getKind()
Identifies what kind of resource this is.
Price
getPrice()
The price of the item.
Long
getQuantity()
The relative change of the available quantity.
String
getSaleId()
A unique ID to group items from the same sale event.
String
getStoreCode()
The identifier of the merchant's store.
String
getTargetCountry()
The CLDR territory code for the item.
String
getTimestamp()
The inventory timestamp, in ISO 8601 format.
PosSale
set(String fieldName,
Object value)
PosSale
setContentLanguage(String contentLanguage)
The two-letter ISO 639-1 language code for the item.
PosSale
setGtin(String gtin)
Global Trade Item Number.
PosSale
setItemId(String itemId)
A unique identifier for the item.
PosSale
setKind(String kind)
Identifies what kind of resource this is.
PosSale
setPrice(Price price)
The price of the item.
PosSale
setQuantity(Long quantity)
The relative change of the available quantity.
PosSale
setSaleId(String saleId)
A unique ID to group items from the same sale event.
PosSale
setStoreCode(String storeCode)
The identifier of the merchant's store.
PosSale
setTargetCountry(String targetCountry)
The CLDR territory code for the item.
PosSale
setTimestamp(String timestamp)
The inventory timestamp, in ISO 8601 format.
-
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
-
getContentLanguage
public String getContentLanguage()
The two-letter ISO 639-1 language code for the item.
- Returns:
- value or
null
for none
-
setContentLanguage
public PosSale setContentLanguage(String contentLanguage)
The two-letter ISO 639-1 language code for the item.
- Parameters:
contentLanguage
- contentLanguage or null
for none
-
getGtin
public String getGtin()
Global Trade Item Number.
- Returns:
- value or
null
for none
-
setGtin
public PosSale setGtin(String gtin)
Global Trade Item Number.
- Parameters:
gtin
- gtin or null
for none
-
getItemId
public String getItemId()
A unique identifier for the item.
- Returns:
- value or
null
for none
-
setItemId
public PosSale setItemId(String itemId)
A unique identifier for the item.
- Parameters:
itemId
- itemId or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string "content#posSale".
- Returns:
- value or
null
for none
-
setKind
public PosSale setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string "content#posSale".
- Parameters:
kind
- kind or null
for none
-
getPrice
public Price getPrice()
The price of the item.
- Returns:
- value or
null
for none
-
setPrice
public PosSale setPrice(Price price)
The price of the item.
- Parameters:
price
- price or null
for none
-
getQuantity
public Long getQuantity()
The relative change of the available quantity. Negative for items returned.
- Returns:
- value or
null
for none
-
setQuantity
public PosSale setQuantity(Long quantity)
The relative change of the available quantity. Negative for items returned.
- Parameters:
quantity
- quantity or null
for none
-
getSaleId
public String getSaleId()
A unique ID to group items from the same sale event.
- Returns:
- value or
null
for none
-
setSaleId
public PosSale setSaleId(String saleId)
A unique ID to group items from the same sale event.
- Parameters:
saleId
- saleId or null
for none
-
getStoreCode
public String getStoreCode()
The identifier of the merchant's store. Either a storeCode inserted via the API or the code of
the store in Google My Business.
- Returns:
- value or
null
for none
-
setStoreCode
public PosSale setStoreCode(String storeCode)
The identifier of the merchant's store. Either a storeCode inserted via the API or the code of
the store in Google My Business.
- Parameters:
storeCode
- storeCode or null
for none
-
getTargetCountry
public String getTargetCountry()
The CLDR territory code for the item.
- Returns:
- value or
null
for none
-
setTargetCountry
public PosSale setTargetCountry(String targetCountry)
The CLDR territory code for the item.
- Parameters:
targetCountry
- targetCountry or null
for none
-
getTimestamp
public String getTimestamp()
The inventory timestamp, in ISO 8601 format.
- Returns:
- value or
null
for none
-
setTimestamp
public PosSale setTimestamp(String timestamp)
The inventory timestamp, in ISO 8601 format.
- Parameters:
timestamp
- timestamp or null
for none
-
set
public PosSale set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public PosSale 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