325 lines
11 KiB
TypeScript
325 lines
11 KiB
TypeScript
export const mockPage =
|
|
{
|
|
"descriptionKey": "mock.va-p24a.interim.description",
|
|
"id": "va-p24a-interim",
|
|
"registries": {
|
|
"breadcrumbs": [
|
|
{
|
|
"href": "/:tenant/settings",
|
|
"id": "settings",
|
|
"labelKey": "mock.va-p24a.interim.breadcrumb.settings"
|
|
},
|
|
{
|
|
"href": "/:tenant/settings/billing",
|
|
"id": "subscription",
|
|
"labelKey": "mock.va-p24a.interim.label"
|
|
}
|
|
],
|
|
"sidebar": [
|
|
{
|
|
"href": "/:tenant/settings/billing",
|
|
"id": "va-p24a-subscription",
|
|
"labelKey": "mock.va-p24a.interim.label"
|
|
}
|
|
]
|
|
},
|
|
"route": "/:tenant/settings/billing",
|
|
"state": {
|
|
"data": {
|
|
"activity": [
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.activity.catalog",
|
|
"meta": "2 plans / 4 prices"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.activity.preview",
|
|
"meta": "server-calculated"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.activity.trial",
|
|
"meta": "payment-method-required"
|
|
}
|
|
],
|
|
"cards": [
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.metrics.plans",
|
|
"trend": "flat",
|
|
"value": "2"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.metrics.prices",
|
|
"trend": "flat",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.metrics.minimumSeats",
|
|
"trend": "flat",
|
|
"value": "3"
|
|
}
|
|
],
|
|
"designStatus": "interim",
|
|
"screenRoute": "/:tenant/settings/billing",
|
|
"viewModel": {
|
|
"billingHref": "/:tenant/settings/billing",
|
|
"canManage": true,
|
|
"catalog": {
|
|
"plans": [
|
|
{
|
|
"badge": null,
|
|
"code": "starter",
|
|
"descriptionKey": "billing:selfServiceSubscription.fixture.starter.description",
|
|
"features": [
|
|
{
|
|
"code": "crm",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.crm"
|
|
},
|
|
{
|
|
"code": "projects",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.projects"
|
|
}
|
|
],
|
|
"id": "plan-starter",
|
|
"prices": [
|
|
{
|
|
"billingPeriod": 3,
|
|
"currency": "EUR",
|
|
"id": "price-starter-monthly",
|
|
"trialDays": 14,
|
|
"unitAmountCents": 2900
|
|
},
|
|
{
|
|
"billingPeriod": 4,
|
|
"currency": "EUR",
|
|
"id": "price-starter-yearly",
|
|
"trialDays": 14,
|
|
"unitAmountCents": 29000
|
|
}
|
|
],
|
|
"quantityMode": "flat",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.starter.title"
|
|
},
|
|
{
|
|
"badge": "billing:selfServiceSubscription.fixture.business.badge",
|
|
"code": "business",
|
|
"descriptionKey": "billing:selfServiceSubscription.fixture.business.description",
|
|
"features": [
|
|
{
|
|
"code": "crm",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.crm"
|
|
},
|
|
{
|
|
"code": "projects",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.projects"
|
|
},
|
|
{
|
|
"code": "automation",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.automation"
|
|
}
|
|
],
|
|
"id": "plan-business",
|
|
"prices": [
|
|
{
|
|
"billingPeriod": 3,
|
|
"currency": "EUR",
|
|
"id": "price-business-monthly",
|
|
"trialDays": 30,
|
|
"unitAmountCents": 4900
|
|
},
|
|
{
|
|
"billingPeriod": 4,
|
|
"currency": "EUR",
|
|
"id": "price-business-yearly",
|
|
"trialDays": 30,
|
|
"unitAmountCents": 49000
|
|
}
|
|
],
|
|
"quantityMode": "flat",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.business.title"
|
|
}
|
|
]
|
|
},
|
|
"currentSelection": {
|
|
"planCode": "starter",
|
|
"planId": "plan-starter",
|
|
"priceId": "price-starter-monthly",
|
|
"seatQuantity": 3
|
|
},
|
|
"emailMarketingAddOns": [
|
|
{
|
|
"active": true,
|
|
"amountCents": 5900,
|
|
"code": "email_marketing_s",
|
|
"currency": "EUR",
|
|
"grossAmountCents": 7021,
|
|
"monthlyEmailLimit": 10000,
|
|
"priceId": "price-email-s",
|
|
"productId": "product-email-s",
|
|
"title": "billing:selfServiceSubscription.emailMarketing.fixture.s",
|
|
"vatAmountCents": 1121,
|
|
"vatRateBasisPoints": 1900
|
|
},
|
|
{
|
|
"active": false,
|
|
"amountCents": 14900,
|
|
"code": "email_marketing_m",
|
|
"currency": "EUR",
|
|
"grossAmountCents": 17731,
|
|
"monthlyEmailLimit": 50000,
|
|
"priceId": "price-email-m",
|
|
"productId": "product-email-m",
|
|
"title": "billing:selfServiceSubscription.emailMarketing.fixture.m",
|
|
"vatAmountCents": 2831,
|
|
"vatRateBasisPoints": 1900
|
|
}
|
|
],
|
|
"managementPolicy": {
|
|
"effectiveAtByChangeKind": {
|
|
"billing_period_change": "period_end",
|
|
"configuration_change": "period_end",
|
|
"configuration_decrease": "period_end",
|
|
"configuration_increase": "immediate",
|
|
"downgrade": "period_end",
|
|
"new": "immediate",
|
|
"seat_decrease": "period_end",
|
|
"seat_increase": "immediate",
|
|
"unchanged": "immediate",
|
|
"upgrade": "immediate"
|
|
},
|
|
"planOrder": [
|
|
"starter",
|
|
"business"
|
|
]
|
|
},
|
|
"minimumSeatQuantities": {
|
|
"field": 0,
|
|
"office": 3
|
|
},
|
|
"minimumSeatQuantity": 3,
|
|
"overview": {
|
|
"data": {
|
|
"banner": {
|
|
"data": {
|
|
"descriptionKey": "settings.subscription.banner.active.description",
|
|
"readOnly": false,
|
|
"status": "active",
|
|
"titleKey": "settings.subscription.banner.active.title",
|
|
"tone": "success",
|
|
"trialDaysRemaining": null
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"contactHref": "/:tenant/settings/billing",
|
|
"emptyDescriptionKey": "billing:subscriptionOverview.empty.description",
|
|
"emptyTitleKey": "billing:subscriptionOverview.empty.title",
|
|
"entitlements": [
|
|
{
|
|
"code": "crm",
|
|
"enabled": true,
|
|
"labelKey": "billing:selfServiceSubscription.fixture.feature.crm",
|
|
"remaining": "unlimited",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.crm",
|
|
"used": 0,
|
|
"value": 1
|
|
}
|
|
],
|
|
"planCode": "starter",
|
|
"planLabel": "billing:selfServiceSubscription.fixture.starter.title",
|
|
"products": [
|
|
{
|
|
"canCancel": false,
|
|
"code": "starter",
|
|
"currentPeriodEnd": "2026-08-15T00:00:00.000Z",
|
|
"id": "tenant-product-starter",
|
|
"prices": [
|
|
{
|
|
"amount": 29,
|
|
"currency": "EUR",
|
|
"period": "monthly",
|
|
"periodLabelKey": "billing:subscriptionOverview.period.monthly",
|
|
"quantity": 1
|
|
}
|
|
],
|
|
"quantity": 3,
|
|
"state": "active",
|
|
"stateLabelKey": "billing:subscriptionOverview.productState.active",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.starter.title"
|
|
}
|
|
],
|
|
"seatUsage": {
|
|
"data": {
|
|
"categories": [
|
|
{
|
|
"extra": 0,
|
|
"extraCostEur": 0,
|
|
"extraPriceEur": null,
|
|
"included": null,
|
|
"labelKey": "settings.subscription.seats.office",
|
|
"overLimit": false,
|
|
"seatType": "office",
|
|
"used": 2
|
|
},
|
|
{
|
|
"extra": 0,
|
|
"extraCostEur": 0,
|
|
"extraPriceEur": null,
|
|
"included": null,
|
|
"labelKey": "settings.subscription.seats.field",
|
|
"overLimit": false,
|
|
"seatType": "field",
|
|
"used": 1
|
|
}
|
|
],
|
|
"currency": "EUR",
|
|
"descriptionKey": "settings.subscription.seats.description",
|
|
"hasOverage": false,
|
|
"hasPackage": false,
|
|
"noPackageHintKey": "settings.subscription.seats.noPackageHint",
|
|
"overageNoticeKey": "settings.subscription.seats.overageNotice",
|
|
"packageId": null,
|
|
"packageNameKey": null,
|
|
"titleKey": "settings.subscription.seats.title",
|
|
"totalExtraCostEur": 0
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"status": "active",
|
|
"statusLabelKey": "billing:subscriptionOverview.status.active",
|
|
"trialDaysRemaining": null,
|
|
"trialEndsAt": null
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"preferredSelection": null,
|
|
"storageAddOns": [],
|
|
"trialPolicy": {
|
|
"requiresManualActivation": false,
|
|
"requiresPaymentMethod": true
|
|
},
|
|
"usage": {
|
|
"emailMarketing": {
|
|
"limit": 10000,
|
|
"percentUsed": 32.5,
|
|
"periodEnd": "2026-08-01T00:00:00.000Z",
|
|
"periodStart": "2026-07-01T00:00:00.000Z",
|
|
"remaining": 6750,
|
|
"status": "ready",
|
|
"used": 3250
|
|
},
|
|
"storage": {
|
|
"capacityBytes": 10737418240,
|
|
"percentUsed": 32.5,
|
|
"remainingBytes": 7247757312,
|
|
"reservedBytes": 268435456,
|
|
"status": "ready",
|
|
"storedBytes": 3221225472
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"titleKey": "mock.va-p24a.interim.title"
|
|
}
|
|
;
|
|
export default mockPage;
|