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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user