public final class TestOrder extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TestOrder() |
Modifier and Type | Method and Description |
---|---|
TestOrder |
clone() |
TestOrderCustomer |
getCustomer()
The details of the customer who placed the order.
|
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.
|
TestOrderPaymentMethod |
getPaymentMethod()
The details of the payment method.
|
String |
getPredefinedDeliveryAddress()
Identifier of one of the predefined delivery addresses for the delivery.
|
List<OrderLegacyPromotion> |
getPromotions()
Deprecated.
|
Price |
getShippingCost()
The price of shipping for all items.
|
Price |
getShippingCostTax()
Deprecated.
|
String |
getShippingOption()
The requested shipping option.
|
TestOrder |
set(String fieldName,
Object value) |
TestOrder |
setCustomer(TestOrderCustomer customer)
The details of the customer who placed the order.
|
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 |
setPaymentMethod(TestOrderPaymentMethod paymentMethod)
The details of the payment method.
|
TestOrder |
setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
Identifier of one of the predefined delivery addresses for the delivery.
|
TestOrder |
setPromotions(List<OrderLegacyPromotion> promotions)
Deprecated.
|
TestOrder |
setShippingCost(Price shippingCost)
The price of shipping for all items.
|
TestOrder |
setShippingCostTax(Price shippingCostTax)
Deprecated.
|
TestOrder |
setShippingOption(String shippingOption)
The requested shipping option.
|
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 TestOrderCustomer getCustomer()
null
for nonepublic TestOrder setCustomer(TestOrderCustomer customer)
customer
- customer or null
for nonepublic 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 TestOrderPaymentMethod getPaymentMethod()
null
for nonepublic TestOrder setPaymentMethod(TestOrderPaymentMethod paymentMethod)
paymentMethod
- paymentMethod or null
for nonepublic String getPredefinedDeliveryAddress()
null
for nonepublic TestOrder setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
predefinedDeliveryAddress
- predefinedDeliveryAddress or null
for nonepublic List<OrderLegacyPromotion> getPromotions()
null
for nonepublic TestOrder setPromotions(List<OrderLegacyPromotion> promotions)
promotions
- promotions or null
for nonepublic Price getShippingCost()
null
for nonepublic TestOrder setShippingCost(Price shippingCost)
shippingCost
- shippingCost or null
for nonepublic Price getShippingCostTax()
null
for nonepublic TestOrder setShippingCostTax(Price shippingCostTax)
shippingCostTax
- shippingCostTax 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 GenericJson
public TestOrder clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.