import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Monetary amount associated with the withholding */ export type WithholdingAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The rate at which monies were withheld */ export type WithholdingRate = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; export declare enum WithholdingState { WithholdingStateUnspecified = "WITHHOLDING_STATE_UNSPECIFIED", Ca = "CA", Me = "ME", Vt = "VT", Al = "AL", Ak = "AK", Az = "AZ", Ar = "AR", Co = "CO", Ct = "CT", De = "DE", Fl = "FL", Ga = "GA", Hi = "HI", Id = "ID", Il = "IL", In = "IN", Ia = "IA", Ks = "KS", Ky = "KY", La = "LA", Md = "MD", Ma = "MA", Mi = "MI", Mn = "MN", Ms = "MS", Mo = "MO", Mt = "MT", Ne = "NE", Nv = "NV", Nh = "NH", Nj = "NJ", Nm = "NM", Ny = "NY", Nc = "NC", Nd = "ND", Oh = "OH", Ok = "OK", Or = "OR", Pa = "PA", Ri = "RI", Sc = "SC", Sd = "SD", Tn = "TN", Tx = "TX", Ut = "UT", Va = "VA", Wa = "WA", Wv = "WV", Wi = "WI", Wy = "WY", Dc = "DC" } export type WithholdingStateOpen = OpenEnum; /** * Describes the type of the withholding (Federal, State, etc.) */ export declare enum WithholdingType1 { WithholdingTypeUnspecified = "WITHHOLDING_TYPE_UNSPECIFIED", Federal = "FEDERAL", State = "STATE", ForeignSecurity = "FOREIGN_SECURITY", FederalIra = "FEDERAL_IRA", StateIra = "STATE_IRA", NonResidentAlien = "NON_RESIDENT_ALIEN" } /** * Describes the type of the withholding (Federal, State, etc.) */ export type WithholdingType1Open = OpenEnum; export type Withholding = { /** * Monetary amount associated with the withholding */ amount?: WithholdingAmount | null | undefined; /** * The rate at which monies were withheld */ rate?: WithholdingRate | null | undefined; state?: WithholdingStateOpen | undefined; /** * The tax year associated with the withholding */ taxYear?: number | undefined; /** * Describes the type of the withholding (Federal, State, etc.) */ type?: WithholdingType1Open | undefined; }; /** @internal */ export declare const WithholdingAmount$inboundSchema: z.ZodType; /** @internal */ export type WithholdingAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const WithholdingAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WithholdingAmount$ { /** @deprecated use `WithholdingAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `WithholdingAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `WithholdingAmount$Outbound` instead. */ type Outbound = WithholdingAmount$Outbound; } export declare function withholdingAmountToJSON(withholdingAmount: WithholdingAmount): string; export declare function withholdingAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const WithholdingRate$inboundSchema: z.ZodType; /** @internal */ export type WithholdingRate$Outbound = { value?: string | undefined; }; /** @internal */ export declare const WithholdingRate$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WithholdingRate$ { /** @deprecated use `WithholdingRate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `WithholdingRate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `WithholdingRate$Outbound` instead. */ type Outbound = WithholdingRate$Outbound; } export declare function withholdingRateToJSON(withholdingRate: WithholdingRate): string; export declare function withholdingRateFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const WithholdingState$inboundSchema: z.ZodType; /** @internal */ export declare const WithholdingState$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WithholdingState$ { /** @deprecated use `WithholdingState$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `WithholdingState$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const WithholdingType1$inboundSchema: z.ZodType; /** @internal */ export declare const WithholdingType1$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WithholdingType1$ { /** @deprecated use `WithholdingType1$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `WithholdingType1$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const Withholding$inboundSchema: z.ZodType; /** @internal */ export type Withholding$Outbound = { amount?: WithholdingAmount$Outbound | null | undefined; rate?: WithholdingRate$Outbound | null | undefined; state?: string | undefined; tax_year?: number | undefined; type?: string | undefined; }; /** @internal */ export declare const Withholding$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Withholding$ { /** @deprecated use `Withholding$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Withholding$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Withholding$Outbound` instead. */ type Outbound = Withholding$Outbound; } export declare function withholdingToJSON(withholding: Withholding): string; export declare function withholdingFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=withholding.d.ts.map