@shipengine/connect-order-source-api
Version:
This is the typescript/javascript definitions for the order source api
52 lines (51 loc) • 2.26 kB
TypeScript
import Joi from 'joi';
/**
* @description Describes information about a drop off / pickup location
*/
export declare class PickupLocation {
/** @description An id specific to the carrier about this drop off / pickup location */
carrier_id: string;
/** @description The id of a relay point used for the drop off / pickup location */
relay_id: string;
}
export declare const PickupLocationSchema: Joi.ObjectSchema<any>;
/**
* @description Used to indicate whether an address is in a residential or commercial area
*/
export declare enum ResidentialIndicator {
Residential = "R",
Commercial = "C"
}
export declare const ResidentialIndicatorSchema: Joi.StringSchema;
/**
* @description This defines the shape of an address
*/
export declare class Address {
/** @description The name of the individual associated with this address */
name?: string;
/** @description The name of the company associated with this address */
company?: string;
/** @description The phone number associated with this address */
phone?: string;
/** @description The first line of the address */
address_line_1?: string;
/** @description The second line of the address */
address_line_2?: string;
/** @description The third line of the address */
address_line_3?: string;
/** @description The city associated with this address */
city?: string;
/** @description The state, province, or municipality of the address */
state_province?: string;
/** @description The postal code associated with this address */
postal_code?: string;
/** @description The two character ISO 3166 country code of this address @example ("US","MX","CA") */
country_code?: string;
/** @description Indicates this is a residential or commercial address. Values: 'R', 'C', and null */
residential_indicator?: string | ResidentialIndicator;
/** @description Indicates whether or not this address has been verified using an Address Verification Service. Values: true, false, and null */
is_verified?: boolean;
/** @description Information details related to a pickup location if applicable */
pickup_location?: PickupLocation;
}
export declare const AddressSchema: Joi.ObjectSchema<any>;