import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The mode of cancellation (immediate or scheduled), default can be configured in the store billing settings. */ export declare const Mode: { readonly Immediate: "immediate"; readonly Scheduled: "scheduled"; }; /** * The mode of cancellation (immediate or scheduled), default can be configured in the store billing settings. */ export type Mode = ClosedEnum; /** * The action to execute when canceling (cancel or pause) when mode is scheduled, ignored when mode is immediate or not provided */ export declare const OnExecute: { readonly Cancel: "cancel"; readonly Pause: "pause"; }; /** * The action to execute when canceling (cancel or pause) when mode is scheduled, ignored when mode is immediate or not provided */ export type OnExecute = ClosedEnum; export type CancelSubscriptionRequestEntity = { /** * The mode of cancellation (immediate or scheduled), default can be configured in the store billing settings. */ mode?: Mode | undefined; /** * The action to execute when canceling (cancel or pause) when mode is scheduled, ignored when mode is immediate or not provided */ onExecute?: OnExecute | undefined; }; /** @internal */ export declare const Mode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Mode$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OnExecute$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OnExecute$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CancelSubscriptionRequestEntity$inboundSchema: z.ZodType; /** @internal */ export type CancelSubscriptionRequestEntity$Outbound = { mode?: string | undefined; onExecute?: string | undefined; }; /** @internal */ export declare const CancelSubscriptionRequestEntity$outboundSchema: z.ZodType; export declare function cancelSubscriptionRequestEntityToJSON(cancelSubscriptionRequestEntity: CancelSubscriptionRequestEntity): string; export declare function cancelSubscriptionRequestEntityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cancelsubscriptionrequestentity.d.ts.map