import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ProductPriceSource } from "./productpricesource.js"; import { TaxBehaviorOption } from "./taxbehavioroption.js"; /** * A pay-what-you-want price for a product. */ export type ProductPriceCustom = { /** * Creation timestamp of the object. */ createdAt: Date; /** * Last modification timestamp of the object. */ modifiedAt: Date | null; /** * The ID of the price. */ id: string; source: ProductPriceSource; amountType: "custom"; /** * The currency in which the customer will be charged. */ priceCurrency: string; /** * The tax behavior of the price. If null, it defaults to the organization's default tax behavior. */ taxBehavior: TaxBehaviorOption | null; /** * Whether the price is archived and no longer available. */ isArchived: boolean; /** * The ID of the product owning the price. */ productId: string; /** * The minimum amount the customer can pay. If 0, the price is 'free or pay what you want'. */ minimumAmount: number; /** * The maximum amount the customer can pay. */ maximumAmount: number | null; /** * The initial amount shown to the customer. */ presetAmount: number | null; }; /** @internal */ export declare const ProductPriceCustom$inboundSchema: z.ZodMiniType; /** @internal */ export type ProductPriceCustom$Outbound = { created_at: string; modified_at: string | null; id: string; source: string; amount_type: "custom"; price_currency: string; tax_behavior: string | null; is_archived: boolean; product_id: string; minimum_amount: number; maximum_amount: number | null; preset_amount: number | null; }; /** @internal */ export declare const ProductPriceCustom$outboundSchema: z.ZodMiniType; export declare function productPriceCustomToJSON(productPriceCustom: ProductPriceCustom): string; export declare function productPriceCustomFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=productpricecustom.d.ts.map