Class Subscription
Represents the store subscription that serves an account; it is there only where the account has one.
public class Subscription
- Inheritance
-
Subscription
- Inherited Members
Properties
BillingPeriod
Gets or sets the period PriceAmount pays for, as an ISO 8601 duration (P1M, P1Y), or
null.
public string? BillingPeriod { get; set; }
Property Value
CreatedTime
Gets or sets when the account backend first recorded the subscription, or null.
public DateTime? CreatedTime { get; set; }
Property Value
ExpirationTime
Gets or sets when the current period ends, or null.
public DateTime? ExpirationTime { get; set; }
Property Value
IsAutoRenew
Gets or sets a value indicating whether the subscription renews at the period's end, or null where that is not known.
public bool? IsAutoRenew { get; set; }
Property Value
- bool?
Management
Gets or sets where the subscription can be managed from this device, or why not. The default is AnotherStore.
public SubscriptionManagement Management { get; set; }
Property Value
Remarks
The account provider sets it, as it knows both the store that billed it and what this device can show. The UI gets no store address: the app opens the store's screen itself.
PriceAmount
Gets or sets the last charge the store reported for the subscription, not a list price, or null.
public decimal? PriceAmount { get; set; }
Property Value
PriceCurrency
Gets or sets the currency of PriceAmount, or null.
public string? PriceCurrency { get; set; }
Property Value
StoreId
Gets or sets the ID of the store that billed the subscription, as googleplay, appstore or
microsoft.
public required string StoreId { get; set; }
Property Value
Remarks
It can differ from the store this build comes from, as for a subscription bought on Android with an iPhone now signed in: the app decides by it, and the UI never shows it.