mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
import { PlanType } from '../../enums/planType';
|
|
|
|
export class OrganizationResponse {
|
|
id: string;
|
|
name: string;
|
|
businessName: string;
|
|
businessAddress1: string;
|
|
businessAddress2: string;
|
|
businessAddress3: string;
|
|
businessCountry: string;
|
|
businessTaxNumber: string;
|
|
billingEmail: string;
|
|
plan: string;
|
|
planType: PlanType;
|
|
seats: number;
|
|
maxCollections: number;
|
|
maxStorageGb: number;
|
|
useGroups: boolean;
|
|
useDirectory: boolean;
|
|
useEvents: boolean;
|
|
useTotp: boolean;
|
|
use2fa: boolean;
|
|
|
|
constructor(response: any) {
|
|
this.id = response.Id;
|
|
this.name = response.Name;
|
|
this.businessName = response.BusinessName;
|
|
this.businessAddress1 = response.BusinessAddress1;
|
|
this.businessAddress2 = response.BusinessAddress2;
|
|
this.businessAddress3 = response.BusinessAddress3;
|
|
this.businessCountry = response.BusinessCountry;
|
|
this.businessTaxNumber = response.BusinessTaxNumber;
|
|
this.billingEmail = response.BillingEmail;
|
|
this.plan = response.Plan;
|
|
this.planType = response.PlanType;
|
|
this.seats = response.Seats;
|
|
this.maxCollections = response.MaxCollections;
|
|
this.maxStorageGb = response.MaxStorageGb;
|
|
this.useGroups = response.UseGroups;
|
|
this.useDirectory = response.UseDirectory;
|
|
this.useEvents = response.UseEvents;
|
|
this.useTotp = response.UseTotp;
|
|
this.use2fa = response.Use2fa;
|
|
}
|
|
}
|