@starsched/sdk
Version:
ABA clinic control and management service API SDK
21 lines (20 loc) • 525 B
JavaScript
export class CompaniesPlan {
httpClient;
constructor(httpClient) {
this.httpClient = httpClient;
}
async get(input, options) {
const { company_id } = input;
const response = await this.httpClient.get(`/v1/companies/${company_id}/plan`, { ...options });
if (!response.ok) {
return {
data: null,
error: response.body
};
}
return {
data: response.body,
error: null
};
}
}