import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { IndividualNameUpdate, IndividualNameUpdate$Outbound } from "./individualnameupdate.js"; export type Phone = { number?: string | undefined; countryCode?: string | undefined; }; export type UpdateRepresentativeAddress = { addressLine1?: string | undefined; addressLine2?: string | undefined; city?: string | undefined; stateOrProvince?: string | undefined; postalCode?: string | undefined; country?: string | undefined; }; export type UpdateRepresentativeBirthDate = { day?: number | undefined; month?: number | undefined; year?: number | undefined; }; export type UpdateRepresentativeSsn = { full?: string | undefined; lastFour?: string | undefined; }; export type UpdateRepresentativeItin = { full?: string | undefined; lastFour?: string | undefined; }; export type UpdateRepresentativeGovernmentID = { ssn?: UpdateRepresentativeSsn | undefined; itin?: UpdateRepresentativeItin | undefined; }; /** * Describes the job responsibilities of a business representative. */ export type Responsibilities = { /** * Indicates whether this individual has significant management responsibilities within the business. */ isController?: boolean | undefined; /** * If `true`, this field indicates that the individual has a business ownership stake of at least 25% in the * * @remarks * business. If the representative does not own at least 25% of the business, this field should be `false`. */ isOwner?: boolean | undefined; /** * The percentage of ownership this individual has in the business (required if `isOwner` is `true`). */ ownershipPercentage?: number | undefined; jobTitle?: string | undefined; }; export type UpdateRepresentative = { name?: IndividualNameUpdate | undefined; phone?: Phone | null | undefined; email?: string | null | undefined; address?: UpdateRepresentativeAddress | null | undefined; birthDate?: UpdateRepresentativeBirthDate | null | undefined; governmentID?: UpdateRepresentativeGovernmentID | null | undefined; responsibilities?: Responsibilities | null | undefined; }; /** @internal */ export declare const Phone$inboundSchema: z.ZodType; /** @internal */ export type Phone$Outbound = { number?: string | undefined; countryCode?: string | undefined; }; /** @internal */ export declare const Phone$outboundSchema: z.ZodType; export declare function phoneToJSON(phone: Phone): string; export declare function phoneFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateRepresentativeAddress$inboundSchema: z.ZodType; /** @internal */ export type UpdateRepresentativeAddress$Outbound = { addressLine1?: string | undefined; addressLine2?: string | undefined; city?: string | undefined; stateOrProvince?: string | undefined; postalCode?: string | undefined; country?: string | undefined; }; /** @internal */ export declare const UpdateRepresentativeAddress$outboundSchema: z.ZodType; export declare function updateRepresentativeAddressToJSON(updateRepresentativeAddress: UpdateRepresentativeAddress): string; export declare function updateRepresentativeAddressFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateRepresentativeBirthDate$inboundSchema: z.ZodType; /** @internal */ export type UpdateRepresentativeBirthDate$Outbound = { day?: number | undefined; month?: number | undefined; year?: number | undefined; }; /** @internal */ export declare const UpdateRepresentativeBirthDate$outboundSchema: z.ZodType; export declare function updateRepresentativeBirthDateToJSON(updateRepresentativeBirthDate: UpdateRepresentativeBirthDate): string; export declare function updateRepresentativeBirthDateFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateRepresentativeSsn$inboundSchema: z.ZodType; /** @internal */ export type UpdateRepresentativeSsn$Outbound = { full?: string | undefined; lastFour?: string | undefined; }; /** @internal */ export declare const UpdateRepresentativeSsn$outboundSchema: z.ZodType; export declare function updateRepresentativeSsnToJSON(updateRepresentativeSsn: UpdateRepresentativeSsn): string; export declare function updateRepresentativeSsnFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateRepresentativeItin$inboundSchema: z.ZodType; /** @internal */ export type UpdateRepresentativeItin$Outbound = { full?: string | undefined; lastFour?: string | undefined; }; /** @internal */ export declare const UpdateRepresentativeItin$outboundSchema: z.ZodType; export declare function updateRepresentativeItinToJSON(updateRepresentativeItin: UpdateRepresentativeItin): string; export declare function updateRepresentativeItinFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateRepresentativeGovernmentID$inboundSchema: z.ZodType; /** @internal */ export type UpdateRepresentativeGovernmentID$Outbound = { ssn?: UpdateRepresentativeSsn$Outbound | undefined; itin?: UpdateRepresentativeItin$Outbound | undefined; }; /** @internal */ export declare const UpdateRepresentativeGovernmentID$outboundSchema: z.ZodType; export declare function updateRepresentativeGovernmentIDToJSON(updateRepresentativeGovernmentID: UpdateRepresentativeGovernmentID): string; export declare function updateRepresentativeGovernmentIDFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Responsibilities$inboundSchema: z.ZodType; /** @internal */ export type Responsibilities$Outbound = { isController?: boolean | undefined; isOwner?: boolean | undefined; ownershipPercentage?: number | undefined; jobTitle?: string | undefined; }; /** @internal */ export declare const Responsibilities$outboundSchema: z.ZodType; export declare function responsibilitiesToJSON(responsibilities: Responsibilities): string; export declare function responsibilitiesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateRepresentative$inboundSchema: z.ZodType; /** @internal */ export type UpdateRepresentative$Outbound = { name?: IndividualNameUpdate$Outbound | undefined; phone?: Phone$Outbound | null | undefined; email?: string | null | undefined; address?: UpdateRepresentativeAddress$Outbound | null | undefined; birthDate?: UpdateRepresentativeBirthDate$Outbound | null | undefined; governmentID?: UpdateRepresentativeGovernmentID$Outbound | null | undefined; responsibilities?: Responsibilities$Outbound | null | undefined; }; /** @internal */ export declare const UpdateRepresentative$outboundSchema: z.ZodType; export declare function updateRepresentativeToJSON(updateRepresentative: UpdateRepresentative): string; export declare function updateRepresentativeFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=updaterepresentative.d.ts.map