import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Airline } from "./airline.js"; import { CartItem } from "./cartitem.js"; import { CheckoutSessionPaymentMethod } from "./checkoutsessionpaymentmethod.js"; import { GuestBuyer } from "./guestbuyer.js"; export type CheckoutSession = { /** * An array of cart items that represents the line items of a transaction. */ cartItems?: Array | null | undefined; /** * Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it. */ metadata?: { [k: string]: string; } | null | undefined; /** * Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used. */ buyer?: GuestBuyer | null | undefined; /** * The airline addendum data which describes the airline booking associated with this transaction. */ airline?: Airline | null | undefined; /** * The total amount for this transaction. */ amount?: number | null | undefined; /** * The currency code for this transaction. */ currency?: string | null | undefined; /** * The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped. */ paymentServiceId?: string | null | undefined; /** * Always `checkout-session` */ type: "checkout-session"; /** * The ID for the checkout session. */ id: string; /** * The date and time when this checkout session expires. */ expiresAt: Date; /** * Information about the payment method stored on the checkout session. */ paymentMethod?: CheckoutSessionPaymentMethod | null | undefined; }; /** @internal */ export declare const CheckoutSession$inboundSchema: z.ZodType; export declare function checkoutSessionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=checkoutsession.d.ts.map