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 PaymentsActionRequest = { /** * The ID of the 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 PaymentsActionResponse = { /** * 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 payment */ paymentResponse?: components.PaymentResponse | undefined; }; /** @internal */ export declare const PaymentsActionRequest$inboundSchema: z.ZodType; /** @internal */ export type PaymentsActionRequest$Outbound = { id: string; "X-Publishable-Key": string; "X-Merchant-Client-Id"?: string | undefined; "payment-action-request": components.PaymentActionRequest$Outbound; }; /** @internal */ export declare const PaymentsActionRequest$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 PaymentsActionRequest$ { /** @deprecated use `PaymentsActionRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PaymentsActionRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PaymentsActionRequest$Outbound` instead. */ type Outbound = PaymentsActionRequest$Outbound; } export declare function paymentsActionRequestToJSON(paymentsActionRequest: PaymentsActionRequest): string; export declare function paymentsActionRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PaymentsActionResponse$inboundSchema: z.ZodType; /** @internal */ export type PaymentsActionResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "payment-response"?: components.PaymentResponse$Outbound | undefined; }; /** @internal */ export declare const PaymentsActionResponse$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 PaymentsActionResponse$ { /** @deprecated use `PaymentsActionResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PaymentsActionResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PaymentsActionResponse$Outbound` instead. */ type Outbound = PaymentsActionResponse$Outbound; } export declare function paymentsActionResponseToJSON(paymentsActionResponse: PaymentsActionResponse): string; export declare function paymentsActionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=paymentsaction.d.ts.map