import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { TaxRequirementMetadata } from "./taxrequirementmetadata.js"; import { TaxRequirementsValue } from "./taxrequirementsvalue.js"; /** * The required value of the requirement identified by `key` */ export type TaxRequirementValue = boolean | string | number; export type ApplicableIf = { /** * An identifier for an individual requirement. Uniqueness is guaranteed within a requirement set. */ key?: string | undefined; /** * The required value of the requirement identified by `key` */ value?: boolean | string | number | null | undefined; }; export type TaxRequirement = { /** * An identifier for an individual requirement. Uniqueness is guaranteed within a requirement set. */ key?: string | undefined; /** * An array of references to other requirements within the requirement set. This requirement is only applicable if all referenced requirements have values matching the corresponding `value`. The primary use-case is dynamically hiding and showing requirements as values change. E.g. Show Requirement-B when Requirement-A has been answered with `false`. To be explicit, an empty array means the requirement is applicable. */ applicableIf?: Array | undefined; /** * A customer facing description of the requirement */ label?: string | undefined; /** * A more detailed customer facing description of the requirement */ description?: string | null | undefined; /** * The value or "answer" for a tax requirement. Type depends on the requirement metadata type (e.g. string for text/account_number, boolean for radio/checkbox, number for percent/currency/tax_rate). Null when the requirement has not been answered. */ value?: TaxRequirementsValue | null | undefined; metadata?: TaxRequirementMetadata | undefined; /** * Whether the value of this requirement can be updated */ editable?: boolean | undefined; }; /** @internal */ export declare const TaxRequirementValue$inboundSchema: z.ZodType; export declare function taxRequirementValueFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApplicableIf$inboundSchema: z.ZodType; export declare function applicableIfFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TaxRequirement$inboundSchema: z.ZodType; export declare function taxRequirementFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=taxrequirement.d.ts.map