Class RestSubscription
Represents an application subscription.
public class RestSubscription : RestEntity<ulong>, ISubscription, ISnowflakeEntity, IEntity<ulong>
- Inheritance
-
RestSubscription
- Implements
- Inherited Members
Properties
CanceledAt
Gets when the subscription was canceled.
public DateTimeOffset? CanceledAt { get; }
Property Value
Remarks
null if the subscription has not been canceled.
Country
Gets country code of the payment source used to purchase the subscription.
public string Country { get; }
Property Value
Remarks
Requires an oauth scope.
CreatedAt
Gets when the snowflake was created.
public DateTimeOffset CreatedAt { get; }
Property Value
- DateTimeOffset
A DateTimeOffset representing when the entity was first created.
CurrentPeriodEnd
Gets end of the current subscription period.
public DateTimeOffset CurrentPeriodEnd { get; }
Property Value
CurrentPeriodStart
Gets the start of the current subscription period.
public DateTimeOffset CurrentPeriodStart { get; }
Property Value
EntitlementIds
Gets the entitlements granted for this subscription.
public IReadOnlyCollection<ulong> EntitlementIds { get; }
Property Value
SKUIds
Gets the SKUs subscribed to.
public IReadOnlyCollection<ulong> SKUIds { get; }
Property Value
Status
Gets the current status of the subscription.
public SubscriptionStatus Status { get; }
Property Value
UserId
Gets the ID of the user who is subscribed.
public ulong UserId { get; }