get org license apis

This commit is contained in:
Kyle Spearrin 2018-07-17 11:25:15 -04:00
parent 9c0b4b8973
commit 4228277d23
2 changed files with 6 additions and 0 deletions

View File

@ -197,6 +197,7 @@ export abstract class ApiService {
getOrganization: (id: string) => Promise<OrganizationResponse>;
getOrganizationBilling: (id: string) => Promise<OrganizationBillingResponse>;
getOrganizationLicense: (id: string, installationId: string) => Promise<any>;
postOrganization: (request: OrganizationCreateRequest) => Promise<OrganizationResponse>;
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
postLeaveOrganization: (id: string) => Promise<any>;

View File

@ -639,6 +639,11 @@ export class ApiService implements ApiServiceAbstraction {
return new OrganizationBillingResponse(r);
}
async getOrganizationLicense(id: string, installationId: string): Promise<any> {
return this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId,
null, true, true);
}
async postOrganization(request: OrganizationCreateRequest): Promise<OrganizationResponse> {
const r = await this.send('POST', '/organizations', request, true, true);
return new OrganizationResponse(r);