import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GuestPaymentsInitializeSecurity = { apiKey: string; }; export type GuestPaymentsInitializeRequest = { /** * The publicly shareable identifier used to identify your Bolt merchant division. */ xPublishableKey: string; /** * A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with `Bolt.state.merchantClientId` in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics. */ xMerchantClientId?: string | undefined; guestPaymentInitializeRequest: components.GuestPaymentInitializeRequest; }; export type GuestPaymentsInitializeResponse = { /** * HTTP response content type for this operation */ contentType: string; /** * HTTP response status code for this operation */ statusCode: number; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse: Response; /** * The payment was successfully initialized, and was either immediately finalized or is pending */ paymentResponse?: components.PaymentResponse | undefined; }; /** @internal */ export declare const GuestPaymentsInitializeSecurity$inboundSchema: z.ZodType; /** @internal */ export type GuestPaymentsInitializeSecurity$Outbound = { "api-key": string; }; /** @internal */ export declare const GuestPaymentsInitializeSecurity$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GuestPaymentsInitializeSecurity$ { /** @deprecated use `GuestPaymentsInitializeSecurity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsInitializeSecurity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsInitializeSecurity$Outbound` instead. */ type Outbound = GuestPaymentsInitializeSecurity$Outbound; } export declare function guestPaymentsInitializeSecurityToJSON(guestPaymentsInitializeSecurity: GuestPaymentsInitializeSecurity): string; export declare function guestPaymentsInitializeSecurityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GuestPaymentsInitializeRequest$inboundSchema: z.ZodType; /** @internal */ export type GuestPaymentsInitializeRequest$Outbound = { "X-Publishable-Key": string; "X-Merchant-Client-Id"?: string | undefined; "guest-payment-initialize-request": components.GuestPaymentInitializeRequest$Outbound; }; /** @internal */ export declare const GuestPaymentsInitializeRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GuestPaymentsInitializeRequest$ { /** @deprecated use `GuestPaymentsInitializeRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsInitializeRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsInitializeRequest$Outbound` instead. */ type Outbound = GuestPaymentsInitializeRequest$Outbound; } export declare function guestPaymentsInitializeRequestToJSON(guestPaymentsInitializeRequest: GuestPaymentsInitializeRequest): string; export declare function guestPaymentsInitializeRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GuestPaymentsInitializeResponse$inboundSchema: z.ZodType; /** @internal */ export type GuestPaymentsInitializeResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "payment-response"?: components.PaymentResponse$Outbound | undefined; }; /** @internal */ export declare const GuestPaymentsInitializeResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GuestPaymentsInitializeResponse$ { /** @deprecated use `GuestPaymentsInitializeResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsInitializeResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsInitializeResponse$Outbound` instead. */ type Outbound = GuestPaymentsInitializeResponse$Outbound; } export declare function guestPaymentsInitializeResponseToJSON(guestPaymentsInitializeResponse: GuestPaymentsInitializeResponse): string; export declare function guestPaymentsInitializeResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=guestpaymentsinitialize.d.ts.map