public final class Order
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 |
---|
Order() |
Modifier and Type | Method and Description |
---|---|
Order |
clone() |
Boolean |
getAcknowledged()
Whether the order was acknowledged.
|
List<OrderOrderAnnotation> |
getAnnotations()
List of key-value pairs that are attached to a given order.
|
OrderAddress |
getBillingAddress()
The billing address.
|
OrderCustomer |
getCustomer()
The details of the customer who placed the order.
|
OrderDeliveryDetails |
getDeliveryDetails()
Delivery details for shipments of type `delivery`.
|
String |
getId()
The REST ID of the order.
|
String |
getKind()
Identifies what kind of resource this is.
|
List<OrderLineItem> |
getLineItems()
Line items that are ordered.
|
BigInteger |
getMerchantId() |
String |
getMerchantOrderId()
Merchant-provided ID of the order.
|
Price |
getNetPriceAmount()
The net amount for the order (price part).
|
Price |
getNetTaxAmount()
The net amount for the order (tax part).
|
String |
getPaymentStatus()
The status of the payment.
|
OrderPickupDetails |
getPickupDetails()
Pickup details for shipments of type `pickup`.
|
String |
getPlacedDate()
The date when the order was placed, in ISO 8601 format.
|
List<OrderPromotion> |
getPromotions()
Promotions associated with the order.
|
List<OrderRefund> |
getRefunds()
Refunds for the order.
|
List<OrderShipment> |
getShipments()
Shipments of the order.
|
Price |
getShippingCost()
The total cost of shipping for all items.
|
Price |
getShippingCostTax()
The tax for the total shipping cost.
|
String |
getStatus()
The status of the order.
|
String |
getTaxCollector()
The party responsible for collecting and remitting taxes.
|
Order |
set(String fieldName,
Object value) |
Order |
setAcknowledged(Boolean acknowledged)
Whether the order was acknowledged.
|
Order |
setAnnotations(List<OrderOrderAnnotation> annotations)
List of key-value pairs that are attached to a given order.
|
Order |
setBillingAddress(OrderAddress billingAddress)
The billing address.
|
Order |
setCustomer(OrderCustomer customer)
The details of the customer who placed the order.
|
Order |
setDeliveryDetails(OrderDeliveryDetails deliveryDetails)
Delivery details for shipments of type `delivery`.
|
Order |
setId(String id)
The REST ID of the order.
|
Order |
setKind(String kind)
Identifies what kind of resource this is.
|
Order |
setLineItems(List<OrderLineItem> lineItems)
Line items that are ordered.
|
Order |
setMerchantId(BigInteger merchantId) |
Order |
setMerchantOrderId(String merchantOrderId)
Merchant-provided ID of the order.
|
Order |
setNetPriceAmount(Price netPriceAmount)
The net amount for the order (price part).
|
Order |
setNetTaxAmount(Price netTaxAmount)
The net amount for the order (tax part).
|
Order |
setPaymentStatus(String paymentStatus)
The status of the payment.
|
Order |
setPickupDetails(OrderPickupDetails pickupDetails)
Pickup details for shipments of type `pickup`.
|
Order |
setPlacedDate(String placedDate)
The date when the order was placed, in ISO 8601 format.
|
Order |
setPromotions(List<OrderPromotion> promotions)
Promotions associated with the order.
|
Order |
setRefunds(List<OrderRefund> refunds)
Refunds for the order.
|
Order |
setShipments(List<OrderShipment> shipments)
Shipments of the order.
|
Order |
setShippingCost(Price shippingCost)
The total cost of shipping for all items.
|
Order |
setShippingCostTax(Price shippingCostTax)
The tax for the total shipping cost.
|
Order |
setStatus(String status)
The status of the order.
|
Order |
setTaxCollector(String taxCollector)
The party responsible for collecting and remitting taxes.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getAcknowledged()
null
for nonepublic Order setAcknowledged(Boolean acknowledged)
acknowledged
- acknowledged or null
for nonepublic List<OrderOrderAnnotation> getAnnotations()
null
for nonepublic Order setAnnotations(List<OrderOrderAnnotation> annotations)
annotations
- annotations or null
for nonepublic OrderAddress getBillingAddress()
null
for nonepublic Order setBillingAddress(OrderAddress billingAddress)
billingAddress
- billingAddress or null
for nonepublic OrderCustomer getCustomer()
null
for nonepublic Order setCustomer(OrderCustomer customer)
customer
- customer or null
for nonepublic OrderDeliveryDetails getDeliveryDetails()
null
for nonepublic Order setDeliveryDetails(OrderDeliveryDetails deliveryDetails)
deliveryDetails
- deliveryDetails or null
for nonepublic String getId()
null
for nonepublic Order setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Order setKind(String kind)
kind
- kind or null
for nonepublic List<OrderLineItem> getLineItems()
null
for nonepublic Order setLineItems(List<OrderLineItem> lineItems)
lineItems
- lineItems or null
for nonepublic BigInteger getMerchantId()
null
for nonepublic Order setMerchantId(BigInteger merchantId)
merchantId
- merchantId or null
for nonepublic String getMerchantOrderId()
null
for nonepublic Order setMerchantOrderId(String merchantOrderId)
merchantOrderId
- merchantOrderId or null
for nonepublic Price getNetPriceAmount()
null
for nonepublic Order setNetPriceAmount(Price netPriceAmount)
netPriceAmount
- netPriceAmount or null
for nonepublic Price getNetTaxAmount()
null
for nonepublic Order setNetTaxAmount(Price netTaxAmount)
netTaxAmount
- netTaxAmount or null
for nonepublic String getPaymentStatus()
null
for nonepublic Order setPaymentStatus(String paymentStatus)
paymentStatus
- paymentStatus or null
for nonepublic OrderPickupDetails getPickupDetails()
null
for nonepublic Order setPickupDetails(OrderPickupDetails pickupDetails)
pickupDetails
- pickupDetails or null
for nonepublic String getPlacedDate()
null
for nonepublic Order setPlacedDate(String placedDate)
placedDate
- placedDate or null
for nonepublic List<OrderPromotion> getPromotions()
null
for nonepublic Order setPromotions(List<OrderPromotion> promotions)
promotions
- promotions or null
for nonepublic List<OrderRefund> getRefunds()
null
for nonepublic Order setRefunds(List<OrderRefund> refunds)
refunds
- refunds or null
for nonepublic List<OrderShipment> getShipments()
null
for nonepublic Order setShipments(List<OrderShipment> shipments)
shipments
- shipments or null
for nonepublic Price getShippingCost()
null
for nonepublic Order setShippingCost(Price shippingCost)
shippingCost
- shippingCost or null
for nonepublic Price getShippingCostTax()
null
for nonepublic Order setShippingCostTax(Price shippingCostTax)
shippingCostTax
- shippingCostTax or null
for nonepublic String getStatus()
null
for nonepublic Order setStatus(String status)
status
- status or null
for nonepublic String getTaxCollector()
null
for nonepublic Order setTaxCollector(String taxCollector)
taxCollector
- taxCollector or null
for nonepublic Order set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Order clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.