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>;
|
||||
|
|
|
@ -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