public final class RegionalSubscriptionOfferPhaseConfig
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 Google Play Android Developer API. 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 |
---|
RegionalSubscriptionOfferPhaseConfig() |
Modifier and Type | Method and Description |
---|---|
RegionalSubscriptionOfferPhaseConfig |
clone() |
Money |
getAbsoluteDiscount()
The absolute amount of money subtracted from the base plan price prorated over the phase
duration that the user pays for this offer phase.
|
RegionalSubscriptionOfferPhaseFreePriceOverride |
getFree()
Set to specify this offer is free to obtain.
|
Money |
getPrice()
The absolute price the user pays for this offer phase.
|
String |
getRegionCode()
Required.
|
Double |
getRelativeDiscount()
The fraction of the base plan price prorated over the phase duration that the user pays for
this offer phase.
|
RegionalSubscriptionOfferPhaseConfig |
set(String fieldName,
Object value) |
RegionalSubscriptionOfferPhaseConfig |
setAbsoluteDiscount(Money absoluteDiscount)
The absolute amount of money subtracted from the base plan price prorated over the phase
duration that the user pays for this offer phase.
|
RegionalSubscriptionOfferPhaseConfig |
setFree(RegionalSubscriptionOfferPhaseFreePriceOverride free)
Set to specify this offer is free to obtain.
|
RegionalSubscriptionOfferPhaseConfig |
setPrice(Money price)
The absolute price the user pays for this offer phase.
|
RegionalSubscriptionOfferPhaseConfig |
setRegionCode(String regionCode)
Required.
|
RegionalSubscriptionOfferPhaseConfig |
setRelativeDiscount(Double relativeDiscount)
The fraction of the base plan price prorated over the phase duration that the user pays for
this offer phase.
|
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 RegionalSubscriptionOfferPhaseConfig()
public Money getAbsoluteDiscount()
null
for nonepublic RegionalSubscriptionOfferPhaseConfig setAbsoluteDiscount(Money absoluteDiscount)
absoluteDiscount
- absoluteDiscount or null
for nonepublic RegionalSubscriptionOfferPhaseFreePriceOverride getFree()
null
for nonepublic RegionalSubscriptionOfferPhaseConfig setFree(RegionalSubscriptionOfferPhaseFreePriceOverride free)
free
- free or null
for nonepublic Money getPrice()
null
for nonepublic RegionalSubscriptionOfferPhaseConfig setPrice(Money price)
price
- price or null
for nonepublic String getRegionCode()
null
for nonepublic RegionalSubscriptionOfferPhaseConfig setRegionCode(String regionCode)
regionCode
- regionCode or null
for nonepublic Double getRelativeDiscount()
null
for nonepublic RegionalSubscriptionOfferPhaseConfig setRelativeDiscount(Double relativeDiscount)
relativeDiscount
- relativeDiscount or null
for nonepublic RegionalSubscriptionOfferPhaseConfig set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public RegionalSubscriptionOfferPhaseConfig clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.