target.apidocs.com.google.api.services.content.model.TestOrder.html Maven / Gradle / Ivy
TestOrder (Content API for Shopping v2.1-rev20190215-1.27.0)
com.google.api.services.content.model
Class TestOrder
- 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.TestOrder
-
public final class TestOrder
extends com.google.api.client.json.GenericJson
Model definition for TestOrder.
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
TestOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
String
getPredefinedBillingAddress()
The billing address.
String
getPredefinedDeliveryAddress()
Identifier of one of the predefined delivery addresses for the delivery.
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
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
setPredefinedBillingAddress(String predefinedBillingAddress)
The billing address.
TestOrder
setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
Identifier of one of the predefined delivery addresses for the delivery.
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.
-
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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
-
getCustomer
public TestOrderCustomer getCustomer()
The details of the customer who placed the order.
- Returns:
- value or
null
for none
-
setCustomer
public TestOrder setCustomer(TestOrderCustomer customer)
The details of the customer who placed the order.
- Parameters:
customer
- customer or null
for none
-
getEnableOrderinvoices
public Boolean getEnableOrderinvoices()
Whether the orderinvoices service should support this order.
- Returns:
- value or
null
for none
-
setEnableOrderinvoices
public TestOrder setEnableOrderinvoices(Boolean enableOrderinvoices)
Whether the orderinvoices service should support this order.
- Parameters:
enableOrderinvoices
- enableOrderinvoices or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string "content#testOrder".
- Returns:
- value or
null
for none
-
setKind
public TestOrder setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string "content#testOrder".
- Parameters:
kind
- kind or null
for none
-
getLineItems
public List<TestOrderLineItem> getLineItems()
Line items that are ordered. At least one line item must be provided.
- Returns:
- value or
null
for none
-
setLineItems
public TestOrder setLineItems(List<TestOrderLineItem> lineItems)
Line items that are ordered. At least one line item must be provided.
- Parameters:
lineItems
- lineItems or null
for none
-
getNotificationMode
public String getNotificationMode()
Determines if test order must be pulled by merchant or pushed to merchant via push integration.
- Returns:
- value or
null
for none
-
setNotificationMode
public TestOrder setNotificationMode(String notificationMode)
Determines if test order must be pulled by merchant or pushed to merchant via push integration.
- Parameters:
notificationMode
- notificationMode or null
for none
-
getPredefinedBillingAddress
public String getPredefinedBillingAddress()
The billing address.
- Returns:
- value or
null
for none
-
setPredefinedBillingAddress
public TestOrder setPredefinedBillingAddress(String predefinedBillingAddress)
The billing address.
- Parameters:
predefinedBillingAddress
- predefinedBillingAddress or null
for none
-
getPredefinedDeliveryAddress
public String getPredefinedDeliveryAddress()
Identifier of one of the predefined delivery addresses for the delivery.
- Returns:
- value or
null
for none
-
setPredefinedDeliveryAddress
public TestOrder setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
Identifier of one of the predefined delivery addresses for the delivery.
- Parameters:
predefinedDeliveryAddress
- predefinedDeliveryAddress or null
for none
-
getPromotions
public List<OrderPromotion> getPromotions()
Promotions associated with the order.
- Returns:
- value or
null
for none
-
setPromotions
public TestOrder setPromotions(List<OrderPromotion> promotions)
Promotions associated with the order.
- Parameters:
promotions
- promotions or null
for none
-
getShippingCost
public Price getShippingCost()
The price of shipping for all items. Shipping tax is automatically calculated for MFL orders.
For non-MFL orders, tax settings from Merchant Center are applied. Note that shipping is not
taxed in certain states.
- Returns:
- value or
null
for none
-
setShippingCost
public TestOrder setShippingCost(Price shippingCost)
The price of shipping for all items. Shipping tax is automatically calculated for MFL orders.
For non-MFL orders, tax settings from Merchant Center are applied. Note that shipping is not
taxed in certain states.
- Parameters:
shippingCost
- shippingCost or null
for none
-
getShippingOption
public String getShippingOption()
The requested shipping option.
- Returns:
- value or
null
for none
-
setShippingOption
public TestOrder setShippingOption(String shippingOption)
The requested shipping option.
- Parameters:
shippingOption
- shippingOption or null
for none
-
set
public TestOrder set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TestOrder clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy