import * as z from "zod/v4-mini"; import { AttachedCustomFieldCreate, AttachedCustomFieldCreate$Outbound } from "./attachedcustomfieldcreate.js"; import { ProductPriceCustomCreate, ProductPriceCustomCreate$Outbound } from "./productpricecustomcreate.js"; import { ProductPriceFixedCreate, ProductPriceFixedCreate$Outbound } from "./productpricefixedcreate.js"; import { ProductPriceFreeCreate, ProductPriceFreeCreate$Outbound } from "./productpricefreecreate.js"; import { ProductPriceMeteredUnitCreate, ProductPriceMeteredUnitCreate$Outbound } from "./productpricemeteredunitcreate.js"; import { ProductPriceSeatBasedCreate, ProductPriceSeatBasedCreate$Outbound } from "./productpriceseatbasedcreate.js"; import { ProductVisibility } from "./productvisibility.js"; export type ProductCreateOneTimeMetadata = string | number | number | boolean; export type ProductCreateOneTimePrices = ProductPriceCustomCreate | ProductPriceFixedCreate | ProductPriceFreeCreate | ProductPriceMeteredUnitCreate | ProductPriceSeatBasedCreate; export type ProductCreateOneTime = { /** * Key-value object allowing you to store additional information. * * @remarks * * The key must be a string with a maximum length of **40 characters**. * The value must be either: * * * A string with a maximum length of **500 characters** * * An integer * * A floating-point number * * A boolean * * You can store up to **50 key-value pairs**. */ metadata?: { [k: string]: string | number | number | boolean; } | undefined; /** * The name of the product. */ name: string; /** * The description of the product. */ description?: string | null | undefined; visibility?: ProductVisibility | undefined; /** * List of available prices for this product. It should contain at most one static price (fixed, custom or free), and any number of metered prices. Metered prices are not supported on one-time purchase products. */ prices: Array; /** * List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded. */ medias?: Array | null | undefined; /** * List of custom fields to attach. */ attachedCustomFields?: Array | undefined; /** * The ID of the organization owning the product. **Required unless you use an organization token.** */ organizationId?: string | null | undefined; /** * States that the product is a one-time purchase. */ recurringInterval?: any | null | undefined; /** * One-time products don't have a recurring interval count. */ recurringIntervalCount?: any | null | undefined; }; /** @internal */ export type ProductCreateOneTimeMetadata$Outbound = string | number | number | boolean; /** @internal */ export declare const ProductCreateOneTimeMetadata$outboundSchema: z.ZodMiniType; export declare function productCreateOneTimeMetadataToJSON(productCreateOneTimeMetadata: ProductCreateOneTimeMetadata): string; /** @internal */ export type ProductCreateOneTimePrices$Outbound = ProductPriceCustomCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceFreeCreate$Outbound | ProductPriceMeteredUnitCreate$Outbound | ProductPriceSeatBasedCreate$Outbound; /** @internal */ export declare const ProductCreateOneTimePrices$outboundSchema: z.ZodMiniType; export declare function productCreateOneTimePricesToJSON(productCreateOneTimePrices: ProductCreateOneTimePrices): string; /** @internal */ export type ProductCreateOneTime$Outbound = { metadata?: { [k: string]: string | number | number | boolean; } | undefined; name: string; description?: string | null | undefined; visibility?: string | undefined; prices: Array; medias?: Array | null | undefined; attached_custom_fields?: Array | undefined; organization_id?: string | null | undefined; recurring_interval?: any | null | undefined; recurring_interval_count?: any | null | undefined; }; /** @internal */ export declare const ProductCreateOneTime$outboundSchema: z.ZodMiniType; export declare function productCreateOneTimeToJSON(productCreateOneTime: ProductCreateOneTime): string; //# sourceMappingURL=productcreateonetime.d.ts.map