import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The action being performed on the batch. */ export declare const BatchAction: { readonly Cancel: "cancel"; }; /** * The action being performed on the batch. */ export type BatchAction = ClosedEnum; /** * The lifecycle status of the batch request itself. Terminal values are `completed` (processing finished — inspect `results` and `exclusions` for per-payroll outcomes) and `failed` (the batch crashed at the system level; can be retried). This is distinct from the per-payroll `status` returned inside `results[]`. A `completed` batch does not imply every payroll was cancelled. */ export declare const PayrollBatchStatus: { readonly Pending: "pending"; readonly Processing: "processing"; readonly Completed: "completed"; readonly Failed: "failed"; }; /** * The lifecycle status of the batch request itself. Terminal values are `completed` (processing finished — inspect `results` and `exclusions` for per-payroll outcomes) and `failed` (the batch crashed at the system level; can be retried). This is distinct from the per-payroll `status` returned inside `results[]`. A `completed` batch does not imply every payroll was cancelled. */ export type PayrollBatchStatus = ClosedEnum; /** * A payroll cancellation batch request. */ export type PayrollBatch = { /** * The unique identifier of the payroll cancellation batch. */ uuid: string; /** * The idempotency key provided when creating the batch. */ idempotencyKey: string; /** * The action being performed on the batch. */ batchAction: BatchAction; /** * The lifecycle status of the batch request itself. Terminal values are `completed` (processing finished — inspect `results` and `exclusions` for per-payroll outcomes) and `failed` (the batch crashed at the system level; can be retried). This is distinct from the per-payroll `status` returned inside `results[]`. A `completed` batch does not imply every payroll was cancelled. */ status: PayrollBatchStatus; }; /** @internal */ export declare const BatchAction$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PayrollBatchStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PayrollBatch$inboundSchema: z.ZodType; export declare function payrollBatchFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=payrollbatch.d.ts.map