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

A single, temporary offer

Attributes

  • basePlanId (type: String.t, default: nil) - Required. Immutable. The ID of the base plan to which this offer is an extension.
  • offerId (type: String.t, default: nil) - Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  • offerTags (type: list(GoogleApi.AndroidPublisher.V3.Model.OfferTag.t), default: nil) - List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
  • otherRegionsConfig (type: GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferConfig.t, default: nil) - The configuration for any new locations Play may launch in the future.
  • packageName (type: String.t, default: nil) - Required. Immutable. The package name of the app the parent subscription belongs to.
  • phases (type: list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOfferPhase.t), default: nil) - Required. The phases of this subscription offer. Must contain at least one entry, and may contain at most five. Users will always receive all these phases in the specified order. Phases may not be added, removed, or reordered after initial creation.
  • productId (type: String.t, default: nil) - Required. Immutable. The ID of the parent subscription this offer belongs to.
  • regionalConfigs (type: list(GoogleApi.AndroidPublisher.V3.Model.RegionalSubscriptionOfferConfig.t), default: nil) - Required. The region-specific configuration of this offer. Must contain at least one entry.
  • state (type: String.t, default: nil) - Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  • targeting (type: GoogleApi.AndroidPublisher.V3.Model.SubscriptionOfferTargeting.t, default: nil) - The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer{
  basePlanId: String.t() | nil,
  offerId: String.t() | nil,
  offerTags: [GoogleApi.AndroidPublisher.V3.Model.OfferTag.t()] | nil,
  otherRegionsConfig:
    GoogleApi.AndroidPublisher.V3.Model.OtherRegionsSubscriptionOfferConfig.t()
    | nil,
  packageName: String.t() | nil,
  phases:
    [GoogleApi.AndroidPublisher.V3.Model.SubscriptionOfferPhase.t()] | nil,
  productId: String.t() | nil,
  regionalConfigs:
    [GoogleApi.AndroidPublisher.V3.Model.RegionalSubscriptionOfferConfig.t()]
    | nil,
  state: String.t() | nil,
  targeting:
    GoogleApi.AndroidPublisher.V3.Model.SubscriptionOfferTargeting.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.