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 event associated with the ACH transaction */ export declare const PaymentEventType: { readonly Payroll: "Payroll"; readonly ContractorPayment: "ContractorPayment"; }; /** * The type of payment event associated with the ACH transaction */ export type PaymentEventType = ClosedEnum; export declare const AchTransactionRecipientType: { readonly Employee: "Employee"; readonly Contractor: "Contractor"; }; export type AchTransactionRecipientType = ClosedEnum; /** * The status of the ACH transaction */ export declare const PaymentStatus: { readonly Unsubmitted: "unsubmitted"; readonly Submitted: "submitted"; readonly Successful: "successful"; readonly Failed: "failed"; }; /** * The status of the ACH transaction */ export type PaymentStatus = ClosedEnum; /** * The direction of the payment */ export declare const PaymentDirection: { readonly Credit: "credit"; readonly Debit: "debit"; }; /** * The direction of the payment */ export type PaymentDirection = ClosedEnum; /** * Representation of an ACH transaction */ export type AchTransaction = { /** * Unique identifier of an ACH transaction */ uuid: string; /** * Unique identifier of the company to which the ACH transaction belongs */ companyUuid?: string | undefined; /** * The type of payment event associated with the ACH transaction */ paymentEventType?: PaymentEventType | undefined; /** * Unique identifier for the payment event associated with the ACH transaction */ paymentEventUuid?: string | undefined; /** * The type of recipient associated with the ACH transaction */ recipientType?: AchTransactionRecipientType | null | undefined; /** * Unique identifier for the recipient associated with the ACH transaction */ recipientUuid?: string | undefined; /** * The error code associated with the ACH transaction, if any. If there is no error on the ACH transaction, this field will be nil. See [this article](https://engineering.gusto.com/how-ach-works-a-developer-perspective-part-2/) for a complete list of ACH return codes. */ errorCode?: string | null | undefined; /** * The type of transaction associated with the ACH transaction */ transactionType?: string | undefined; /** * The status of the ACH transaction */ paymentStatus?: PaymentStatus | undefined; /** * The direction of the payment */ paymentDirection?: PaymentDirection | undefined; /** * The date of the payment event check associated with the ACH transaction */ paymentEventCheckDate?: string | undefined; /** * The date of the payment associated with the ACH transaction */ paymentDate?: string | undefined; /** * The amount of money moved by the ACH transaction. This amount is always non-negative. */ amount?: string | undefined; /** * The description of the ACH transaction. Can be used to identify the ACH transaction on the recipient's bank statement. */ description?: string | undefined; }; /** @internal */ export declare const PaymentEventType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AchTransactionRecipientType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PaymentStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PaymentDirection$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AchTransaction$inboundSchema: z.ZodType; export declare function achTransactionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=achtransaction.d.ts.map