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"; import { MetadataOutputType, MetadataOutputType$Outbound } from "./metadataoutputtype.js"; export type DiscountPercentageRepeatDurationBase = { duration: DiscountDuration; durationInMonths: number; type: DiscountType; /** * Discount percentage in basis points. A basis point is 1/100th of a percent. For example, 1000 basis points equals a 10% discount. */ basisPoints: number; /** * Creation timestamp of the object. */ createdAt: Date; /** * Last modification timestamp of the object. */ modifiedAt: Date | null; /** * The ID of the object. */ id: string; metadata: { [k: string]: MetadataOutputType; }; /** * Name of the discount. Will be displayed to the customer when the discount is applied. */ name: string; /** * Code customers can use to apply the discount during checkout. */ code: string | null; /** * Timestamp after which the discount is redeemable. */ startsAt: Date | null; /** * Timestamp after which the discount is no longer redeemable. */ endsAt: Date | null; /** * Maximum number of times the discount can be redeemed. */ maxRedemptions: number | null; /** * Number of times the discount has been redeemed. */ redemptionsCount: number; /** * The organization ID. */ organizationId: string; }; /** @internal */ export declare const DiscountPercentageRepeatDurationBase$inboundSchema: z.ZodMiniType; /** @internal */ export type DiscountPercentageRepeatDurationBase$Outbound = { duration: string; duration_in_months: number; type: string; basis_points: number; created_at: string; modified_at: string | null; id: string; metadata: { [k: string]: MetadataOutputType$Outbound; }; name: string; code: string | null; starts_at: string | null; ends_at: string | null; max_redemptions: number | null; redemptions_count: number; organization_id: string; }; /** @internal */ export declare const DiscountPercentageRepeatDurationBase$outboundSchema: z.ZodMiniType; export declare function discountPercentageRepeatDurationBaseToJSON(discountPercentageRepeatDurationBase: DiscountPercentageRepeatDurationBase): string; export declare function discountPercentageRepeatDurationBaseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=discountpercentagerepeatdurationbase.d.ts.map