target.apidocs.com.google.api.services.androidpublisher.model.RegionalSubscriptionOfferPhaseConfig.html Maven / Gradle / Ivy
RegionalSubscriptionOfferPhaseConfig (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class RegionalSubscriptionOfferPhaseConfig
- 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.RegionalSubscriptionOfferPhaseConfig
-
public final class RegionalSubscriptionOfferPhaseConfig
extends com.google.api.client.json.GenericJson
Configuration for a single phase of a subscription offer in a single region.
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
RegionalSubscriptionOfferPhaseConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
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
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.
-
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
-
RegionalSubscriptionOfferPhaseConfig
public RegionalSubscriptionOfferPhaseConfig()
-
Method Detail
-
getAbsoluteDiscount
public 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. 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 this region.
- Returns:
- value or
null
for none
-
setAbsoluteDiscount
public 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. 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 this region.
- Parameters:
absoluteDiscount
- absoluteDiscount or null
for none
-
getPrice
public Money getPrice()
The absolute price the user pays for this offer phase. The price must not be smaller than the
minimum price allowed for this region.
- Returns:
- value or
null
for none
-
setPrice
public RegionalSubscriptionOfferPhaseConfig setPrice(Money price)
The absolute price the user pays for this offer phase. The price must not be smaller than the
minimum price allowed for this region.
- Parameters:
price
- price or null
for none
-
getRegionCode
public String getRegionCode()
Required. Immutable. The region to which this config applies.
- Returns:
- value or
null
for none
-
setRegionCode
public RegionalSubscriptionOfferPhaseConfig setRegionCode(String regionCode)
Required. Immutable. The region to which this config applies.
- Parameters:
regionCode
- regionCode 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 this region.
- Returns:
- value or
null
for none
-
setRelativeDiscount
public RegionalSubscriptionOfferPhaseConfig 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 this region.
- Parameters:
relativeDiscount
- relativeDiscount or null
for none
-
set
public RegionalSubscriptionOfferPhaseConfig set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public RegionalSubscriptionOfferPhaseConfig 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