target.apidocs.com.google.api.services.content.model.OrderLineItem.html Maven / Gradle / Ivy
OrderLineItem (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class OrderLineItem
- 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.OrderLineItem
-
public final class OrderLineItem
extends com.google.api.client.json.GenericJson
Model definition for OrderLineItem.
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
OrderLineItem()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OrderLineItem
clone()
List<OrderLineItemAdjustment>
getAdjustments()
Price and tax adjustments applied on the line item.
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
getQuantityReadyForPickup()
Number of items ready for pickup.
Long
getQuantityReturned()
Number of items returned.
Long
getQuantityShipped()
Number of items shipped.
Long
getQuantityUndeliverable()
Number of items undeliverable.
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
setAdjustments(List<OrderLineItemAdjustment> adjustments)
Price and tax adjustments applied on the line item.
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
setQuantityReadyForPickup(Long quantityReadyForPickup)
Number of items ready for pickup.
OrderLineItem
setQuantityReturned(Long quantityReturned)
Number of items returned.
OrderLineItem
setQuantityShipped(Long quantityShipped)
Number of items shipped.
OrderLineItem
setQuantityUndeliverable(Long quantityUndeliverable)
Number of items undeliverable.
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.
-
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
-
getAdjustments
public List<OrderLineItemAdjustment> getAdjustments()
Price and tax adjustments applied on the line item.
- Returns:
- value or
null
for none
-
setAdjustments
public OrderLineItem setAdjustments(List<OrderLineItemAdjustment> adjustments)
Price and tax adjustments applied on the line item.
- Parameters:
adjustments
- adjustments or null
for none
-
getAnnotations
public List<OrderMerchantProvidedAnnotation> getAnnotations()
Annotations that are attached to the line item.
- Returns:
- value or
null
for none
-
setAnnotations
public OrderLineItem setAnnotations(List<OrderMerchantProvidedAnnotation> annotations)
Annotations that are attached to the line item.
- Parameters:
annotations
- annotations or null
for none
-
getCancellations
public List<OrderCancellation> getCancellations()
Cancellations of the line item.
- Returns:
- value or
null
for none
-
setCancellations
public OrderLineItem setCancellations(List<OrderCancellation> cancellations)
Cancellations of the line item.
- Parameters:
cancellations
- cancellations or null
for none
-
getId
public String getId()
The ID of the line item.
- Returns:
- value or
null
for none
-
setId
public OrderLineItem setId(String id)
The ID of the line item.
- Parameters:
id
- id or null
for none
-
getPrice
public Price getPrice()
Total price for the line item. For example, if two items for $10 are purchased, the total price
will be $20.
- Returns:
- value or
null
for none
-
setPrice
public OrderLineItem setPrice(Price price)
Total price for the line item. For example, if two items for $10 are purchased, the total price
will be $20.
- Parameters:
price
- price or null
for none
-
getProduct
public OrderLineItemProduct getProduct()
Product data as seen by customer from the time of the order placement. Note that certain
attributes values (for example, title or gtin) might be reformatted and no longer match values
submitted through product feed.
- Returns:
- value or
null
for none
-
setProduct
public OrderLineItem setProduct(OrderLineItemProduct product)
Product data as seen by customer from the time of the order placement. Note that certain
attributes values (for example, title or gtin) might be reformatted and no longer match values
submitted through product feed.
- Parameters:
product
- product or null
for none
-
getQuantityCanceled
public Long getQuantityCanceled()
Number of items canceled.
- Returns:
- value or
null
for none
-
setQuantityCanceled
public OrderLineItem setQuantityCanceled(Long quantityCanceled)
Number of items canceled.
- Parameters:
quantityCanceled
- quantityCanceled or null
for none
-
getQuantityDelivered
public Long getQuantityDelivered()
Number of items delivered.
- Returns:
- value or
null
for none
-
setQuantityDelivered
public OrderLineItem setQuantityDelivered(Long quantityDelivered)
Number of items delivered.
- Parameters:
quantityDelivered
- quantityDelivered or null
for none
-
getQuantityOrdered
public Long getQuantityOrdered()
Number of items ordered.
- Returns:
- value or
null
for none
-
setQuantityOrdered
public OrderLineItem setQuantityOrdered(Long quantityOrdered)
Number of items ordered.
- Parameters:
quantityOrdered
- quantityOrdered or null
for none
-
getQuantityPending
public Long getQuantityPending()
Number of items pending.
- Returns:
- value or
null
for none
-
setQuantityPending
public OrderLineItem setQuantityPending(Long quantityPending)
Number of items pending.
- Parameters:
quantityPending
- quantityPending or null
for none
-
getQuantityReadyForPickup
public Long getQuantityReadyForPickup()
Number of items ready for pickup.
- Returns:
- value or
null
for none
-
setQuantityReadyForPickup
public OrderLineItem setQuantityReadyForPickup(Long quantityReadyForPickup)
Number of items ready for pickup.
- Parameters:
quantityReadyForPickup
- quantityReadyForPickup or null
for none
-
getQuantityReturned
public Long getQuantityReturned()
Number of items returned.
- Returns:
- value or
null
for none
-
setQuantityReturned
public OrderLineItem setQuantityReturned(Long quantityReturned)
Number of items returned.
- Parameters:
quantityReturned
- quantityReturned or null
for none
-
getQuantityShipped
public Long getQuantityShipped()
Number of items shipped.
- Returns:
- value or
null
for none
-
setQuantityShipped
public OrderLineItem setQuantityShipped(Long quantityShipped)
Number of items shipped.
- Parameters:
quantityShipped
- quantityShipped or null
for none
-
getQuantityUndeliverable
public Long getQuantityUndeliverable()
Number of items undeliverable.
- Returns:
- value or
null
for none
-
setQuantityUndeliverable
public OrderLineItem setQuantityUndeliverable(Long quantityUndeliverable)
Number of items undeliverable.
- Parameters:
quantityUndeliverable
- quantityUndeliverable or null
for none
-
getReturnInfo
public OrderLineItemReturnInfo getReturnInfo()
Details of the return policy for the line item.
- Returns:
- value or
null
for none
-
setReturnInfo
public OrderLineItem setReturnInfo(OrderLineItemReturnInfo returnInfo)
Details of the return policy for the line item.
- Parameters:
returnInfo
- returnInfo or null
for none
-
getReturns
public List<OrderReturn> getReturns()
Returns of the line item.
- Returns:
- value or
null
for none
-
setReturns
public OrderLineItem setReturns(List<OrderReturn> returns)
Returns of the line item.
- Parameters:
returns
- returns or null
for none
-
getShippingDetails
public OrderLineItemShippingDetails getShippingDetails()
Details of the requested shipping for the line item.
- Returns:
- value or
null
for none
-
setShippingDetails
public OrderLineItem setShippingDetails(OrderLineItemShippingDetails shippingDetails)
Details of the requested shipping for the line item.
- Parameters:
shippingDetails
- shippingDetails or null
for none
-
getTax
public Price getTax()
Total tax amount for the line item. For example, if two items are purchased, and each have a
cost tax of $2, the total tax amount will be $4.
- Returns:
- value or
null
for none
-
setTax
public OrderLineItem setTax(Price tax)
Total tax amount for the line item. For example, if two items are purchased, and each have a
cost tax of $2, the total tax amount will be $4.
- Parameters:
tax
- tax or null
for none
-
set
public OrderLineItem set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OrderLineItem 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