import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CountryCode } from "./countrycode.js"; /** * An address saved on an account, i.e. a physical address plus any additional account-specific metadata. */ export type AddressListing = { /** * The address's unique identifier. */ id?: string | undefined; /** * The first name of the person associated with this address. */ firstName: string; /** * The last name of the person associated with this address. */ lastName: string; /** * The company associated with this address. */ company?: string | undefined; /** * The street address associated with this address. */ streetAddress1: string; /** * Any additional, optional, street address information associated with this address. */ streetAddress2?: string | undefined; /** * The locality (e.g. city, town, etc...) associated with this address. */ locality: string; /** * The postal code associated with this address. */ postalCode: string; /** * The region or administrative area (e.g. state, province, county, etc...) associated with this address. */ region?: string | undefined; /** * The country (in its ISO 3166 alpha-2 format) associated with this address. */ countryCode: CountryCode; /** * The email address associated with this address. */ email?: string | undefined; /** * The phone number associated with this address. */ phone?: string | undefined; /** * Whether or not this is the default address saved. */ isDefault?: boolean | undefined; }; /** @internal */ export declare const AddressListing$inboundSchema: z.ZodType; /** @internal */ export type AddressListing$Outbound = { id?: string | undefined; first_name: string; last_name: string; company?: string | undefined; street_address1: string; street_address2?: string | undefined; locality: string; postal_code: string; region?: string | undefined; country_code: string; email?: string | undefined; phone?: string | undefined; is_default?: boolean | undefined; }; /** @internal */ export declare const AddressListing$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 AddressListing$ { /** @deprecated use `AddressListing$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AddressListing$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AddressListing$Outbound` instead. */ type Outbound = AddressListing$Outbound; } export declare function addressListingToJSON(addressListing: AddressListing): string; export declare function addressListingFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=addresslisting.d.ts.map