org billing apis
This commit is contained in:
parent
4be7c6aa4c
commit
9c0b4b8973
|
@ -40,6 +40,7 @@ import { UpdateTwoFactorDuoRequest } from '../models/request/updateTwoFactorDuoR
|
||||||
import { UpdateTwoFactorEmailRequest } from '../models/request/updateTwoFactorEmailRequest';
|
import { UpdateTwoFactorEmailRequest } from '../models/request/updateTwoFactorEmailRequest';
|
||||||
import { UpdateTwoFactorU2fRequest } from '../models/request/updateTwoFactorU2fRequest';
|
import { UpdateTwoFactorU2fRequest } from '../models/request/updateTwoFactorU2fRequest';
|
||||||
import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFactorYubioOtpRequest';
|
import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFactorYubioOtpRequest';
|
||||||
|
import { VerifyBankRequest } from '../models/request/verifyBankRequest';
|
||||||
import { VerifyDeleteRecoverRequest } from '../models/request/verifyDeleteRecoverRequest';
|
import { VerifyDeleteRecoverRequest } from '../models/request/verifyDeleteRecoverRequest';
|
||||||
import { VerifyEmailRequest } from '../models/request/verifyEmailRequest';
|
import { VerifyEmailRequest } from '../models/request/verifyEmailRequest';
|
||||||
|
|
||||||
|
@ -202,6 +203,9 @@ export abstract class ApiService {
|
||||||
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
|
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
|
||||||
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>;
|
||||||
|
postOrganizationCancel: (id: string) => Promise<any>;
|
||||||
|
postOrganizationReinstate: (id: string) => Promise<any>;
|
||||||
deleteOrganization: (id: string, request: PasswordVerificationRequest) => Promise<any>;
|
deleteOrganization: (id: string, request: PasswordVerificationRequest) => Promise<any>;
|
||||||
|
|
||||||
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
export class VerifyBankRequest {
|
||||||
|
amount1: number;
|
||||||
|
amount2: number;
|
||||||
|
}
|
|
@ -46,6 +46,7 @@ import { UpdateTwoFactorDuoRequest } from '../models/request/updateTwoFactorDuoR
|
||||||
import { UpdateTwoFactorEmailRequest } from '../models/request/updateTwoFactorEmailRequest';
|
import { UpdateTwoFactorEmailRequest } from '../models/request/updateTwoFactorEmailRequest';
|
||||||
import { UpdateTwoFactorU2fRequest } from '../models/request/updateTwoFactorU2fRequest';
|
import { UpdateTwoFactorU2fRequest } from '../models/request/updateTwoFactorU2fRequest';
|
||||||
import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFactorYubioOtpRequest';
|
import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFactorYubioOtpRequest';
|
||||||
|
import { VerifyBankRequest } from '../models/request/verifyBankRequest';
|
||||||
import { VerifyDeleteRecoverRequest } from '../models/request/verifyDeleteRecoverRequest';
|
import { VerifyDeleteRecoverRequest } from '../models/request/verifyDeleteRecoverRequest';
|
||||||
import { VerifyEmailRequest } from '../models/request/verifyEmailRequest';
|
import { VerifyEmailRequest } from '../models/request/verifyEmailRequest';
|
||||||
|
|
||||||
|
@ -665,6 +666,18 @@ export class ApiService implements ApiServiceAbstraction {
|
||||||
return this.send('POST', '/organizations/' + id + '/payment', request, true, false);
|
return this.send('POST', '/organizations/' + id + '/payment', request, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
postOrganizationVerifyBank(id: string, request: VerifyBankRequest): Promise<any> {
|
||||||
|
return this.send('POST', '/organizations/' + id + '/verify-bank', request, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
postOrganizationCancel(id: string): Promise<any> {
|
||||||
|
return this.send('POST', '/organizations/' + id + '/cancel', null, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
postOrganizationReinstate(id: string): Promise<any> {
|
||||||
|
return this.send('POST', '/organizations/' + id + '/reinstate', null, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
deleteOrganization(id: string, request: PasswordVerificationRequest): Promise<any> {
|
deleteOrganization(id: string, request: PasswordVerificationRequest): Promise<any> {
|
||||||
return this.send('DELETE', '/organizations/' + id, request, true, false);
|
return this.send('DELETE', '/organizations/' + id, request, true, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue