import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomerRequestEntity, CustomerRequestEntity$Outbound } from "./customerrequestentity.js"; import { CustomFieldRequestEntity, CustomFieldRequestEntity$Outbound } from "./customfieldrequestentity.js"; export type CreateCheckoutRequest = { /** * Identify and track each checkout request. */ requestId?: string | undefined; /** * The ID of the product associated with the checkout session. */ productId: string; /** * The number of units for the order. */ units?: number | undefined; /** * Prefill the checkout session with a discount code. */ discountCode?: string | undefined; /** * Customer data for checkout session. This will prefill the customer info on the checkout page. */ customer?: CustomerRequestEntity | undefined; /** * Collect additional information from your customer using custom fields. Up to 3 fields are supported. */ customFields?: Array | undefined; /** * DEPRECATED: Use `custom_fields` instead. Collect additional information from your customer using custom fields. Up to 3 fields are supported. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ customField?: Array | undefined; /** * The URL to which the user will be redirected after the checkout process is completed. */ successUrl?: string | undefined; /** * Metadata for the checkout in the form of key-value pairs */ metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const CreateCheckoutRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateCheckoutRequest$Outbound = { request_id?: string | undefined; product_id: string; units?: number | undefined; discount_code?: string | undefined; customer?: CustomerRequestEntity$Outbound | undefined; custom_fields?: Array | undefined; custom_field?: Array | undefined; success_url?: string | undefined; metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const CreateCheckoutRequest$outboundSchema: z.ZodType; export declare function createCheckoutRequestToJSON(createCheckoutRequest: CreateCheckoutRequest): string; export declare function createCheckoutRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createcheckoutrequest.d.ts.map