import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomerEntity, CustomerEntity$Outbound } from "./customerentity.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { EnvironmentMode } from "./environmentmode.js"; import { LicenseEntity, LicenseEntity$Outbound } from "./licenseentity.js"; import { OrderEntity, OrderEntity$Outbound } from "./orderentity.js"; import { ProductEntity, ProductEntity$Outbound } from "./productentity.js"; import { ProductFeatureEntity, ProductFeatureEntity$Outbound } from "./productfeatureentity.js"; import { SubscriptionEntity, SubscriptionEntity$Outbound } from "./subscriptionentity.js"; /** * Status of the checkout. */ export declare const Status: { readonly Pending: "pending"; readonly Processing: "processing"; readonly Completed: "completed"; readonly Expired: "expired"; }; /** * Status of the checkout. */ export type Status = ClosedEnum; /** * The product associated with the checkout session. */ export type CheckoutEntityProduct = ProductEntity | string; /** * The subscription associated with the checkout session. */ export type Subscription = SubscriptionEntity | string; /** * The customer associated with the checkout session. */ export type CheckoutEntityCustomer = CustomerEntity | string; export type CheckoutEntity = { /** * Unique identifier for the object. */ id: string; /** * String representing the environment. */ mode: EnvironmentMode; /** * String representing the object's type. Objects of the same type share the same value. */ object: string; /** * Status of the checkout. */ status: Status; /** * Identify and track each checkout request. */ requestId?: string | undefined; /** * The product associated with the checkout session. */ product: ProductEntity | string; /** * The number of units for the of the product. */ units?: number | undefined; /** * The order associated with the checkout session. */ order?: OrderEntity | undefined; /** * The subscription associated with the checkout session. */ subscription?: SubscriptionEntity | string | undefined; /** * The customer associated with the checkout session. */ customer?: CustomerEntity | string | undefined; /** * Additional information collected from your customer during the checkout process. */ customFields?: Array | undefined; /** * The URL to which the customer will be redirected to complete the payment. */ checkoutUrl?: string | undefined; /** * The URL to which the user will be redirected after the checkout process is completed. */ successUrl?: string | null | undefined; /** * License keys issued for the order. */ licenseKeys?: Array | undefined; /** * DEPRECATED: Use `license_keys` instead. Features issued for the order. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ feature?: Array | undefined; /** * Metadata for the checkout in the form of key-value pairs */ metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const Status$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Status$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CheckoutEntityProduct$inboundSchema: z.ZodType; /** @internal */ export type CheckoutEntityProduct$Outbound = ProductEntity$Outbound | string; /** @internal */ export declare const CheckoutEntityProduct$outboundSchema: z.ZodType; export declare function checkoutEntityProductToJSON(checkoutEntityProduct: CheckoutEntityProduct): string; export declare function checkoutEntityProductFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Subscription$inboundSchema: z.ZodType; /** @internal */ export type Subscription$Outbound = SubscriptionEntity$Outbound | string; /** @internal */ export declare const Subscription$outboundSchema: z.ZodType; export declare function subscriptionToJSON(subscription: Subscription): string; export declare function subscriptionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CheckoutEntityCustomer$inboundSchema: z.ZodType; /** @internal */ export type CheckoutEntityCustomer$Outbound = CustomerEntity$Outbound | string; /** @internal */ export declare const CheckoutEntityCustomer$outboundSchema: z.ZodType; export declare function checkoutEntityCustomerToJSON(checkoutEntityCustomer: CheckoutEntityCustomer): string; export declare function checkoutEntityCustomerFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CheckoutEntity$inboundSchema: z.ZodType; /** @internal */ export type CheckoutEntity$Outbound = { id: string; mode: string; object: string; status: string; request_id?: string | undefined; product: ProductEntity$Outbound | string; units: number; order?: OrderEntity$Outbound | undefined; subscription?: SubscriptionEntity$Outbound | string | undefined; customer?: CustomerEntity$Outbound | string | undefined; custom_fields?: Array | undefined; checkout_url?: string | undefined; success_url?: string | null | undefined; license_keys?: Array | undefined; feature?: Array | undefined; metadata?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const CheckoutEntity$outboundSchema: z.ZodType; export declare function checkoutEntityToJSON(checkoutEntity: CheckoutEntity): string; export declare function checkoutEntityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=checkoutentity.d.ts.map