import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Address represents the address as retrieved from the database */ export type AddressCompleteCreateRequest = { /** * **required for purchase**
* * @remarks * First and Last Name of the addressee */ name: string; /** * Company Name */ company?: string | undefined; /** * **required for purchase**
* * @remarks * First street line. Usually street number and street name (except for DHL Germany, see street_no). */ street1: string; /** * Second street line. */ street2?: string | undefined; /** * Third street line. * * @remarks * Only accepted for USPS international shipments, UPS domestic and UPS international shipments. */ street3?: string | undefined; /** * Street number of the addressed building. * * @remarks * This field can be included in street1 for all carriers except for DHL Germany. */ streetNo?: string | undefined; /** * **required for purchase**
* * @remarks * Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates. * Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state * or a ZIP code (see below), if known, it will yield more accurate results. */ city: string; /** * **required for purchase for some countries**
* * @remarks * State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some * countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers * only accept two or three character state abbreviations. */ state: string; /** * **required for purchase**
* * @remarks * Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more * accurate Rates. */ zip: string; /** * ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we recommend using country codes like `US` or `DE`. * * @remarks * If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes. * Refer to this guide for a list of country codes. * Sending a country is always required. */ country: string; /** * Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This * * @remarks * increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. */ phone?: string | undefined; /** * E-mail address of the contact person, RFC3696/5321-compliant. */ email?: string | undefined; isResidential?: boolean | undefined; /** * A string of up to 100 characters that can be filled with any additional information you want * * @remarks * to attach to the object. */ metadata?: string | undefined; validate?: boolean | undefined; }; /** @internal */ export declare const AddressCompleteCreateRequest$inboundSchema: z.ZodMiniType; /** @internal */ export type AddressCompleteCreateRequest$Outbound = { name: string; company?: string | undefined; street1: string; street2?: string | undefined; street3?: string | undefined; street_no?: string | undefined; city: string; state: string; zip: string; country: string; phone?: string | undefined; email?: string | undefined; is_residential?: boolean | undefined; metadata?: string | undefined; validate?: boolean | undefined; }; /** @internal */ export declare const AddressCompleteCreateRequest$outboundSchema: z.ZodMiniType; export declare function addressCompleteCreateRequestToJSON(addressCompleteCreateRequest: AddressCompleteCreateRequest): string; export declare function addressCompleteCreateRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=addresscompletecreaterequest.d.ts.map