View Source GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhaseConfig (google_api_android_publisher v0.34.1)

Configuration for any new locations Play may launch in for a single offer phase.

Attributes

  • absoluteDiscounts (type: GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhasePrices.t, default: nil) - 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.
  • otherRegionsPrices (type: GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhasePrices.t, default: nil) - 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.
  • relativeDiscount (type: float(), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhaseConfig{
    absoluteDiscounts:
      GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhasePrices.t()
      | nil,
    otherRegionsPrices:
      GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhasePrices.t()
      | nil,
    relativeDiscount: float() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.