import * as z from "zod/v4-mini"; export type OrderCreateCustomFieldData = string | number | boolean | Date; export type OrderCreateMetadata = string | number | number | boolean; /** * Schema to create a draft order for an off-session charge. */ export type OrderCreate = { /** * Key-value object storing custom field values. */ customFieldData?: { [k: string]: string | number | boolean | Date | null; } | undefined; /** * 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 ID of the organization the order belongs to. **Required unless you use an organization token.** The customer and product must belong to this organization. */ organizationId?: string | null | undefined; /** * The ID of the customer the order is for. Must belong to the order's organization. */ customerId: string; /** * The ID of the one-time product to charge for. Must belong to the order's organization. Only fixed-price and free products are supported. */ productId: string; /** * The currency to charge in (ISO 4217, lowercase, e.g. `usd`). Defaults to the organization's default currency; specify it to force a different one, or when the product isn't priced in the organization's default currency. */ currency?: string | null | undefined; /** * A custom amount to charge, in the smallest currency unit. Overrides the product's price; defaults to the product's configured price (0 for free products). A positive amount must be at least the currency's minimum. */ amount?: number | null | undefined; /** * A custom description for the order's line item, shown on the invoice and receipt (e.g. `5,000 tokens`). Defaults to the product name. */ description?: string | null | undefined; }; /** @internal */ export type OrderCreateCustomFieldData$Outbound = string | number | boolean | string; /** @internal */ export declare const OrderCreateCustomFieldData$outboundSchema: z.ZodMiniType; export declare function orderCreateCustomFieldDataToJSON(orderCreateCustomFieldData: OrderCreateCustomFieldData): string; /** @internal */ export type OrderCreateMetadata$Outbound = string | number | number | boolean; /** @internal */ export declare const OrderCreateMetadata$outboundSchema: z.ZodMiniType; export declare function orderCreateMetadataToJSON(orderCreateMetadata: OrderCreateMetadata): string; /** @internal */ export type OrderCreate$Outbound = { custom_field_data?: { [k: string]: string | number | boolean | string | null; } | undefined; metadata?: { [k: string]: string | number | number | boolean; } | undefined; organization_id?: string | null | undefined; customer_id: string; product_id: string; currency?: string | null | undefined; amount?: number | null | undefined; description?: string | null | undefined; }; /** @internal */ export declare const OrderCreate$outboundSchema: z.ZodMiniType; export declare function orderCreateToJSON(orderCreate: OrderCreate): string; //# sourceMappingURL=ordercreate.d.ts.map