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

com.google.api.services.content.model.AccountShippingCarrierRate 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: 2015-03-26 20:30:19 UTC)
 * on 2015-06-05 at 00:40:03 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.content.model;

/**
 * A carrier-calculated shipping rate.
 *
 * 

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 AccountShippingCarrierRate extends com.google.api.client.json.GenericJson { /** * The carrier that is responsible for the shipping, such as "UPS", "FedEx", or "USPS". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String carrier; /** * The carrier service, such as "Ground" or "2Day". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String carrierService; /** * Additive shipping rate modifier. * The value may be {@code null}. */ @com.google.api.client.util.Key private Price modifierFlatRate; /** * Multiplicative shipping rate modifier in percent. Represented as a floating point number * without the percentage character. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String modifierPercent; /** * The name of the carrier rate. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Sale country for which this carrier rate is valid, represented as an ISO 3166-1 Alpha-2 code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String saleCountry; /** * Shipping origin represented as a postal code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String shippingOrigin; /** * The carrier that is responsible for the shipping, such as "UPS", "FedEx", or "USPS". * @return value or {@code null} for none */ public java.lang.String getCarrier() { return carrier; } /** * The carrier that is responsible for the shipping, such as "UPS", "FedEx", or "USPS". * @param carrier carrier or {@code null} for none */ public AccountShippingCarrierRate setCarrier(java.lang.String carrier) { this.carrier = carrier; return this; } /** * The carrier service, such as "Ground" or "2Day". * @return value or {@code null} for none */ public java.lang.String getCarrierService() { return carrierService; } /** * The carrier service, such as "Ground" or "2Day". * @param carrierService carrierService or {@code null} for none */ public AccountShippingCarrierRate setCarrierService(java.lang.String carrierService) { this.carrierService = carrierService; return this; } /** * Additive shipping rate modifier. * @return value or {@code null} for none */ public Price getModifierFlatRate() { return modifierFlatRate; } /** * Additive shipping rate modifier. * @param modifierFlatRate modifierFlatRate or {@code null} for none */ public AccountShippingCarrierRate setModifierFlatRate(Price modifierFlatRate) { this.modifierFlatRate = modifierFlatRate; return this; } /** * Multiplicative shipping rate modifier in percent. Represented as a floating point number * without the percentage character. * @return value or {@code null} for none */ public java.lang.String getModifierPercent() { return modifierPercent; } /** * Multiplicative shipping rate modifier in percent. Represented as a floating point number * without the percentage character. * @param modifierPercent modifierPercent or {@code null} for none */ public AccountShippingCarrierRate setModifierPercent(java.lang.String modifierPercent) { this.modifierPercent = modifierPercent; return this; } /** * The name of the carrier rate. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The name of the carrier rate. * @param name name or {@code null} for none */ public AccountShippingCarrierRate setName(java.lang.String name) { this.name = name; return this; } /** * Sale country for which this carrier rate is valid, represented as an ISO 3166-1 Alpha-2 code. * @return value or {@code null} for none */ public java.lang.String getSaleCountry() { return saleCountry; } /** * Sale country for which this carrier rate is valid, represented as an ISO 3166-1 Alpha-2 code. * @param saleCountry saleCountry or {@code null} for none */ public AccountShippingCarrierRate setSaleCountry(java.lang.String saleCountry) { this.saleCountry = saleCountry; return this; } /** * Shipping origin represented as a postal code. * @return value or {@code null} for none */ public java.lang.String getShippingOrigin() { return shippingOrigin; } /** * Shipping origin represented as a postal code. * @param shippingOrigin shippingOrigin or {@code null} for none */ public AccountShippingCarrierRate setShippingOrigin(java.lang.String shippingOrigin) { this.shippingOrigin = shippingOrigin; return this; } @Override public AccountShippingCarrierRate set(String fieldName, Object value) { return (AccountShippingCarrierRate) super.set(fieldName, value); } @Override public AccountShippingCarrierRate clone() { return (AccountShippingCarrierRate) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy