@using BTCPayServer.Plugins.Subscriptions @model AddEditPlanViewModel @{ string storeId = (string)this.Context.GetRouteValue("storeId"); string offeringId = (string)this.Context.GetRouteValue("offeringId"); var title = Model.PlanId is null ? StringLocalizer["Add plan"] : StringLocalizer["Edit plan"]; var submitLabel = Model.PlanId is null ? StringLocalizer["Create"] : StringLocalizer["Save"]; ViewData.SetLayoutModel(new LayoutModel($"{nameof(SubscriptionsPlugin)}-{offeringId}", title)); }
days
days
@if (Model.PlanChanges?.Any() is true) {

Plan changes

Allow the subscriber to downgrade or upgrade to a different plan.

@for (int i = 0; i < Model.PlanChanges.Count; i++) { var planChange = Model.PlanChanges[i]; }
Plan Change type
@planChange.PlanName
} @if (Model.Entitlements?.Any() is true) {

Entitlements

@for (int i = 0; i < Model.Entitlements.Count(); i++) { }
ID Description
@Model.Entitlements[i].CustomId @Model.Entitlements[i].ShortDescription
}