org seat billing api

This commit is contained in:
Kyle Spearrin 2018-07-17 12:05:19 -04:00
parent 4228277d23
commit 1cb3447bdd
3 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import { PasswordRequest } from '../models/request/passwordRequest';
import { PasswordVerificationRequest } from '../models/request/passwordVerificationRequest'; import { PasswordVerificationRequest } from '../models/request/passwordVerificationRequest';
import { PaymentRequest } from '../models/request/paymentRequest'; import { PaymentRequest } from '../models/request/paymentRequest';
import { RegisterRequest } from '../models/request/registerRequest'; import { RegisterRequest } from '../models/request/registerRequest';
import { SeatRequest } from '../models/request/seatRequest';
import { StorageRequest } from '../models/request/storageRequest'; import { StorageRequest } from '../models/request/storageRequest';
import { TokenRequest } from '../models/request/tokenRequest'; import { TokenRequest } from '../models/request/tokenRequest';
import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest'; import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest';
@ -202,6 +203,7 @@ export abstract class ApiService {
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>; putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
postLeaveOrganization: (id: string) => Promise<any>; postLeaveOrganization: (id: string) => Promise<any>;
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>; postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
postOrganizationSeat: (id: string, request: SeatRequest) => Promise<any>;
postOrganizationStorage: (id: string, request: StorageRequest) => Promise<any>; postOrganizationStorage: (id: string, request: StorageRequest) => Promise<any>;
postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>; postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>;
postOrganizationVerifyBank: (id: string, request: VerifyBankRequest) => Promise<any>; postOrganizationVerifyBank: (id: string, request: VerifyBankRequest) => Promise<any>;

View File

@ -0,0 +1,3 @@
export class SeatRequest {
seatAdjustment: number;
}

View File

@ -34,6 +34,7 @@ import { PasswordRequest } from '../models/request/passwordRequest';
import { PasswordVerificationRequest } from '../models/request/passwordVerificationRequest'; import { PasswordVerificationRequest } from '../models/request/passwordVerificationRequest';
import { PaymentRequest } from '../models/request/paymentRequest'; import { PaymentRequest } from '../models/request/paymentRequest';
import { RegisterRequest } from '../models/request/registerRequest'; import { RegisterRequest } from '../models/request/registerRequest';
import { SeatRequest } from '../models/request/seatRequest';
import { StorageRequest } from '../models/request/storageRequest'; import { StorageRequest } from '../models/request/storageRequest';
import { TokenRequest } from '../models/request/tokenRequest'; import { TokenRequest } from '../models/request/tokenRequest';
import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest'; import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest';
@ -663,6 +664,10 @@ export class ApiService implements ApiServiceAbstraction {
return new OrganizationResponse(r); 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> { postOrganizationStorage(id: string, request: StorageRequest): Promise<any> {
return this.send('POST', '/organizations/' + id + '/storage', request, true, false); return this.send('POST', '/organizations/' + id + '/storage', request, true, false);
} }