diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index 15dde2ac27..425e5cb075 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -197,6 +197,7 @@ export abstract class ApiService { getOrganization: (id: string) => Promise; getOrganizationBilling: (id: string) => Promise; + getOrganizationLicense: (id: string, installationId: string) => Promise; postOrganization: (request: OrganizationCreateRequest) => Promise; putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise; postLeaveOrganization: (id: string) => Promise; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 75720dc353..749073f743 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -639,6 +639,11 @@ export class ApiService implements ApiServiceAbstraction { return new OrganizationBillingResponse(r); } + async getOrganizationLicense(id: string, installationId: string): Promise { + return this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId, + null, true, true); + } + async postOrganization(request: OrganizationCreateRequest): Promise { const r = await this.send('POST', '/organizations', request, true, true); return new OrganizationResponse(r);