orb-billing
Version:
The official TypeScript library for the Orb API
18 lines • 767 B
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExternalLicenses = void 0;
const resource_1 = require("../../resource.js");
class ExternalLicenses extends resource_1.APIResource {
/**
* Returns usage and remaining credits for a license identified by its external
* license ID.
*
* Date range defaults to the current billing period if not specified.
*/
getUsage(externalLicenseId, query, options) {
return this._client.get(`/licenses/external_licenses/${externalLicenseId}/usage`, { query, ...options });
}
}
exports.ExternalLicenses = ExternalLicenses;
//# sourceMappingURL=external-licenses.js.map