import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { HTTPMetadata } from "../components/httpmetadata.js"; import { PayrollUnprocessed } from "../components/payroll.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * 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 PostV1CompaniesCompanyIdPayrollsHeaderXGustoAPIVersion: { 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 PostV1CompaniesCompanyIdPayrollsHeaderXGustoAPIVersion = ClosedEnum; /** * An off cycle payroll reason. Select one from the following list. */ export declare const OffCycleReason: { readonly Bonus: "Bonus"; readonly Correction: "Correction"; readonly Adhoc: "Adhoc"; readonly DismissedEmployee: "Dismissed employee"; readonly TransitionFromOldPaySchedule: "Transition from old pay schedule"; }; /** * An off cycle payroll reason. Select one from the following list. */ export type OffCycleReason = ClosedEnum; /** * The payment schedule tax rate the payroll is based on. */ export declare const WithholdingPayPeriod: { readonly EveryWeek: "Every week"; readonly EveryOtherWeek: "Every other week"; readonly TwicePerMonth: "Twice per month"; readonly Monthly: "Monthly"; readonly Quarterly: "Quarterly"; readonly Semiannually: "Semiannually"; readonly Annually: "Annually"; }; /** * The payment schedule tax rate the payroll is based on. */ export type WithholdingPayPeriod = ClosedEnum; export type PostV1CompaniesCompanyIdPayrollsRequestBody = { /** * Whether it is an off cycle payroll. */ offCycle: boolean; /** * An off cycle payroll reason. Select one from the following list. */ offCycleReason: OffCycleReason; /** * Pay period start date. */ startDate: RFCDate; /** * Pay period end date. */ endDate: RFCDate; /** * A pay schedule is required for transition from old pay schedule payroll to identify the matching transition pay period. */ payScheduleUuid?: string | undefined; /** * A list of employee uuids to include on the payroll. */ employeeUuids?: Array | null | undefined; /** * Payment date. */ checkDate?: RFCDate | undefined; /** * The payment schedule tax rate the payroll is based on. */ withholdingPayPeriod?: WithholdingPayPeriod | undefined; /** * Block regular deductions and contributions for this payroll. */ skipRegularDeductions?: boolean | undefined; /** * Enable taxes to be withheld at the IRS's required rate of 22% for federal income taxes. State income taxes will be taxed at the state's supplemental tax rate. Otherwise, we'll sum the entirety of the employee's wages and withhold taxes on the entire amount at the rate for regular wages. */ fixedWithholdingRate?: boolean | undefined; /** * When true, all employees in the payroll will be paid by check and the check date can be set to today or any future business day (rather than requiring ACH lead time). Payment methods cannot be changed on check-only payrolls. */ isCheckOnlyPayroll?: boolean | undefined; }; export type PostV1CompaniesCompanyIdPayrollsRequest = { /** * 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?: PostV1CompaniesCompanyIdPayrollsHeaderXGustoAPIVersion | undefined; /** * The UUID of the company */ companyId: string; requestBody?: PostV1CompaniesCompanyIdPayrollsRequestBody | undefined; }; export type PostV1CompaniesCompanyIdPayrollsResponse = { httpMeta: HTTPMetadata; /** * Successful */ payrollUnprocessed?: PayrollUnprocessed | undefined; }; /** @internal */ export declare const PostV1CompaniesCompanyIdPayrollsHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OffCycleReason$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const WithholdingPayPeriod$outboundSchema: z.ZodNativeEnum; /** @internal */ export type PostV1CompaniesCompanyIdPayrollsRequestBody$Outbound = { off_cycle: boolean; off_cycle_reason: string; start_date: string; end_date: string; pay_schedule_uuid?: string | undefined; employee_uuids?: Array | null | undefined; check_date?: string | undefined; withholding_pay_period?: string | undefined; skip_regular_deductions?: boolean | undefined; fixed_withholding_rate?: boolean | undefined; is_check_only_payroll?: boolean | undefined; }; /** @internal */ export declare const PostV1CompaniesCompanyIdPayrollsRequestBody$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdPayrollsRequestBodyToJSON(postV1CompaniesCompanyIdPayrollsRequestBody: PostV1CompaniesCompanyIdPayrollsRequestBody): string; /** @internal */ export type PostV1CompaniesCompanyIdPayrollsRequest$Outbound = { "X-Gusto-API-Version": string; company_id: string; RequestBody?: PostV1CompaniesCompanyIdPayrollsRequestBody$Outbound | undefined; }; /** @internal */ export declare const PostV1CompaniesCompanyIdPayrollsRequest$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdPayrollsRequestToJSON(postV1CompaniesCompanyIdPayrollsRequest: PostV1CompaniesCompanyIdPayrollsRequest): string; /** @internal */ export declare const PostV1CompaniesCompanyIdPayrollsResponse$inboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdPayrollsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postv1companiescompanyidpayrolls.d.ts.map