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 GuestPaymentsActionSecurity = { apiKey: string; }; export type GuestPaymentsActionRequest = { /** * The ID of the guest payment to operate on */ id: string; /** * 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; paymentActionRequest: components.PaymentActionRequest; }; export type GuestPaymentsActionResponse = { /** * 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 action was successfully applied to the pending guest payment */ paymentResponse?: components.PaymentResponse | undefined; }; /** @internal */ export declare const GuestPaymentsActionSecurity$inboundSchema: z.ZodType; /** @internal */ export type GuestPaymentsActionSecurity$Outbound = { "api-key": string; }; /** @internal */ export declare const GuestPaymentsActionSecurity$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 GuestPaymentsActionSecurity$ { /** @deprecated use `GuestPaymentsActionSecurity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsActionSecurity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsActionSecurity$Outbound` instead. */ type Outbound = GuestPaymentsActionSecurity$Outbound; } export declare function guestPaymentsActionSecurityToJSON(guestPaymentsActionSecurity: GuestPaymentsActionSecurity): string; export declare function guestPaymentsActionSecurityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GuestPaymentsActionRequest$inboundSchema: z.ZodType; /** @internal */ export type GuestPaymentsActionRequest$Outbound = { id: string; "X-Publishable-Key": string; "X-Merchant-Client-Id"?: string | undefined; "payment-action-request": components.PaymentActionRequest$Outbound; }; /** @internal */ export declare const GuestPaymentsActionRequest$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 GuestPaymentsActionRequest$ { /** @deprecated use `GuestPaymentsActionRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsActionRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsActionRequest$Outbound` instead. */ type Outbound = GuestPaymentsActionRequest$Outbound; } export declare function guestPaymentsActionRequestToJSON(guestPaymentsActionRequest: GuestPaymentsActionRequest): string; export declare function guestPaymentsActionRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GuestPaymentsActionResponse$inboundSchema: z.ZodType; /** @internal */ export type GuestPaymentsActionResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "payment-response"?: components.PaymentResponse$Outbound | undefined; }; /** @internal */ export declare const GuestPaymentsActionResponse$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 GuestPaymentsActionResponse$ { /** @deprecated use `GuestPaymentsActionResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsActionResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GuestPaymentsActionResponse$Outbound` instead. */ type Outbound = GuestPaymentsActionResponse$Outbound; } export declare function guestPaymentsActionResponseToJSON(guestPaymentsActionResponse: GuestPaymentsActionResponse): string; export declare function guestPaymentsActionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=guestpaymentsaction.d.ts.map