import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * An object representing a discount applied to an ecommerce order or product. */ export type EcommerceDiscount = { /** * The code used to apply the discount. */ code?: string | null | undefined; /** * The fixed amount of the discount. */ amount?: string | null | undefined; /** * The percentage of the discount. */ percentage?: string | null | undefined; }; /** @internal */ export declare const EcommerceDiscount$inboundSchema: z.ZodType; /** @internal */ export type EcommerceDiscount$Outbound = { code?: string | null | undefined; amount?: string | null | undefined; percentage?: string | null | undefined; }; /** @internal */ export declare const EcommerceDiscount$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 EcommerceDiscount$ { /** @deprecated use `EcommerceDiscount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceDiscount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceDiscount$Outbound` instead. */ type Outbound = EcommerceDiscount$Outbound; } export declare function ecommerceDiscountToJSON(ecommerceDiscount: EcommerceDiscount): string; export declare function ecommerceDiscountFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=ecommercediscount.d.ts.map