1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

add support for org identifier to api models (#149)

This commit is contained in:
Kyle Spearrin
2020-08-12 16:38:32 -04:00
committed by GitHub
parent 5c62938dbb
commit ed6978baff
2 changed files with 3 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
export class OrganizationUpdateRequest { export class OrganizationUpdateRequest {
name: string; name: string;
identifier: string;
businessName: string; businessName: string;
billingEmail: string; billingEmail: string;
} }

View File

@@ -5,6 +5,7 @@ import { PlanType } from '../../enums/planType';
export class OrganizationResponse extends BaseResponse { export class OrganizationResponse extends BaseResponse {
id: string; id: string;
identifier: string;
name: string; name: string;
businessName: string; businessName: string;
businessAddress1: string; businessAddress1: string;
@@ -28,6 +29,7 @@ export class OrganizationResponse extends BaseResponse {
constructor(response: any) { constructor(response: any) {
super(response); super(response);
this.id = this.getResponseProperty('Id'); this.id = this.getResponseProperty('Id');
this.identifier = this.getResponseProperty('Identifier');
this.name = this.getResponseProperty('Name'); this.name = this.getResponseProperty('Name');
this.businessName = this.getResponseProperty('BusinessName'); this.businessName = this.getResponseProperty('BusinessName');
this.businessAddress1 = this.getResponseProperty('BusinessAddress1'); this.businessAddress1 = this.getResponseProperty('BusinessAddress1');