public final class ReturnPolicy
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ReturnPolicy() |
Modifier and Type | Method and Description |
---|---|
ReturnPolicy |
clone() |
String |
getCountry()
Required.
|
String |
getKind()
Identifies what kind of resource this is.
|
String |
getLabel()
Required.
|
String |
getName()
Required.
|
List<String> |
getNonFreeReturnReasons()
Return reasons that will incur return fees.
|
ReturnPolicyPolicy |
getPolicy()
Required.
|
String |
getReturnPolicyId()
Return policy ID generated by Google.
|
Price |
getReturnShippingFee()
The return shipping fee that will apply to non free return reasons.
|
List<ReturnPolicySeasonalOverride> |
getSeasonalOverrides()
An optional list of seasonal overrides.
|
ReturnPolicy |
set(String fieldName,
Object value) |
ReturnPolicy |
setCountry(String country)
Required.
|
ReturnPolicy |
setKind(String kind)
Identifies what kind of resource this is.
|
ReturnPolicy |
setLabel(String label)
Required.
|
ReturnPolicy |
setName(String name)
Required.
|
ReturnPolicy |
setNonFreeReturnReasons(List<String> nonFreeReturnReasons)
Return reasons that will incur return fees.
|
ReturnPolicy |
setPolicy(ReturnPolicyPolicy policy)
Required.
|
ReturnPolicy |
setReturnPolicyId(String returnPolicyId)
Return policy ID generated by Google.
|
ReturnPolicy |
setReturnShippingFee(Price returnShippingFee)
The return shipping fee that will apply to non free return reasons.
|
ReturnPolicy |
setSeasonalOverrides(List<ReturnPolicySeasonalOverride> seasonalOverrides)
An optional list of seasonal overrides.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCountry()
null
for nonepublic ReturnPolicy setCountry(String country)
country
- country or null
for nonepublic String getKind()
null
for nonepublic ReturnPolicy setKind(String kind)
kind
- kind or null
for nonepublic String getLabel()
null
for nonepublic ReturnPolicy setLabel(String label)
label
- label or null
for nonepublic String getName()
null
for nonepublic ReturnPolicy setName(String name)
name
- name or null
for nonepublic List<String> getNonFreeReturnReasons()
null
for nonepublic ReturnPolicy setNonFreeReturnReasons(List<String> nonFreeReturnReasons)
nonFreeReturnReasons
- nonFreeReturnReasons or null
for nonepublic ReturnPolicyPolicy getPolicy()
null
for nonepublic ReturnPolicy setPolicy(ReturnPolicyPolicy policy)
policy
- policy or null
for nonepublic String getReturnPolicyId()
null
for nonepublic ReturnPolicy setReturnPolicyId(String returnPolicyId)
returnPolicyId
- returnPolicyId or null
for nonepublic Price getReturnShippingFee()
null
for nonepublic ReturnPolicy setReturnShippingFee(Price returnShippingFee)
returnShippingFee
- returnShippingFee or null
for nonepublic List<ReturnPolicySeasonalOverride> getSeasonalOverrides()
null
for nonepublic ReturnPolicy setSeasonalOverrides(List<ReturnPolicySeasonalOverride> seasonalOverrides)
seasonalOverrides
- seasonalOverrides or null
for nonepublic ReturnPolicy set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ReturnPolicy clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.