1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

org update license api

This commit is contained in:
Kyle Spearrin 2018-07-17 22:50:04 -04:00
parent f35ecf0cd8
commit 493770510f
2 changed files with 5 additions and 0 deletions

View File

@ -205,6 +205,7 @@ export abstract class ApiService {
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
postLeaveOrganization: (id: string) => Promise<any>;
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
postOrganizationLicenseUpdate: (id: string, data: FormData) => Promise<any>
postOrganizationSeat: (id: string, request: SeatRequest) => Promise<any>;
postOrganizationStorage: (id: string, request: StorageRequest) => Promise<any>;
postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>;

View File

@ -669,6 +669,10 @@ export class ApiService implements ApiServiceAbstraction {
return new OrganizationResponse(r);
}
async postOrganizationLicenseUpdate(id: string, data: FormData): Promise<any> {
return this.send('POST', '/organizations/' + id + '/license', data, true, false);
}
postOrganizationSeat(id: string, request: SeatRequest): Promise<any> {
return this.send('POST', '/organizations/' + id + '/seat', request, true, false);
}