UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

41 lines • 1.43 kB
import { APIResource } from "../../../core/resource.js"; import * as Shared from "../../shared.js"; import { APIPromise } from "../../../core/api-promise.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class BaseActions extends APIResource { static readonly _key: readonly ['accounts', 'subscriptions', 'actions']; /** * Smartly applies the incoming subscription into the lifecycle of the * subscription. * * @example * ```ts * const subscription = * await client.accounts.subscriptions.actions.append( * '506e3185e9c882d175a2d0cb0093d9f2', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ append(subscriptionIdentifier: string, params: ActionAppendParams, options?: RequestOptions): APIPromise<Shared.Subscription>; } export declare class Actions extends BaseActions { } export interface ActionAppendParams { /** * Path param: Identifier */ account_id: string; /** * Body param: How often the subscription is renewed automatically. */ frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly'; /** * Body param: The rate plan applied to the subscription. */ rate_plan?: Shared.RatePlanParam; } export declare namespace Actions { export { type ActionAppendParams as ActionAppendParams }; } //# sourceMappingURL=actions.d.ts.map