google_api_android_publisher v0.9.0 GoogleApi.AndroidPublisher.V2.Model.InAppProduct View Source

Attributes

  • defaultLanguage (type: String.t, default: nil) - The default language of the localized data, as defined by BCP 47. e.g. "en-US", "en-GB".
  • defaultPrice (type: GoogleApi.AndroidPublisher.V2.Model.Price.t, default: nil) - Default price cannot be zero. In-app products can never be free. Default price is always in the developer's Checkout merchant currency.
  • gracePeriod (type: String.t, default: nil) - Grace period of the subscription, specified in ISO 8601 format. It will allow developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values = "P3D" (three days) and "P7D" (seven days)
  • listings (type: %{optional(String.t) => GoogleApi.AndroidPublisher.V2.Model.InAppProductListing.t}, default: nil) - List of localized title and description data.
  • packageName (type: String.t, default: nil) - The package name of the parent app.
  • prices (type: %{optional(String.t) => GoogleApi.AndroidPublisher.V2.Model.Price.t}, default: nil) - Prices per buyer region. None of these prices should be zero. In-app products can never be free.
  • purchaseType (type: String.t, default: nil) - Purchase type enum value. Unmodifiable after creation.
  • season (type: GoogleApi.AndroidPublisher.V2.Model.Season.t, default: nil) - Definition of a season for a seasonal subscription. Can be defined only for yearly subscriptions.
  • sku (type: String.t, default: nil) - The stock-keeping-unit (SKU) of the product, unique within an app.
  • status (type: String.t, default: nil) -
  • subscriptionPeriod (type: String.t, default: nil) - Subscription period, specified in ISO 8601 format. Acceptable values are "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "P1Y" (one year).
  • trialPeriod (type: String.t, default: nil) - Trial period, specified in ISO 8601 format. Acceptable values are anything between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions cannot have a trial period.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.AndroidPublisher.V2.Model.InAppProduct{
  defaultLanguage: String.t(),
  defaultPrice: GoogleApi.AndroidPublisher.V2.Model.Price.t(),
  gracePeriod: String.t(),
  listings: %{
    optional(String.t()) =>
      GoogleApi.AndroidPublisher.V2.Model.InAppProductListing.t()
  },
  packageName: String.t(),
  prices: %{
    optional(String.t()) => GoogleApi.AndroidPublisher.V2.Model.Price.t()
  },
  purchaseType: String.t(),
  season: GoogleApi.AndroidPublisher.V2.Model.Season.t(),
  sku: String.t(),
  status: String.t(),
  subscriptionPeriod: String.t(),
  trialPeriod: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.