import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DiscountDuration } from "./discountduration.js"; import { DiscountType } from "./discounttype.js"; /** * Schema for a fixed amount discount that is applied once or forever. */ export type CheckoutDiscountFixedOnceForeverDuration = { duration: DiscountDuration; type: DiscountType; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ amount: number; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ currency: string; /** * Map of currency to fixed amount to discount from the total. */ amounts: { [k: string]: number; }; /** * The ID of the object. */ id: string; name: string; code: string | null; }; /** @internal */ export declare const CheckoutDiscountFixedOnceForeverDuration$inboundSchema: z.ZodMiniType; /** @internal */ export type CheckoutDiscountFixedOnceForeverDuration$Outbound = { duration: string; type: string; amount: number; currency: string; amounts: { [k: string]: number; }; id: string; name: string; code: string | null; }; /** @internal */ export declare const CheckoutDiscountFixedOnceForeverDuration$outboundSchema: z.ZodMiniType; export declare function checkoutDiscountFixedOnceForeverDurationToJSON(checkoutDiscountFixedOnceForeverDuration: CheckoutDiscountFixedOnceForeverDuration): string; export declare function checkoutDiscountFixedOnceForeverDurationFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=checkoutdiscountfixedonceforeverduration.d.ts.map