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

A single subscription for an app.

Attributes

  • archived (type: boolean(), default: nil) - Output only. Deprecated: subscription archiving is not supported.
  • basePlans (type: list(GoogleApi.AndroidPublisher.V3.Model.BasePlan.t), default: nil) - The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
  • listings (type: list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionListing.t), default: nil) - Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
  • packageName (type: String.t, default: nil) - Immutable. Package name of the parent app.
  • productId (type: String.t, default: nil) - Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
  • taxAndComplianceSettings (type: GoogleApi.AndroidPublisher.V3.Model.SubscriptionTaxAndComplianceSettings.t, default: nil) - Details about taxes and legal compliance.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AndroidPublisher.V3.Model.Subscription{
  archived: boolean() | nil,
  basePlans: [GoogleApi.AndroidPublisher.V3.Model.BasePlan.t()] | nil,
  listings: [GoogleApi.AndroidPublisher.V3.Model.SubscriptionListing.t()] | nil,
  packageName: String.t() | nil,
  productId: String.t() | nil,
  taxAndComplianceSettings:
    GoogleApi.AndroidPublisher.V3.Model.SubscriptionTaxAndComplianceSettings.t()
    | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.