1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Fix spacing for provider unassigned seats hint' (#9460)

This commit is contained in:
Alex Morask
2024-06-06 13:22:15 -04:00
committed by GitHub
parent c8eac6fa12
commit 7d12d1a74f
7 changed files with 65 additions and 29 deletions

View File

@@ -4,11 +4,11 @@ export class ProviderSubscriptionResponse extends BaseResponse {
status: string;
currentPeriodEndDate: Date;
discountPercentage?: number | null;
plans: ProviderPlanResponse[] = [];
collectionMethod: string;
unpaidPeriodEndDate?: string;
gracePeriod?: number | null;
suspensionDate?: string;
plans: Plans[] = [];
constructor(response: any) {
super(response);
@@ -21,12 +21,12 @@ export class ProviderSubscriptionResponse extends BaseResponse {
this.suspensionDate = this.getResponseProperty("suspensionDate");
const plans = this.getResponseProperty("plans");
if (plans != null) {
this.plans = plans.map((i: any) => new Plans(i));
this.plans = plans.map((i: any) => new ProviderPlanResponse(i));
}
}
}
export class Plans extends BaseResponse {
export class ProviderPlanResponse extends BaseResponse {
planName: string;
seatMinimum: number;
assignedSeats: number;