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 { ContractorPaymentGroup } from "../components/contractorpaymentgroup.js"; import { HTTPMetadata } from "../components/httpmetadata.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 PostV1CompaniesCompanyIdContractorPaymentGroupsHeaderXGustoAPIVersion: { 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 PostV1CompaniesCompanyIdContractorPaymentGroupsHeaderXGustoAPIVersion = ClosedEnum; export type Options = { /** * The type of option */ type?: string | undefined; /** * Message for the option */ message?: string | undefined; }; export type SubmissionBlockers = { /** * The type of blocker that is blocking the payment submission */ blockerType?: string | undefined; /** * The unblock option selected to resolve the submission blocker */ selectedOption?: string | null | undefined; /** * Optional message related to the blocker */ message?: string | undefined; /** * Optional array of additional options for the blocker */ options?: Array | undefined; }; export declare const PaymentMethod: { readonly DirectDeposit: "Direct Deposit"; readonly Check: "Check"; readonly HistoricalPayment: "Historical Payment"; }; export type PaymentMethod = ClosedEnum; export type ContractorPayments = { /** * The contractor receiving the payment */ contractorUuid?: string | undefined; paymentMethod?: PaymentMethod | undefined; /** * If the contractor is on a fixed wage, this is the fixed wage payment for the contractor, regardless of hours worked */ wage?: string | undefined; /** * If the contractor is on an hourly wage, this is the number of hours that the contractor worked for the payment */ hours?: string | undefined; /** * If the contractor is on an hourly wage, this is the bonus the contractor earned */ bonus?: string | undefined; /** * Reimbursed wages for the contractor */ reimbursement?: string | undefined; }; export type PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody = { /** * The payment check date */ checkDate: RFCDate; /** * A token used to make contractor payment group creation idempotent. The string must be unique for each group you intend to create. */ creationToken: string; /** * Optional array of submission blockers with selected unblock options. Returned from the preview endpoint and can be submitted with selected_option to resolve blockers. */ submissionBlockers?: Array | undefined; contractorPayments: Array; }; export type PostV1CompaniesCompanyIdContractorPaymentGroupsRequest = { /** * 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?: PostV1CompaniesCompanyIdContractorPaymentGroupsHeaderXGustoAPIVersion | undefined; /** * The UUID of the company */ companyId: string; requestBody: PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody; }; export type PostV1CompaniesCompanyIdContractorPaymentGroupsResponse = { httpMeta: HTTPMetadata; /** * Full contractor payment group object */ contractorPaymentGroup?: ContractorPaymentGroup | undefined; }; /** @internal */ export declare const PostV1CompaniesCompanyIdContractorPaymentGroupsHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export type Options$Outbound = { type?: string | undefined; message?: string | undefined; }; /** @internal */ export declare const Options$outboundSchema: z.ZodType; export declare function optionsToJSON(options: Options): string; /** @internal */ export type SubmissionBlockers$Outbound = { blocker_type?: string | undefined; selected_option?: string | null | undefined; message?: string | undefined; options?: Array | undefined; }; /** @internal */ export declare const SubmissionBlockers$outboundSchema: z.ZodType; export declare function submissionBlockersToJSON(submissionBlockers: SubmissionBlockers): string; /** @internal */ export declare const PaymentMethod$outboundSchema: z.ZodNativeEnum; /** @internal */ export type ContractorPayments$Outbound = { contractor_uuid?: string | undefined; payment_method: string; wage?: string | undefined; hours?: string | undefined; bonus?: string | undefined; reimbursement?: string | undefined; }; /** @internal */ export declare const ContractorPayments$outboundSchema: z.ZodType; export declare function contractorPaymentsToJSON(contractorPayments: ContractorPayments): string; /** @internal */ export type PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody$Outbound = { check_date: string; creation_token: string; submission_blockers?: Array | undefined; contractor_payments: Array; }; /** @internal */ export declare const PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdContractorPaymentGroupsRequestBodyToJSON(postV1CompaniesCompanyIdContractorPaymentGroupsRequestBody: PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody): string; /** @internal */ export type PostV1CompaniesCompanyIdContractorPaymentGroupsRequest$Outbound = { "X-Gusto-API-Version": string; company_id: string; RequestBody: PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody$Outbound; }; /** @internal */ export declare const PostV1CompaniesCompanyIdContractorPaymentGroupsRequest$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdContractorPaymentGroupsRequestToJSON(postV1CompaniesCompanyIdContractorPaymentGroupsRequest: PostV1CompaniesCompanyIdContractorPaymentGroupsRequest): string; /** @internal */ export declare const PostV1CompaniesCompanyIdContractorPaymentGroupsResponse$inboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdContractorPaymentGroupsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postv1companiescompanyidcontractorpaymentgroups.d.ts.map