com.google.api.services.content.model.TestOrder Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2018-10-08 17:45:39 UTC)
* on 2020-03-07 at 08:13:03 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* 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:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TestOrder extends com.google.api.client.json.GenericJson {
/**
* Whether the orderinvoices service should support this order.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean enableOrderinvoices;
/**
* Identifies what kind of resource this is. Value: the fixed string "content#testOrder".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* Line items that are ordered. At least one line item must be provided.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List lineItems;
/**
* Determines if test order must be pulled by merchant or pushed to merchant via push integration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String notificationMode;
/**
* The billing address.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String predefinedBillingAddress;
/**
* Identifier of one of the predefined delivery addresses for the delivery.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String predefinedDeliveryAddress;
/**
* Email address of the customer.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String predefinedEmail;
/**
* Identifier of one of the predefined pickup details. Required for orders containing line items
* with shipping type pickup.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String predefinedPickupDetails;
/**
* Promotions associated with the order.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List promotions;
static {
// hack to force ProGuard to consider OrderPromotion used, since otherwise it would be stripped out
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
com.google.api.client.util.Data.nullOf(OrderPromotion.class);
}
/**
* 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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Price shippingCost;
/**
* The requested shipping option.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String shippingOption;
/**
* Whether the orderinvoices service should support this order.
* @return value or {@code null} for none
*/
public java.lang.Boolean getEnableOrderinvoices() {
return enableOrderinvoices;
}
/**
* Whether the orderinvoices service should support this order.
* @param enableOrderinvoices enableOrderinvoices or {@code null} for none
*/
public TestOrder setEnableOrderinvoices(java.lang.Boolean enableOrderinvoices) {
this.enableOrderinvoices = enableOrderinvoices;
return this;
}
/**
* Identifies what kind of resource this is. Value: the fixed string "content#testOrder".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies what kind of resource this is. Value: the fixed string "content#testOrder".
* @param kind kind or {@code null} for none
*/
public TestOrder setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* Line items that are ordered. At least one line item must be provided.
* @return value or {@code null} for none
*/
public java.util.List getLineItems() {
return lineItems;
}
/**
* Line items that are ordered. At least one line item must be provided.
* @param lineItems lineItems or {@code null} for none
*/
public TestOrder setLineItems(java.util.List lineItems) {
this.lineItems = lineItems;
return this;
}
/**
* Determines if test order must be pulled by merchant or pushed to merchant via push integration.
* @return value or {@code null} for none
*/
public java.lang.String getNotificationMode() {
return notificationMode;
}
/**
* Determines if test order must be pulled by merchant or pushed to merchant via push integration.
* @param notificationMode notificationMode or {@code null} for none
*/
public TestOrder setNotificationMode(java.lang.String notificationMode) {
this.notificationMode = notificationMode;
return this;
}
/**
* The billing address.
* @return value or {@code null} for none
*/
public java.lang.String getPredefinedBillingAddress() {
return predefinedBillingAddress;
}
/**
* The billing address.
* @param predefinedBillingAddress predefinedBillingAddress or {@code null} for none
*/
public TestOrder setPredefinedBillingAddress(java.lang.String predefinedBillingAddress) {
this.predefinedBillingAddress = predefinedBillingAddress;
return this;
}
/**
* Identifier of one of the predefined delivery addresses for the delivery.
* @return value or {@code null} for none
*/
public java.lang.String getPredefinedDeliveryAddress() {
return predefinedDeliveryAddress;
}
/**
* Identifier of one of the predefined delivery addresses for the delivery.
* @param predefinedDeliveryAddress predefinedDeliveryAddress or {@code null} for none
*/
public TestOrder setPredefinedDeliveryAddress(java.lang.String predefinedDeliveryAddress) {
this.predefinedDeliveryAddress = predefinedDeliveryAddress;
return this;
}
/**
* Email address of the customer.
* @return value or {@code null} for none
*/
public java.lang.String getPredefinedEmail() {
return predefinedEmail;
}
/**
* Email address of the customer.
* @param predefinedEmail predefinedEmail or {@code null} for none
*/
public TestOrder setPredefinedEmail(java.lang.String predefinedEmail) {
this.predefinedEmail = predefinedEmail;
return this;
}
/**
* Identifier of one of the predefined pickup details. Required for orders containing line items
* with shipping type pickup.
* @return value or {@code null} for none
*/
public java.lang.String getPredefinedPickupDetails() {
return predefinedPickupDetails;
}
/**
* Identifier of one of the predefined pickup details. Required for orders containing line items
* with shipping type pickup.
* @param predefinedPickupDetails predefinedPickupDetails or {@code null} for none
*/
public TestOrder setPredefinedPickupDetails(java.lang.String predefinedPickupDetails) {
this.predefinedPickupDetails = predefinedPickupDetails;
return this;
}
/**
* Promotions associated with the order.
* @return value or {@code null} for none
*/
public java.util.List getPromotions() {
return promotions;
}
/**
* Promotions associated with the order.
* @param promotions promotions or {@code null} for none
*/
public TestOrder setPromotions(java.util.List promotions) {
this.promotions = promotions;
return this;
}
/**
* 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.
* @return value or {@code null} for none
*/
public Price getShippingCost() {
return shippingCost;
}
/**
* 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.
* @param shippingCost shippingCost or {@code null} for none
*/
public TestOrder setShippingCost(Price shippingCost) {
this.shippingCost = shippingCost;
return this;
}
/**
* The requested shipping option.
* @return value or {@code null} for none
*/
public java.lang.String getShippingOption() {
return shippingOption;
}
/**
* The requested shipping option.
* @param shippingOption shippingOption or {@code null} for none
*/
public TestOrder setShippingOption(java.lang.String shippingOption) {
this.shippingOption = shippingOption;
return this;
}
@Override
public TestOrder set(String fieldName, Object value) {
return (TestOrder) super.set(fieldName, value);
}
@Override
public TestOrder clone() {
return (TestOrder) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy