Table of Contents

Class SubscriptionPlan

Namespace
VpnHood.AppLib.Api.Billing
Assembly
VpnHood.AppLib.Api.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

Gets the price of each billing period.

public required double BasePrice { get; init; }

Property Value

double

CheckoutUrl

Gets the page the plan is bought on, for a store that sells on the web, which the UI opens as any link; or 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

Gets the first price the person pays: the introductory price where the offer has one, else BasePrice.

public required double CurrentPrice { get; init; }

Property Value

double

Period

Gets the billing period, as an ISO 8601 duration, as P1M.

public required string Period { get; init; }

Property Value

string

PlanToken

Gets the plan's opaque token, which a purchase names; only the billing provider that made it reads it.

public required string PlanToken { get; init; }

Property Value

string

TrialPeriod

Gets the free trial's period, as an ISO 8601 duration, or null where the offer has none.

public string? TrialPeriod { get; init; }

Property Value

string