import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Amount, Amount$Outbound } from "./amount.js"; export type CartDiscount = { /** * A monetary amount, i.e. a base unit amount and a supported currency. */ amount: Amount; /** * Discount code. */ code?: string | undefined; /** * Used to provide a link to additional details, such as a landing page, associated with the discount offering. */ detailsUrl?: string | undefined; }; /** @internal */ export declare const CartDiscount$inboundSchema: z.ZodType; /** @internal */ export type CartDiscount$Outbound = { amount: Amount$Outbound; code?: string | undefined; details_url?: string | undefined; }; /** @internal */ export declare const CartDiscount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CartDiscount$ { /** @deprecated use `CartDiscount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CartDiscount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CartDiscount$Outbound` instead. */ type Outbound = CartDiscount$Outbound; } export declare function cartDiscountToJSON(cartDiscount: CartDiscount): string; export declare function cartDiscountFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cartdiscount.d.ts.map