public final class OrderLineItem
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OrderLineItem() |
Modifier and Type | Method and Description |
---|---|
OrderLineItem |
clone() |
List<OrderMerchantProvidedAnnotation> |
getAnnotations()
Annotations that are attached to the line item.
|
List<OrderCancellation> |
getCancellations()
Cancellations of the line item.
|
String |
getId()
The ID of the line item.
|
Price |
getPrice()
Total price for the line item.
|
OrderLineItemProduct |
getProduct()
Product data as seen by customer from the time of the order placement.
|
Long |
getQuantityCanceled()
Number of items canceled.
|
Long |
getQuantityDelivered()
Number of items delivered.
|
Long |
getQuantityOrdered()
Number of items ordered.
|
Long |
getQuantityPending()
Number of items pending.
|
Long |
getQuantityReturned()
Number of items returned.
|
Long |
getQuantityShipped()
Number of items shipped.
|
OrderLineItemReturnInfo |
getReturnInfo()
Details of the return policy for the line item.
|
List<OrderReturn> |
getReturns()
Returns of the line item.
|
OrderLineItemShippingDetails |
getShippingDetails()
Details of the requested shipping for the line item.
|
Price |
getTax()
Total tax amount for the line item.
|
OrderLineItem |
set(String fieldName,
Object value) |
OrderLineItem |
setAnnotations(List<OrderMerchantProvidedAnnotation> annotations)
Annotations that are attached to the line item.
|
OrderLineItem |
setCancellations(List<OrderCancellation> cancellations)
Cancellations of the line item.
|
OrderLineItem |
setId(String id)
The ID of the line item.
|
OrderLineItem |
setPrice(Price price)
Total price for the line item.
|
OrderLineItem |
setProduct(OrderLineItemProduct product)
Product data as seen by customer from the time of the order placement.
|
OrderLineItem |
setQuantityCanceled(Long quantityCanceled)
Number of items canceled.
|
OrderLineItem |
setQuantityDelivered(Long quantityDelivered)
Number of items delivered.
|
OrderLineItem |
setQuantityOrdered(Long quantityOrdered)
Number of items ordered.
|
OrderLineItem |
setQuantityPending(Long quantityPending)
Number of items pending.
|
OrderLineItem |
setQuantityReturned(Long quantityReturned)
Number of items returned.
|
OrderLineItem |
setQuantityShipped(Long quantityShipped)
Number of items shipped.
|
OrderLineItem |
setReturnInfo(OrderLineItemReturnInfo returnInfo)
Details of the return policy for the line item.
|
OrderLineItem |
setReturns(List<OrderReturn> returns)
Returns of the line item.
|
OrderLineItem |
setShippingDetails(OrderLineItemShippingDetails shippingDetails)
Details of the requested shipping for the line item.
|
OrderLineItem |
setTax(Price tax)
Total tax amount for the line item.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<OrderMerchantProvidedAnnotation> getAnnotations()
null
for nonepublic OrderLineItem setAnnotations(List<OrderMerchantProvidedAnnotation> annotations)
annotations
- annotations or null
for nonepublic List<OrderCancellation> getCancellations()
null
for nonepublic OrderLineItem setCancellations(List<OrderCancellation> cancellations)
cancellations
- cancellations or null
for nonepublic String getId()
null
for nonepublic OrderLineItem setId(String id)
id
- id or null
for nonepublic Price getPrice()
null
for nonepublic OrderLineItem setPrice(Price price)
price
- price or null
for nonepublic OrderLineItemProduct getProduct()
null
for nonepublic OrderLineItem setProduct(OrderLineItemProduct product)
product
- product or null
for nonepublic Long getQuantityCanceled()
null
for nonepublic OrderLineItem setQuantityCanceled(Long quantityCanceled)
quantityCanceled
- quantityCanceled or null
for nonepublic Long getQuantityDelivered()
null
for nonepublic OrderLineItem setQuantityDelivered(Long quantityDelivered)
quantityDelivered
- quantityDelivered or null
for nonepublic Long getQuantityOrdered()
null
for nonepublic OrderLineItem setQuantityOrdered(Long quantityOrdered)
quantityOrdered
- quantityOrdered or null
for nonepublic Long getQuantityPending()
null
for nonepublic OrderLineItem setQuantityPending(Long quantityPending)
quantityPending
- quantityPending or null
for nonepublic Long getQuantityReturned()
null
for nonepublic OrderLineItem setQuantityReturned(Long quantityReturned)
quantityReturned
- quantityReturned or null
for nonepublic Long getQuantityShipped()
null
for nonepublic OrderLineItem setQuantityShipped(Long quantityShipped)
quantityShipped
- quantityShipped or null
for nonepublic OrderLineItemReturnInfo getReturnInfo()
null
for nonepublic OrderLineItem setReturnInfo(OrderLineItemReturnInfo returnInfo)
returnInfo
- returnInfo or null
for nonepublic List<OrderReturn> getReturns()
null
for nonepublic OrderLineItem setReturns(List<OrderReturn> returns)
returns
- returns or null
for nonepublic OrderLineItemShippingDetails getShippingDetails()
null
for nonepublic OrderLineItem setShippingDetails(OrderLineItemShippingDetails shippingDetails)
shippingDetails
- shippingDetails or null
for nonepublic Price getTax()
null
for nonepublic OrderLineItem setTax(Price tax)
tax
- tax or null
for nonepublic OrderLineItem set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public OrderLineItem clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.