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

Represents a base plan that automatically renews at the end of its subscription period.

Attributes

  • accountHoldDuration (type: String.t, default: nil) - Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in DAYS and in the range P0D (zero days) to P30D (30 days). If not specified, the default value is P30D (30 days).
  • billingPeriodDuration (type: String.t, default: nil) - Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.
  • gracePeriodDuration (type: String.t, default: nil) - Grace period of the subscription, specified in ISO 8601 format. Acceptable values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and P30D (30 days). If not specified, a default value will be used based on the recurring period duration.
  • legacyCompatible (type: boolean(), default: nil) - Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription.
  • legacyCompatibleSubscriptionOfferId (type: String.t, default: nil) - Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy compatible set this field as empty string.
  • prorationMode (type: String.t, default: nil) - The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
  • resubscribeState (type: String.t, default: nil) - Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AndroidPublisher.V3.Model.AutoRenewingBasePlanType{
  accountHoldDuration: String.t() | nil,
  billingPeriodDuration: String.t() | nil,
  gracePeriodDuration: String.t() | nil,
  legacyCompatible: boolean() | nil,
  legacyCompatibleSubscriptionOfferId: String.t() | nil,
  prorationMode: String.t() | nil,
  resubscribeState: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.