com.google.api.services.content.model.AccountShippingShippingServiceCalculationMethod 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: 2016-10-17 16:43:55 UTC)
* on 2016-11-16 at 04:31:23 UTC
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* Shipping cost calculation method. Exactly one of the field is set.
*
* 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 AccountShippingShippingServiceCalculationMethod extends com.google.api.client.json.GenericJson {
/**
* Name of the carrier rate to use for the calculation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String carrierRate;
/**
* Delivery is excluded. Valid only within cost rules tree.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean excluded;
/**
* Fixed price shipping, represented as a floating point number associated with a currency.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Price flatRate;
/**
* Percentage of the price, 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 percentageRate;
/**
* Name of the rate table to use for the calculation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String rateTable;
/**
* Name of the carrier rate to use for the calculation.
* @return value or {@code null} for none
*/
public java.lang.String getCarrierRate() {
return carrierRate;
}
/**
* Name of the carrier rate to use for the calculation.
* @param carrierRate carrierRate or {@code null} for none
*/
public AccountShippingShippingServiceCalculationMethod setCarrierRate(java.lang.String carrierRate) {
this.carrierRate = carrierRate;
return this;
}
/**
* Delivery is excluded. Valid only within cost rules tree.
* @return value or {@code null} for none
*/
public java.lang.Boolean getExcluded() {
return excluded;
}
/**
* Delivery is excluded. Valid only within cost rules tree.
* @param excluded excluded or {@code null} for none
*/
public AccountShippingShippingServiceCalculationMethod setExcluded(java.lang.Boolean excluded) {
this.excluded = excluded;
return this;
}
/**
* Fixed price shipping, represented as a floating point number associated with a currency.
* @return value or {@code null} for none
*/
public Price getFlatRate() {
return flatRate;
}
/**
* Fixed price shipping, represented as a floating point number associated with a currency.
* @param flatRate flatRate or {@code null} for none
*/
public AccountShippingShippingServiceCalculationMethod setFlatRate(Price flatRate) {
this.flatRate = flatRate;
return this;
}
/**
* Percentage of the price, represented as a floating point number without the percentage
* character.
* @return value or {@code null} for none
*/
public java.lang.String getPercentageRate() {
return percentageRate;
}
/**
* Percentage of the price, represented as a floating point number without the percentage
* character.
* @param percentageRate percentageRate or {@code null} for none
*/
public AccountShippingShippingServiceCalculationMethod setPercentageRate(java.lang.String percentageRate) {
this.percentageRate = percentageRate;
return this;
}
/**
* Name of the rate table to use for the calculation.
* @return value or {@code null} for none
*/
public java.lang.String getRateTable() {
return rateTable;
}
/**
* Name of the rate table to use for the calculation.
* @param rateTable rateTable or {@code null} for none
*/
public AccountShippingShippingServiceCalculationMethod setRateTable(java.lang.String rateTable) {
this.rateTable = rateTable;
return this;
}
@Override
public AccountShippingShippingServiceCalculationMethod set(String fieldName, Object value) {
return (AccountShippingShippingServiceCalculationMethod) super.set(fieldName, value);
}
@Override
public AccountShippingShippingServiceCalculationMethod clone() {
return (AccountShippingShippingServiceCalculationMethod) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy