mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
add support for org identifier to api models (#149)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
export class OrganizationUpdateRequest {
|
export class OrganizationUpdateRequest {
|
||||||
name: string;
|
name: string;
|
||||||
|
identifier: string;
|
||||||
businessName: string;
|
businessName: string;
|
||||||
billingEmail: string;
|
billingEmail: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user