1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-27 05:33:59 +00:00

[PM-18870] Convert Organization to Business Unit (#14131)

* Add setupBusinessUnit to OrganizationBillingApiService

* Add setup-business-unit.component

* Updated designs and cleanup work

* Update existing logos for Provider Portal and Admin Console

* Fix broken test
This commit is contained in:
Alex Morask
2025-04-10 10:06:23 -04:00
committed by GitHub
parent 5a1b0744f0
commit eea0bb6d6e
23 changed files with 380 additions and 27 deletions

View File

@@ -49,4 +49,24 @@ export class OrganizationBillingApiService implements OrganizationBillingApiServ
);
return r?.map((i: any) => new BillingTransactionResponse(i)) || [];
}
async setupBusinessUnit(
id: string,
request: {
userId: string;
token: string;
providerKey: string;
organizationKey: string;
},
): Promise<string> {
const response = await this.apiService.send(
"POST",
`/organizations/${id}/billing/setup-business-unit`,
request,
true,
true,
);
return response as string;
}
}