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 PaymentsInitializeRequest = { /** * 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; paymentInitializeRequest: components.PaymentInitializeRequest; }; export type PaymentsInitializeResponse = { /** * 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 PaymentsInitializeRequest$inboundSchema: z.ZodType; /** @internal */ export type PaymentsInitializeRequest$Outbound = { "X-Publishable-Key": string; "X-Merchant-Client-Id"?: string | undefined; "payment-initialize-request": components.PaymentInitializeRequest$Outbound; }; /** @internal */ export declare const PaymentsInitializeRequest$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 PaymentsInitializeRequest$ { /** @deprecated use `PaymentsInitializeRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PaymentsInitializeRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PaymentsInitializeRequest$Outbound` instead. */ type Outbound = PaymentsInitializeRequest$Outbound; } export declare function paymentsInitializeRequestToJSON(paymentsInitializeRequest: PaymentsInitializeRequest): string; export declare function paymentsInitializeRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PaymentsInitializeResponse$inboundSchema: z.ZodType; /** @internal */ export type PaymentsInitializeResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "payment-response"?: components.PaymentResponse$Outbound | undefined; }; /** @internal */ export declare const PaymentsInitializeResponse$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 PaymentsInitializeResponse$ { /** @deprecated use `PaymentsInitializeResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PaymentsInitializeResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PaymentsInitializeResponse$Outbound` instead. */ type Outbound = PaymentsInitializeResponse$Outbound; } export declare function paymentsInitializeResponseToJSON(paymentsInitializeResponse: PaymentsInitializeResponse): string; export declare function paymentsInitializeResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=paymentsinitialize.d.ts.map