public final class TestOrder
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 |
---|
TestOrder() |
Modifier and Type | Method and Description |
---|---|
TestOrder |
clone() |
Boolean |
getEnableOrderinvoices()
Whether the orderinvoices service should support this order.
|
String |
getKind()
Identifies what kind of resource this is.
|
List<TestOrderLineItem> |
getLineItems()
Line items that are ordered.
|
String |
getNotificationMode()
Determines if test order must be pulled by merchant or pushed to merchant via push integration.
|
String |
getPredefinedBillingAddress()
The billing address.
|
String |
getPredefinedDeliveryAddress()
Identifier of one of the predefined delivery addresses for the delivery.
|
String |
getPredefinedEmail()
Email address of the customer.
|
List<OrderPromotion> |
getPromotions()
Promotions associated with the order.
|
Price |
getShippingCost()
The price of shipping for all items.
|
String |
getShippingOption()
The requested shipping option.
|
TestOrder |
set(String fieldName,
Object value) |
TestOrder |
setEnableOrderinvoices(Boolean enableOrderinvoices)
Whether the orderinvoices service should support this order.
|
TestOrder |
setKind(String kind)
Identifies what kind of resource this is.
|
TestOrder |
setLineItems(List<TestOrderLineItem> lineItems)
Line items that are ordered.
|
TestOrder |
setNotificationMode(String notificationMode)
Determines if test order must be pulled by merchant or pushed to merchant via push integration.
|
TestOrder |
setPredefinedBillingAddress(String predefinedBillingAddress)
The billing address.
|
TestOrder |
setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
Identifier of one of the predefined delivery addresses for the delivery.
|
TestOrder |
setPredefinedEmail(String predefinedEmail)
Email address of the customer.
|
TestOrder |
setPromotions(List<OrderPromotion> promotions)
Promotions associated with the order.
|
TestOrder |
setShippingCost(Price shippingCost)
The price of shipping for all items.
|
TestOrder |
setShippingOption(String shippingOption)
The requested shipping option.
|
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 Boolean getEnableOrderinvoices()
null
for nonepublic TestOrder setEnableOrderinvoices(Boolean enableOrderinvoices)
enableOrderinvoices
- enableOrderinvoices or null
for nonepublic String getKind()
null
for nonepublic TestOrder setKind(String kind)
kind
- kind or null
for nonepublic List<TestOrderLineItem> getLineItems()
null
for nonepublic TestOrder setLineItems(List<TestOrderLineItem> lineItems)
lineItems
- lineItems or null
for nonepublic String getNotificationMode()
null
for nonepublic TestOrder setNotificationMode(String notificationMode)
notificationMode
- notificationMode or null
for nonepublic String getPredefinedBillingAddress()
null
for nonepublic TestOrder setPredefinedBillingAddress(String predefinedBillingAddress)
predefinedBillingAddress
- predefinedBillingAddress or null
for nonepublic String getPredefinedDeliveryAddress()
null
for nonepublic TestOrder setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
predefinedDeliveryAddress
- predefinedDeliveryAddress or null
for nonepublic String getPredefinedEmail()
null
for nonepublic TestOrder setPredefinedEmail(String predefinedEmail)
predefinedEmail
- predefinedEmail or null
for nonepublic List<OrderPromotion> getPromotions()
null
for nonepublic TestOrder setPromotions(List<OrderPromotion> promotions)
promotions
- promotions or null
for nonepublic Price getShippingCost()
null
for nonepublic TestOrder setShippingCost(Price shippingCost)
shippingCost
- shippingCost or null
for nonepublic String getShippingOption()
null
for nonepublic TestOrder setShippingOption(String shippingOption)
shippingOption
- shippingOption or null
for nonepublic TestOrder set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public TestOrder clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.