All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    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.
    • 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

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy