UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

20 lines 848 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; import { SinglePage } from 'cloudflare/pagination'; export class Plans extends APIResource { /** * Lists available plans the zone can subscribe to. */ list(zoneIdentifier, options) { return this._client.getAPIList(`/zones/${zoneIdentifier}/available_plans`, AvailableRatePlansSinglePage, options); } /** * Details of the available plan that the zone can subscribe to. */ get(zoneIdentifier, planIdentifier, options) { return this._client.get(`/zones/${zoneIdentifier}/available_plans/${planIdentifier}`, options)._thenUnwrap((obj) => obj.result); } } export class AvailableRatePlansSinglePage extends SinglePage { } //# sourceMappingURL=plans.mjs.map