import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CheckoutAction } from "./checkout-action.js"; import { CheckoutJSONBCheckoutConfiguration } from "./checkout-jsonb-checkout-configuration.js"; import { CheckoutJSONBCheckoutPaymentProviderConfig } from "./checkout-jsonb-checkout-payment-provider-config.js"; import { CheckoutJSONBCheckoutProviderResult } from "./checkout-jsonb-checkout-provider-result.js"; import { CheckoutJSONBCheckoutResult } from "./checkout-jsonb-checkout-result.js"; import { CheckoutPaymentProvider } from "./checkout-payment-provider.js"; import { CheckoutStatus } from "./checkout-status.js"; import { PaymentAction } from "./payment-action.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { Status } from "./status.js"; export type CheckoutSessionResponse = { action?: CheckoutAction | undefined; cancelUrl?: string | undefined; cancelledAt?: Date | undefined; /** * CheckoutInvoiceID and CheckoutPaymentID are set once the apply step * * @remarks * creates the corresponding Flexprice entities (completed sessions only). */ checkoutInvoiceId?: string | undefined; checkoutPaymentId?: string | undefined; checkoutStatus?: CheckoutStatus | undefined; completedAt?: Date | undefined; configuration?: CheckoutJSONBCheckoutConfiguration | undefined; createdAt?: Date | undefined; createdBy?: string | undefined; customerId?: string | undefined; environmentId?: string | undefined; /** * ExpiresAt is required. A Temporal timer fires at this time for any * * @remarks * session still in initiated|pending, marking it expired. The caller * must create a new session after expiry (expire-and-restart model). */ expiresAt?: Date | undefined; /** * FailureReason is a human-readable string set on failed sessions. */ failureReason?: string | undefined; failureUrl?: string | undefined; id?: string | undefined; /** * IdempotencyKey is caller-supplied. It is unique only while the session * * @remarks * is active (initiated|pending). The same key may be reused once the * session reaches a terminal state (completed|failed|expired). */ idempotencyKey?: string | undefined; metadata?: { [k: string]: string; } | undefined; paymentAction?: PaymentAction | undefined; paymentProvider?: CheckoutPaymentProvider | undefined; paymentProviderConfig?: CheckoutJSONBCheckoutPaymentProviderConfig | undefined; providerResult?: CheckoutJSONBCheckoutProviderResult | undefined; result?: CheckoutJSONBCheckoutResult | undefined; status?: Status | undefined; /** * Redirect URLs sent to the payment provider. The provider redirects the * * @remarks * user browser to the appropriate URL after the payment flow completes. */ successUrl?: string | undefined; tenantId?: string | undefined; updatedAt?: Date | undefined; updatedBy?: string | undefined; }; /** @internal */ export declare const CheckoutSessionResponse$inboundSchema: z.ZodMiniType; export declare function checkoutSessionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=checkout-session-response.d.ts.map