cloudflare
Version:
The official TypeScript library for the Cloudflare API
41 lines • 1.44 kB
text/typescript
import { APIResource } from "../../../core/resource.mjs";
import * as Shared from "../../shared.mjs";
import { APIPromise } from "../../../core/api-promise.mjs";
import { RequestOptions } from "../../../internal/request-options.mjs";
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.mts.map