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 AccountAddPaymentMethodRequest = { /** * 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; paymentMethod: components.PaymentMethodInput; }; export type AccountAddPaymentMethodResponse = { /** * 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 method was successfully added */ paymentMethod?: components.PaymentMethod | undefined; }; /** @internal */ export declare const AccountAddPaymentMethodRequest$inboundSchema: z.ZodType; /** @internal */ export type AccountAddPaymentMethodRequest$Outbound = { "X-Publishable-Key": string; "X-Merchant-Client-Id"?: string | undefined; "payment-method": components.PaymentMethodInput$Outbound; }; /** @internal */ export declare const AccountAddPaymentMethodRequest$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 AccountAddPaymentMethodRequest$ { /** @deprecated use `AccountAddPaymentMethodRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountAddPaymentMethodRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountAddPaymentMethodRequest$Outbound` instead. */ type Outbound = AccountAddPaymentMethodRequest$Outbound; } export declare function accountAddPaymentMethodRequestToJSON(accountAddPaymentMethodRequest: AccountAddPaymentMethodRequest): string; export declare function accountAddPaymentMethodRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountAddPaymentMethodResponse$inboundSchema: z.ZodType; /** @internal */ export type AccountAddPaymentMethodResponse$Outbound = { ContentType: string; StatusCode: number; RawResponse: never; "payment-method"?: components.PaymentMethod$Outbound | undefined; }; /** @internal */ export declare const AccountAddPaymentMethodResponse$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 AccountAddPaymentMethodResponse$ { /** @deprecated use `AccountAddPaymentMethodResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountAddPaymentMethodResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountAddPaymentMethodResponse$Outbound` instead. */ type Outbound = AccountAddPaymentMethodResponse$Outbound; } export declare function accountAddPaymentMethodResponseToJSON(accountAddPaymentMethodResponse: AccountAddPaymentMethodResponse): string; export declare function accountAddPaymentMethodResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=accountaddpaymentmethod.d.ts.map