target.apidocs.com.google.api.services.content.model.TestOrder.html Maven / Gradle / Ivy
TestOrder (Content API for Shopping v2.1-rev20240609-2.0.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()
TestOrderDeliveryDetails
getDeliveryDetails()
Overrides the predefined delivery details if provided.
Boolean
getEnableOrderinvoices()
Whether the orderinvoices service should support this order.
String
getKind()
Identifies what kind of resource this is.
List<TestOrderLineItem>
getLineItems()
Required.
String
getNotificationMode()
Restricted.
TestOrderPickupDetails
getPickupDetails()
Overrides the predefined pickup details if provided.
String
getPredefinedBillingAddress()
Required.
String
getPredefinedDeliveryAddress()
Required.
String
getPredefinedEmail()
Required.
String
getPredefinedPickupDetails()
Identifier of one of the predefined pickup details.
List<OrderPromotion>
getPromotions()
Promotions associated with the order.
Price
getShippingCost()
Required.
String
getShippingOption()
Required.
TestOrder
set(String fieldName,
Object value)
TestOrder
setDeliveryDetails(TestOrderDeliveryDetails deliveryDetails)
Overrides the predefined delivery details if provided.
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)
Required.
TestOrder
setNotificationMode(String notificationMode)
Restricted.
TestOrder
setPickupDetails(TestOrderPickupDetails pickupDetails)
Overrides the predefined pickup details if provided.
TestOrder
setPredefinedBillingAddress(String predefinedBillingAddress)
Required.
TestOrder
setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
Required.
TestOrder
setPredefinedEmail(String predefinedEmail)
Required.
TestOrder
setPredefinedPickupDetails(String predefinedPickupDetails)
Identifier of one of the predefined pickup details.
TestOrder
setPromotions(List<OrderPromotion> promotions)
Promotions associated with the order.
TestOrder
setShippingCost(Price shippingCost)
Required.
TestOrder
setShippingOption(String shippingOption)
Required.
-
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
-
getDeliveryDetails
public TestOrderDeliveryDetails getDeliveryDetails()
Overrides the predefined delivery details if provided.
- Returns:
- value or
null
for none
-
setDeliveryDetails
public TestOrder setDeliveryDetails(TestOrderDeliveryDetails deliveryDetails)
Overrides the predefined delivery details if provided.
- Parameters:
deliveryDetails
- deliveryDetails 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()
Required. 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)
Required. Line items that are ordered. At least one line item must be provided.
- Parameters:
lineItems
- lineItems or null
for none
-
getNotificationMode
public String getNotificationMode()
Restricted. Do not use.
- Returns:
- value or
null
for none
-
setNotificationMode
public TestOrder setNotificationMode(String notificationMode)
Restricted. Do not use.
- Parameters:
notificationMode
- notificationMode or null
for none
-
getPickupDetails
public TestOrderPickupDetails getPickupDetails()
Overrides the predefined pickup details if provided.
- Returns:
- value or
null
for none
-
setPickupDetails
public TestOrder setPickupDetails(TestOrderPickupDetails pickupDetails)
Overrides the predefined pickup details if provided.
- Parameters:
pickupDetails
- pickupDetails or null
for none
-
getPredefinedBillingAddress
public String getPredefinedBillingAddress()
Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`"
- Returns:
- value or
null
for none
-
setPredefinedBillingAddress
public TestOrder setPredefinedBillingAddress(String predefinedBillingAddress)
Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`"
- Parameters:
predefinedBillingAddress
- predefinedBillingAddress or null
for none
-
getPredefinedDeliveryAddress
public String getPredefinedDeliveryAddress()
Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable
values are: - "`dwight`" - "`jim`" - "`pam`"
- Returns:
- value or
null
for none
-
setPredefinedDeliveryAddress
public TestOrder setPredefinedDeliveryAddress(String predefinedDeliveryAddress)
Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable
values are: - "`dwight`" - "`jim`" - "`pam`"
- Parameters:
predefinedDeliveryAddress
- predefinedDeliveryAddress or null
for none
-
getPredefinedEmail
public String getPredefinedEmail()
Required. Email address of the customer. Acceptable values are: -
"`[email protected]`" - "`[email protected]`" -
"`[email protected]`"
- Returns:
- value or
null
for none
-
setPredefinedEmail
public TestOrder setPredefinedEmail(String predefinedEmail)
Required. Email address of the customer. Acceptable values are: -
"`[email protected]`" - "`[email protected]`" -
"`[email protected]`"
- Parameters:
predefinedEmail
- predefinedEmail or null
for none
-
getPredefinedPickupDetails
public String getPredefinedPickupDetails()
Identifier of one of the predefined pickup details. Required for orders containing line items
with shipping type `pickup`. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`"
- Returns:
- value or
null
for none
-
setPredefinedPickupDetails
public TestOrder setPredefinedPickupDetails(String predefinedPickupDetails)
Identifier of one of the predefined pickup details. Required for orders containing line items
with shipping type `pickup`. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`"
- Parameters:
predefinedPickupDetails
- predefinedPickupDetails 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()
Required. The price of shipping for all items. Shipping tax is automatically calculated for
orders where marketplace facilitator tax laws are applicable. Otherwise, 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)
Required. The price of shipping for all items. Shipping tax is automatically calculated for
orders where marketplace facilitator tax laws are applicable. Otherwise, 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()
Required. The requested shipping option. Acceptable values are: - "`economy`" - "`expedited`" -
"`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`"
- Returns:
- value or
null
for none
-
setShippingOption
public TestOrder setShippingOption(String shippingOption)
Required. The requested shipping option. Acceptable values are: - "`economy`" - "`expedited`" -
"`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`"
- 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–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy