Table of Contents

Class SubscriptionPlan

Namespace
VpnHood.AppLib.Abstractions.Billing
Assembly
VpnHood.AppLib.Abstractions.dll

Represents a subscription's plan as the store prices it, in the currency the store quotes.

public class SubscriptionPlan
Inheritance
SubscriptionPlan
Inherited Members

Properties

BasePrice

Recurring price of the plan's billing period.

public required double BasePrice { get; init; }

Property Value

double

CheckoutUrl

The page the plan is bought on, for a store that sells on the web: the UI opens it as it opens any link. Null where the purchase happens in the app.

public Uri? CheckoutUrl { get; init; }

Property Value

Uri

CurrencyCode

Gets the currency's ISO 4217 code, as USD.

public required string CurrencyCode { get; init; }

Property Value

string

CurrencySymbol

Gets the currency's symbol, as $.

public required string CurrencySymbol { get; init; }

Property Value

string

CurrentPrice

First price the user actually pays: the introductory price if the offer has one, otherwise the base price.

public required double CurrentPrice { get; init; }

Property Value

double

Period

ISO 8601 duration of the recurring billing period, e.g. "P1M".

public required string Period { get; init; }

Property Value

string

PlanToken

Gets the store's token of the plan, which the purchase names.

public required string PlanToken { get; init; }

Property Value

string

TrialPeriod

ISO 8601 duration of the free-trial phase, if the offer has one.

public string? TrialPeriod { get; init; }

Property Value

string