google_api_android_publisher v0.16.0 GoogleApi.AndroidPublisher.V3.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.V3.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), "P7D" (seven days), "P14D" (fourteen days), and "P30D" (thirty days)
  • listings (type: %{optional(String.t) => GoogleApi.AndroidPublisher.V3.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.V3.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.
  • resubscribeEligibility (type: String.t, default: nil) - Whether or not the developer wants the specific subscription to be resubscribable. If the developer doesn't use PBL2.0, this value is ignored since the feature is only for developers using PBL2.0. This feature allows users to resubscribe to an expired subscription directly from the subscription center by clicking on a "Resubscribe" CTA under the entry for the expired subscription.
  • 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

Specs

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

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.