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 type of payment method. */ export declare const EmployeePaymentDetailsListPaymentMethod: { readonly DirectDeposit: "Direct Deposit"; readonly Check: "Check"; }; /** * The type of payment method. */ export type EmployeePaymentDetailsListPaymentMethod = ClosedEnum; export declare const SplitBy: { readonly Amount: "Amount"; readonly Percentage: "Percentage"; }; export type SplitBy = ClosedEnum; export type Splits = { /** * The UUID of the bank account. */ bankAccountUuid?: string | undefined; /** * The name of the bank account. */ name?: string | undefined; /** * An obfuscated version of the account number which can be used for display purposes. */ hiddenAccountNumber?: string | undefined; /** * Ciphertext containing the full bank account number, which must be decrypted using a key provided by Gusto. Only visible with the `employee_payment_methods:read:account_number` scope. */ encryptedAccountNumber?: string | null | undefined; /** * The routing number of the bank account. */ routingNumber?: string | undefined; /** * The bank account type (e.g., "Checking" or "Savings"). */ accountType?: string | undefined; /** * The order of priority for each payment split, with priority 1 being the first bank account paid. Priority must be unique and sequential. */ priority?: number | undefined; /** * If `split_by` is 'Amount', this is in cents (e.g., 500 for $5.00) and exactly one account must have a `split_amount` of `null` to capture the remainder. If `split_by` is 'Percentage', this is the percentage value (e.g., 60 for 60%). */ splitAmount?: number | null | undefined; }; export type EmployeePaymentDetailsList = { /** * The UUID of the employee. */ employeeUuid?: string | undefined; /** * The legal first name of the employee. */ firstName?: string | undefined; /** * The last name of the employee. */ lastName?: string | undefined; /** * The type of payment method. */ paymentMethod?: EmployeePaymentDetailsListPaymentMethod | undefined; /** * How the payment is split. This field is applicable when `payment_method` is "Direct Deposit". If `split_by` is Percentage, then the split amounts must add up to exactly 100. If `split_by` is Amount, the last split amount must be `null` to capture the remainder. */ splitBy?: SplitBy | null | undefined; /** * An array of payment splits. This field is applicable when `payment_method` is "Direct Deposit". */ splits?: Array | null | undefined; }; /** @internal */ export declare const EmployeePaymentDetailsListPaymentMethod$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SplitBy$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Splits$inboundSchema: z.ZodType; export declare function splitsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EmployeePaymentDetailsList$inboundSchema: z.ZodType; export declare function employeePaymentDetailsListFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=employeepaymentdetailslist.d.ts.map