import * as z from "zod"; /** * The type of error returned */ export declare enum SchemasCreditCardErrorTag { Declined = "declined", DeclinedInvalidAmount = "declined_invalid_amount", DeclinedInvalidCvv = "declined_invalid_cvv", DeclinedInvalidMerchant = "declined_invalid_merchant", DeclinedInvalidNumber = "declined_invalid_number", DeclinedExpired = "declined_expired", DeclinedCallIssuer = "declined_call_issuer", DeclinedUnsupported = "declined_unsupported" } export type CreditCardErrorData = { /** * The type of error returned */ dotTag: SchemasCreditCardErrorTag; /** * A human-readable error message, which might include information specific to the request that was made. */ message: string; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; }; export declare class CreditCardError extends Error { /** * The type of error returned */ dotTag: SchemasCreditCardErrorTag; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; /** The original data that was passed to this error instance. */ data$: CreditCardErrorData; constructor(err: CreditCardErrorData); } /** @internal */ export declare const SchemasCreditCardErrorTag$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SchemasCreditCardErrorTag$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SchemasCreditCardErrorTag$ { /** @deprecated use `SchemasCreditCardErrorTag$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `SchemasCreditCardErrorTag$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const CreditCardError$inboundSchema: z.ZodType; /** @internal */ export type CreditCardError$Outbound = { ".tag": string; message: string; RawResponse?: never | undefined; }; /** @internal */ export declare const CreditCardError$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 CreditCardError$ { /** @deprecated use `CreditCardError$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreditCardError$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreditCardError$Outbound` instead. */ type Outbound = CreditCardError$Outbound; } //# sourceMappingURL=creditcarderror.d.ts.map