mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
org seat billing api
This commit is contained in:
parent
4228277d23
commit
1cb3447bdd
@ -28,6 +28,7 @@ import { PasswordRequest } from '../models/request/passwordRequest';
|
||||
import { PasswordVerificationRequest } from '../models/request/passwordVerificationRequest';
|
||||
import { PaymentRequest } from '../models/request/paymentRequest';
|
||||
import { RegisterRequest } from '../models/request/registerRequest';
|
||||
import { SeatRequest } from '../models/request/seatRequest';
|
||||
import { StorageRequest } from '../models/request/storageRequest';
|
||||
import { TokenRequest } from '../models/request/tokenRequest';
|
||||
import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest';
|
||||
@ -202,6 +203,7 @@ export abstract class ApiService {
|
||||
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
||||
postLeaveOrganization: (id: string) => Promise<any>;
|
||||
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
|
||||
postOrganizationSeat: (id: string, request: SeatRequest) => Promise<any>;
|
||||
postOrganizationStorage: (id: string, request: StorageRequest) => Promise<any>;
|
||||
postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>;
|
||||
postOrganizationVerifyBank: (id: string, request: VerifyBankRequest) => Promise<any>;
|
||||
|
3
src/models/request/seatRequest.ts
Normal file
3
src/models/request/seatRequest.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export class SeatRequest {
|
||||
seatAdjustment: number;
|
||||
}
|
@ -34,6 +34,7 @@ import { PasswordRequest } from '../models/request/passwordRequest';
|
||||
import { PasswordVerificationRequest } from '../models/request/passwordVerificationRequest';
|
||||
import { PaymentRequest } from '../models/request/paymentRequest';
|
||||
import { RegisterRequest } from '../models/request/registerRequest';
|
||||
import { SeatRequest } from '../models/request/seatRequest';
|
||||
import { StorageRequest } from '../models/request/storageRequest';
|
||||
import { TokenRequest } from '../models/request/tokenRequest';
|
||||
import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest';
|
||||
@ -663,6 +664,10 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new OrganizationResponse(r);
|
||||
}
|
||||
|
||||
postOrganizationSeat(id: string, request: SeatRequest): Promise<any> {
|
||||
return this.send('POST', '/organizations/' + id + '/seat', request, true, false);
|
||||
}
|
||||
|
||||
postOrganizationStorage(id: string, request: StorageRequest): Promise<any> {
|
||||
return this.send('POST', '/organizations/' + id + '/storage', request, true, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user