
target.apidocs.com.google.api.services.androidpublisher.model.OtherRegionsSubscriptionOfferPhaseConfig.html Maven / Gradle / Ivy
OtherRegionsSubscriptionOfferPhaseConfig (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class OtherRegionsSubscriptionOfferPhaseConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidpublisher.model.OtherRegionsSubscriptionOfferPhaseConfig
-
public final class OtherRegionsSubscriptionOfferPhaseConfig
extends com.google.api.client.json.GenericJson
Configuration for any new locations Play may launch in for a single offer phase.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
OtherRegionsSubscriptionOfferPhaseConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OtherRegionsSubscriptionOfferPhaseConfig
clone()
OtherRegionsSubscriptionOfferPhasePrices
getAbsoluteDiscounts()
The absolute amount of money subtracted from the base plan price prorated over the phase
duration that the user pays for this offer phase.
OtherRegionsSubscriptionOfferPhasePrices
getOtherRegionsPrices()
The absolute price the user pays for this offer phase.
Double
getRelativeDiscount()
The fraction of the base plan price prorated over the phase duration that the user pays for
this offer phase.
OtherRegionsSubscriptionOfferPhaseConfig
set(String fieldName,
Object value)
OtherRegionsSubscriptionOfferPhaseConfig
setAbsoluteDiscounts(OtherRegionsSubscriptionOfferPhasePrices absoluteDiscounts)
The absolute amount of money subtracted from the base plan price prorated over the phase
duration that the user pays for this offer phase.
OtherRegionsSubscriptionOfferPhaseConfig
setOtherRegionsPrices(OtherRegionsSubscriptionOfferPhasePrices otherRegionsPrices)
The absolute price the user pays for this offer phase.
OtherRegionsSubscriptionOfferPhaseConfig
setRelativeDiscount(Double relativeDiscount)
The fraction of the base plan price prorated over the phase duration that the user pays for
this offer phase.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
OtherRegionsSubscriptionOfferPhaseConfig
public OtherRegionsSubscriptionOfferPhaseConfig()
-
Method Detail
-
getAbsoluteDiscounts
public OtherRegionsSubscriptionOfferPhasePrices getAbsoluteDiscounts()
The absolute amount of money subtracted from the base plan price prorated over the phase
duration that the user pays for this offer phase. For example, if the base plan price for this
region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of
3 months would correspond to a price of $2. The resulting price may not be smaller than the
minimum price allowed for any new locations Play may launch in.
- Returns:
- value or
null
for none
-
setAbsoluteDiscounts
public OtherRegionsSubscriptionOfferPhaseConfig setAbsoluteDiscounts(OtherRegionsSubscriptionOfferPhasePrices absoluteDiscounts)
The absolute amount of money subtracted from the base plan price prorated over the phase
duration that the user pays for this offer phase. For example, if the base plan price for this
region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of
3 months would correspond to a price of $2. The resulting price may not be smaller than the
minimum price allowed for any new locations Play may launch in.
- Parameters:
absoluteDiscounts
- absoluteDiscounts or null
for none
-
getOtherRegionsPrices
public OtherRegionsSubscriptionOfferPhasePrices getOtherRegionsPrices()
The absolute price the user pays for this offer phase. The price must not be smaller than the
minimum price allowed for any new locations Play may launch in.
- Returns:
- value or
null
for none
-
setOtherRegionsPrices
public OtherRegionsSubscriptionOfferPhaseConfig setOtherRegionsPrices(OtherRegionsSubscriptionOfferPhasePrices otherRegionsPrices)
The absolute price the user pays for this offer phase. The price must not be smaller than the
minimum price allowed for any new locations Play may launch in.
- Parameters:
otherRegionsPrices
- otherRegionsPrices or null
for none
-
getRelativeDiscount
public Double getRelativeDiscount()
The fraction of the base plan price prorated over the phase duration that the user pays for
this offer phase. For example, if the base plan price for this region is $12 for a period of 1
year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of
$1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller
than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD).
The relative discount is considered invalid if the discounted price ends up being smaller than
the minimum price allowed in any new locations Play may launch in.
- Returns:
- value or
null
for none
-
setRelativeDiscount
public OtherRegionsSubscriptionOfferPhaseConfig setRelativeDiscount(Double relativeDiscount)
The fraction of the base plan price prorated over the phase duration that the user pays for
this offer phase. For example, if the base plan price for this region is $12 for a period of 1
year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of
$1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller
than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD).
The relative discount is considered invalid if the discounted price ends up being smaller than
the minimum price allowed in any new locations Play may launch in.
- Parameters:
relativeDiscount
- relativeDiscount or null
for none
-
set
public OtherRegionsSubscriptionOfferPhaseConfig set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OtherRegionsSubscriptionOfferPhaseConfig clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy