import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { GustoEmbeddedError } from "./gustoembeddederror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type Metadata = { /** * The UUID of the existing payroll cancellation batch that already used this idempotency key. */ requestUuid?: string | undefined; }; export type PayrollBatchConflictErrorErrors = { /** * The key identifying the error source. */ errorKey?: string | undefined; /** * The error category. */ category?: string | undefined; /** * Human-readable error message. */ message?: string | undefined; metadata?: Metadata | undefined; }; /** * Error response when a payroll cancellation idempotency key has already been used by the same partner. */ export type PayrollBatchConflictErrorData = { errors?: Array | undefined; }; /** * Error response when a payroll cancellation idempotency key has already been used by the same partner. */ export declare class PayrollBatchConflictError extends GustoEmbeddedError { errors?: Array | undefined; /** The original data that was passed to this error instance. */ data$: PayrollBatchConflictErrorData; constructor(err: PayrollBatchConflictErrorData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Metadata$inboundSchema: z.ZodType; export declare function metadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PayrollBatchConflictErrorErrors$inboundSchema: z.ZodType; export declare function payrollBatchConflictErrorErrorsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PayrollBatchConflictError$inboundSchema: z.ZodType; //# sourceMappingURL=payrollbatchconflicterror.d.ts.map