Table of Contents

Class Subscription

Namespace
TorBoxSDK.Models.User
Assembly
TorBoxSDK.dll

Represents a user subscription plan on TorBox.

public sealed record Subscription : IEquatable<Subscription>
Inheritance
Subscription
Implements
Inherited Members

Properties

Amount

Gets the subscription amount.

[JsonPropertyName("amount")]
public double Amount { get; init; }

Property Value

double

CreatedAt

Gets the date and time when the subscription was created, or null if not available.

[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; init; }

Property Value

DateTimeOffset?

Currency

Gets the currency code for the subscription amount, or null if not available.

[JsonPropertyName("currency")]
public string? Currency { get; init; }

Property Value

string

ExpiresAt

Gets the date and time when the subscription expires, or null if not available.

[JsonPropertyName("expires_at")]
public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

Id

Gets the unique identifier of the subscription.

[JsonPropertyName("id")]
public long Id { get; init; }

Property Value

long

PlanName

Gets the name of the subscription plan, or null if not available.

[JsonPropertyName("plan_name")]
public string? PlanName { get; init; }

Property Value

string

Status

Gets the current status of the subscription, or null if not available.

[JsonPropertyName("status")]
public string? Status { get; init; }

Property Value

string