@lob/lob-typescript-sdk
Version:
Lob API wrapper
222 lines (221 loc) • 11.2 kB
TypeScript
/**
* Lob
* The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
*
* The version of the OpenAPI document: 1.3.0
* Contact: lob-openapi@lob.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DpvFootnote } from "./dpv-footnote";
/**
* A nested object containing a breakdown of the deliverability of an address.
* @export
* @class DeliverabilityAnalysis
*/
export declare class DeliverabilityAnalysis {
constructor(input?: any);
/**
* Result of Delivery Point Validation (DPV), which determines whether or not the address is deliverable by the USPS. Possible values are: * `Y` –– The address is deliverable by the USPS. * `S` –– The address is deliverable by removing the provided secondary unit designator. This information may be incorrect or unnecessary. * `D` –– The address is deliverable to the building\'s default address but is missing a secondary unit designator and/or number. There is a chance the mail will not reach the intended recipient. * `N` –– The address is not deliverable according to the USPS, but parts of the address are valid (such as the street and ZIP code). * `\'\'` –– This address is not deliverable. No matching street could be found within the city or ZIP code.
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_confirmation": DeliverabilityAnalysisDpvConfirmationEnum;
/**
* indicates whether or not the address is [CMRA-authorized](https://en.wikipedia.org/wiki/Commercial_mail_receiving_agency). Possible values are: * `Y` –– Address is CMRA-authorized. * `N` –– Address is not CMRA-authorized. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_cmra": DeliverabilityAnalysisDpvCmraEnum;
/**
* indicates that an address was once deliverable, but has become vacant and is no longer receiving deliveries. Possible values are: * `Y` –– Address is vacant. * `N` –– Address is not vacant. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_vacant": DeliverabilityAnalysisDpvVacantEnum;
/**
* Corresponds to the USPS field `dpv_no_stat`. Indicates that an address has been vacated in the recent past, and is no longer receiving deliveries. If it\'s been unoccupied for 90+ days, or temporarily vacant, this will be flagged. Possible values are: * `Y` –– Address is active. * `N` –– Address is not active. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_active": DeliverabilityAnalysisDpvActiveEnum;
/**
* Indicates the reason why an address is vacant or no longer receiving deliveries. Possible values are: * `01` –– Address does not receive mail from the USPS directly, but is serviced by a drop address. * `02` –– Address not yet deliverable. * `03` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). * `04` –– Address is a College, Military Zone, or other type. * `05` –– Address no longer receives deliveries. * `06` –– Address is missing required secondary information. * `\'\'` –– A DPV match is not made or the address is active.
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_inactive_reason": DeliverabilityAnalysisDpvInactiveReasonEnum;
/**
* Indicates a street address for which mail is delivered to a PO Box. Possible values are: * `Y` –– Address is a PO Box throwback delivery point. * `N` –– Address is not a PO Box throwback delivery point. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_throwback": DeliverabilityAnalysisDpvThrowbackEnum;
/**
* Indicates whether deliveries are not performed on one or more days of the week at an address. Possible values are: * `Y` –– Mail delivery does not occur on some days of the week. * `N` –– Mail delivery occurs every day of the week. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_non_delivery_day_flag": DeliverabilityAnalysisDpvNonDeliveryDayFlagEnum;
/**
* Indicates days of the week (starting on Sunday) deliveries are not performed at an address. For example: * `YNNNNNN` –– Mail delivery does not occur on Sunday\'s. * `NYNNNYN` –– Mail delivery does not occur on Monday\'s or Friday\'s. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string) or address receives mail every day of the week (`deliverability_analysis[dpv_non_delivery_day_flag]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_non_delivery_day_values": string;
/**
* Indicates packages to this address will not be left due to security concerns. Possible values are: * `Y` –– Address does not have a secure mailbox. * `N` –– Address has a secure mailbox. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_no_secure_location": DeliverabilityAnalysisDpvNoSecureLocationEnum;
/**
* Indicates the door of the address is not accessible for mail delivery. Possible values are: * `Y` –– Door is not accessible. * `N` –– Door is accessible. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"dpv_door_not_accessible": DeliverabilityAnalysisDpvDoorNotAccessibleEnum;
/**
* An array of 2-character strings that gives more insight into how `deliverability_analysis[dpv_confirmation]` was determined. Will always include at least 1 string, and can include up to 3. For details, see [US Verification Details](#tag/US-Verification-Types).
* @type {Array<DpvFootnote>}
* @memberof DeliverabilityAnalysis
*/
"dpv_footnotes": Array<DpvFootnote>;
/**
* indicates whether or not an address has been flagged in the [Early Warning System](https://docs.informatica.com/data-engineering/data-engineering-quality/10-4-0/address-validator-port-reference/postal-carrier-certification-data-ports/early-warning-system-return-code.html), meaning the address is under development and not yet ready to receive mail. However, it should become available in a few months.
* @type {boolean}
* @memberof DeliverabilityAnalysis
*/
"ews_match": boolean;
/**
* indicates whether this address has been converted by [LACS<sup>Link</sup>](https://postalpro.usps.com/address-quality/lacslink). LACS<sup>Link</sup> corrects outdated addresses into their modern counterparts. Possible values are: * `Y` –– New address produced with a matching record in LACS<sup>Link</sup>. * `N` –– New address could not be produced with a matching record in LACS<sup>Link</sup>. * `\'\'` –– A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string).
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"lacs_indicator": DeliverabilityAnalysisLacsIndicatorEnum;
/**
* A code indicating how `deliverability_analysis[lacs_indicator]` was determined. Possible values are: * `A` — A new address was produced because a match was found in LACS<sup>Link</sup>. * `92` — A LACS<sup>Link</sup> record was matched after dropping secondary information. * `14` — A match was found in LACS<sup>Link</sup>, but could not be converted to a deliverable address. * `00` — A match was not found in LACS<sup>Link</sup>, and no new address was produced. * `\'\'` — LACS<sup>Link</sup> was not attempted.
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"lacs_return_code": string;
/**
* A return code that indicates whether the address was matched and corrected by [Suite<sup>Link</sup>](https://postalpro.usps.com/address-quality-solutions/suitelink). Suite<sup>Link</sup> attempts to provide secondary information to business addresses. Possible values are: * `A` –– A Suite<sup>Link</sup> match was found and secondary information was added. * `00` –– A Suite<sup>Link</sup> match could not be found and no secondary information was added. * `\'\'` –– Suite<sup>Link</sup> lookup was not attempted.
* @type {string}
* @memberof DeliverabilityAnalysis
*/
"suite_return_code": DeliverabilityAnalysisSuiteReturnCodeEnum;
toJSON(): {};
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvConfirmationEnum {
Y = "Y",
S = "S",
D = "D",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvCmraEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvVacantEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvActiveEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvInactiveReasonEnum {
_01 = "01",
_02 = "02",
_03 = "03",
_04 = "04",
_05 = "05",
_06 = "06",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvThrowbackEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvNonDeliveryDayFlagEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvNoSecureLocationEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisDpvDoorNotAccessibleEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisLacsIndicatorEnum {
Y = "Y",
N = "N",
Empty = ""
}
/**
* @export
* @enum {string}
*/
export declare enum DeliverabilityAnalysisSuiteReturnCodeEnum {
A = "A",
_00 = "00",
Empty = ""
}
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/