import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { HTTPMetadata } from "../components/httpmetadata.js"; import { PayrollBatch } from "../components/payrollbatch.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PostV1PayrollBatchesSecurity = { systemAccessAuth: string; }; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export declare const PostV1PayrollBatchesHeaderXGustoAPIVersion: { readonly TwoThousandAndTwentyFiveMinus06Minus15: "2025-06-15"; }; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export type PostV1PayrollBatchesHeaderXGustoAPIVersion = ClosedEnum; /** * The action to perform on the batch. Only `cancel` is supported. */ export declare const BatchAction: { readonly Cancel: "cancel"; }; /** * The action to perform on the batch. Only `cancel` is supported. */ export type BatchAction = ClosedEnum; /** * The type of entity to act on. */ export declare const EntityType: { readonly Payroll: "payroll"; }; /** * The type of entity to act on. */ export type EntityType = ClosedEnum; export type Batch = { /** * The type of entity to act on. */ entityType: EntityType; /** * The UUID of the payroll to cancel. Payrolls the partner is not authorized to access, or that do not exist, appear in the response's `exclusions` array. */ uuid: string; /** * The UUID of the company that owns the payroll. The partner must be mapped to this company. */ companyUuid: string; }; export type PostV1PayrollBatchesRequestBody = { /** * A partner-generated unique identifier to ensure idempotency of the batch request. Scoped per partner. */ idempotencyKey: string; /** * The action to perform on the batch. Only `cancel` is supported. */ batchAction: BatchAction; /** * Array of payrolls to cancel. Maximum 100 payrolls per request. */ batch: Array; }; export type PostV1PayrollBatchesRequest = { /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ xGustoAPIVersion?: PostV1PayrollBatchesHeaderXGustoAPIVersion | undefined; requestBody: PostV1PayrollBatchesRequestBody; }; export type PostV1PayrollBatchesResponse = { httpMeta: HTTPMetadata; /** * created */ payrollBatch?: PayrollBatch | undefined; }; /** @internal */ export type PostV1PayrollBatchesSecurity$Outbound = { SystemAccessAuth: string; }; /** @internal */ export declare const PostV1PayrollBatchesSecurity$outboundSchema: z.ZodType; export declare function postV1PayrollBatchesSecurityToJSON(postV1PayrollBatchesSecurity: PostV1PayrollBatchesSecurity): string; /** @internal */ export declare const PostV1PayrollBatchesHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const BatchAction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EntityType$outboundSchema: z.ZodNativeEnum; /** @internal */ export type Batch$Outbound = { entity_type: string; uuid: string; company_uuid: string; }; /** @internal */ export declare const Batch$outboundSchema: z.ZodType; export declare function batchToJSON(batch: Batch): string; /** @internal */ export type PostV1PayrollBatchesRequestBody$Outbound = { idempotency_key: string; batch_action: string; batch: Array; }; /** @internal */ export declare const PostV1PayrollBatchesRequestBody$outboundSchema: z.ZodType; export declare function postV1PayrollBatchesRequestBodyToJSON(postV1PayrollBatchesRequestBody: PostV1PayrollBatchesRequestBody): string; /** @internal */ export type PostV1PayrollBatchesRequest$Outbound = { "X-Gusto-API-Version": string; RequestBody: PostV1PayrollBatchesRequestBody$Outbound; }; /** @internal */ export declare const PostV1PayrollBatchesRequest$outboundSchema: z.ZodType; export declare function postV1PayrollBatchesRequestToJSON(postV1PayrollBatchesRequest: PostV1PayrollBatchesRequest): string; /** @internal */ export declare const PostV1PayrollBatchesResponse$inboundSchema: z.ZodType; export declare function postV1PayrollBatchesResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postv1payrollbatches.d.ts.map