All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.content.model.TestOrder Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version
/*
 * 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-05-04 17:28:03 UTC)
 * on 2018-07-08 at 06:19: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 { /** * The details of the customer who placed the order. * The value may be {@code null}. */ @com.google.api.client.util.Key private TestOrderCustomer customer; /** * 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 details of the payment method. * The value may be {@code null}. */ @com.google.api.client.util.Key private TestOrderPaymentMethod paymentMethod; /** * 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; /** * The details of the merchant provided promotions applied to the order. More details about the * program are here. * 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 total cost of shipping for all items. * The value may be {@code null}. */ @com.google.api.client.util.Key private Price shippingCost; /** * The tax for the total shipping cost. * The value may be {@code null}. */ @com.google.api.client.util.Key private Price shippingCostTax; /** * The requested shipping option. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String shippingOption; /** * The details of the customer who placed the order. * @return value or {@code null} for none */ public TestOrderCustomer getCustomer() { return customer; } /** * The details of the customer who placed the order. * @param customer customer or {@code null} for none */ public TestOrder setCustomer(TestOrderCustomer customer) { this.customer = customer; return this; } /** * 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 details of the payment method. * @return value or {@code null} for none */ public TestOrderPaymentMethod getPaymentMethod() { return paymentMethod; } /** * The details of the payment method. * @param paymentMethod paymentMethod or {@code null} for none */ public TestOrder setPaymentMethod(TestOrderPaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; 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; } /** * The details of the merchant provided promotions applied to the order. More details about the * program are here. * @return value or {@code null} for none */ public java.util.List getPromotions() { return promotions; } /** * The details of the merchant provided promotions applied to the order. More details about the * program are here. * @param promotions promotions or {@code null} for none */ public TestOrder setPromotions(java.util.List promotions) { this.promotions = promotions; return this; } /** * The total cost of shipping for all items. * @return value or {@code null} for none */ public Price getShippingCost() { return shippingCost; } /** * The total cost of shipping for all items. * @param shippingCost shippingCost or {@code null} for none */ public TestOrder setShippingCost(Price shippingCost) { this.shippingCost = shippingCost; return this; } /** * The tax for the total shipping cost. * @return value or {@code null} for none */ public Price getShippingCostTax() { return shippingCostTax; } /** * The tax for the total shipping cost. * @param shippingCostTax shippingCostTax or {@code null} for none */ public TestOrder setShippingCostTax(Price shippingCostTax) { this.shippingCostTax = shippingCostTax; 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