export type CreateApiV1CompaniesCompanyUuidPayrollsSkipArgs = {'X-Gusto-API-Version'?: '2026-06-15' | undefined, company_uuid: string, body: {payroll_type: 'Regular' | 'Hired employee' | 'Dismissed employee' | 'Transition from old pay schedule', start_date?: string | undefined, end_date?: string | undefined, pay_schedule_uuid?: string | undefined, employee_uuids?: (Array | null) | undefined}}; export type CreateApiV1CompaniesCompanyUuidPayrollsSkipOptions = {baseUrl?: string | undefined, CompanyAccessAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Skip a payroll * * POST /v1/companies/{company_uuid}/payrolls/skip */ export const createApiV1CompaniesCompanyUuidPayrollsSkip = async (args: CreateApiV1CompaniesCompanyUuidPayrollsSkipArgs, options?: CreateApiV1CompaniesCompanyUuidPayrollsSkipOptions) => { const {baseUrl = "https://api.gusto-demo.com", fetch: fetchFn = fetch, CompanyAccessAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (args['X-Gusto-API-Version'] != null) headers.set("X-Gusto-API-Version", String(args['X-Gusto-API-Version'])) if (CompanyAccessAuth !== undefined) headers.set('authorization', `Bearer ${CompanyAccessAuth}`) const url = `${baseUrl.replace(/\/+$/, '')}/v1/companies/${encodeURIComponent(String(args.company_uuid))}/payrolls/skip${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };