mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
51 lines
2.0 KiB
TypeScript
51 lines
2.0 KiB
TypeScript
import { BaseResponse } from './baseResponse';
|
|
|
|
import { PlanType } from '../../enums/planType';
|
|
|
|
export class OrganizationResponse extends BaseResponse {
|
|
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;
|
|
useApi: boolean;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty('Id');
|
|
this.name = this.getResponseProperty('Name');
|
|
this.businessName = this.getResponseProperty('BusinessName');
|
|
this.businessAddress1 = this.getResponseProperty('BusinessAddress1');
|
|
this.businessAddress2 = this.getResponseProperty('BusinessAddress2');
|
|
this.businessAddress3 = this.getResponseProperty('BusinessAddress3');
|
|
this.businessCountry = this.getResponseProperty('BusinessCountry');
|
|
this.businessTaxNumber = this.getResponseProperty('BusinessTaxNumber');
|
|
this.billingEmail = this.getResponseProperty('BillingEmail');
|
|
this.plan = this.getResponseProperty('Plan');
|
|
this.planType = this.getResponseProperty('PlanType');
|
|
this.seats = this.getResponseProperty('Seats');
|
|
this.maxCollections = this.getResponseProperty('MaxCollections');
|
|
this.maxStorageGb = this.getResponseProperty('MaxStorageGb');
|
|
this.useGroups = this.getResponseProperty('UseGroups');
|
|
this.useDirectory = this.getResponseProperty('UseDirectory');
|
|
this.useEvents = this.getResponseProperty('UseEvents');
|
|
this.useTotp = this.getResponseProperty('UseTotp');
|
|
this.use2fa = this.getResponseProperty('Use2fa');
|
|
this.useApi = this.getResponseProperty('UseApi');
|
|
}
|
|
}
|