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

A single phase of a subscription offer.

Attributes

  • duration (type: String.t, default: nil) - Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
  • otherRegionsConfig (type: GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhaseConfig.t, default: nil) - Pricing information for any new locations Play may launch in.
  • recurrenceCount (type: integer(), default: nil) - Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
  • regionalConfigs (type: list(GoogleApi.AndroidPublisher.V3.Model.RegionalSubscriptionOfferPhaseConfig.t), default: nil) - Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AndroidPublisher.V3.Model.SubscriptionOfferPhase{
  duration: String.t() | nil,
  otherRegionsConfig:
    GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferPhaseConfig.t()
    | nil,
  recurrenceCount: integer() | nil,
  regionalConfigs:
    [
      GoogleApi.AndroidPublisher.V3.Model.RegionalSubscriptionOfferPhaseConfig.t()
    ]
    | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.