Documentation
¶
Overview ¶
Package addresses provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func NewGetAddressRequest(server string, params *GetAddressParams) (*http.Request, error)
- func NewGetCityStateRequest(server string, params *GetCityStateParams) (*http.Request, error)
- func NewGetZIPCodeRequest(server string, params *GetZIPCodeParams) (*http.Request, error)
- type Address
- type AddressAdditionalInfo
- type AddressAdditionalInfoAutoZoneIndicator
- type AddressAdditionalInfoBaseAlternateCode
- type AddressAdditionalInfoBusiness
- type AddressAdditionalInfoCentralDeliveryPoint
- type AddressAdditionalInfoDPVBusiness
- type AddressAdditionalInfoDPVCMRA
- type AddressAdditionalInfoDPVCentralBoxDelivery
- type AddressAdditionalInfoDPVConfirmation
- type AddressAdditionalInfoDPVCurbDelivery
- type AddressAdditionalInfoDPVDeliveryType
- type AddressAdditionalInfoDPVDrop
- type AddressAdditionalInfoDPVEducational
- type AddressAdditionalInfoDPVEnhancedConfirmation
- type AddressAdditionalInfoDPVLACS
- type AddressAdditionalInfoDPVNDCBUDelivery
- type AddressAdditionalInfoDPVNoDoorDelivery
- type AddressAdditionalInfoDPVNoSecureLocation
- type AddressAdditionalInfoDPVNonDeliveryDaysFlag
- type AddressAdditionalInfoDPVNostat
- type AddressAdditionalInfoDPVNostatReasonCode
- type AddressAdditionalInfoDPVNostatReasonCodeDesc
- type AddressAdditionalInfoDPVOtherDelivery
- type AddressAdditionalInfoDPVPBSA
- type AddressAdditionalInfoDPVSeasonal
- type AddressAdditionalInfoDPVThrowback
- type AddressAdditionalInfoDPVUsageCode
- type AddressAdditionalInfoDPVVacant
- type AddressAdditionalInfoDefaultFlag
- type AddressAdditionalInfoELOTCode
- type AddressAdditionalInfoElectricVehicleRoute
- type AddressAdditionalInfoLACSIndicator
- type AddressAdditionalInfoLACSLinkIndicator
- type AddressAdditionalInfoLACSLinkReturnCode
- type AddressAdditionalInfoPOBoxOnlyZIP
- type AddressAdditionalInfoRecordType
- type AddressAdditionalInfoReturnCode
- type AddressAdditionalInfoSuiteLinkIndicator
- type AddressAdditionalInfoVacant
- type AddressAdditionalInfoZIP5Valid
- type AddressCorrections
- type AddressMatches
- type AddressResponse
- type CityAndState
- type CityStateResponse
- type Client
- func (c *Client) GetAddress(ctx context.Context, params *GetAddressParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCityState(ctx context.Context, params *GetCityStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZIPCode(ctx context.Context, params *GetZIPCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetAddressWithResponse(ctx context.Context, params *GetAddressParams, reqEditors ...RequestEditorFn) (*GetAddressResponse, error)
- func (c *ClientWithResponses) GetCityStateWithResponse(ctx context.Context, params *GetCityStateParams, reqEditors ...RequestEditorFn) (*GetCityStateResponse, error)
- func (c *ClientWithResponses) GetZIPCodeWithResponse(ctx context.Context, params *GetZIPCodeParams, reqEditors ...RequestEditorFn) (*GetZIPCodeResponse, error)
- type ClientWithResponsesInterface
- type DomesticAddress
- type ErrorMessage
- type ErrorMessage_Error
- type ErrorMessage_Error_Errors_Item
- func (a ErrorMessage_Error_Errors_Item) Get(fieldName string) (value interface{}, found bool)
- func (a ErrorMessage_Error_Errors_Item) MarshalJSON() ([]byte, error)
- func (a *ErrorMessage_Error_Errors_Item) Set(fieldName string, value interface{})
- func (a *ErrorMessage_Error_Errors_Item) UnmarshalJSON(b []byte) error
- type ErrorMessage_Error_Errors_Source
- func (a ErrorMessage_Error_Errors_Source) Get(fieldName string) (value interface{}, found bool)
- func (a ErrorMessage_Error_Errors_Source) MarshalJSON() ([]byte, error)
- func (a *ErrorMessage_Error_Errors_Source) Set(fieldName string, value interface{})
- func (a *ErrorMessage_Error_Errors_Source) UnmarshalJSON(b []byte) error
- type GetAddressParams
- type GetAddressResponse
- type GetCityStateParams
- type GetCityStateResponse
- type GetZIPCodeParams
- type GetZIPCodeResponse
- type HttpRequestDoer
- type RequestEditorFn
- type State
- type ZIPCodeResponse
Constants ¶
const (
OAuthScopes = "OAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewGetAddressRequest ¶
func NewGetAddressRequest(server string, params *GetAddressParams) (*http.Request, error)
NewGetAddressRequest generates requests for GetAddress
func NewGetCityStateRequest ¶
func NewGetCityStateRequest(server string, params *GetCityStateParams) (*http.Request, error)
NewGetCityStateRequest generates requests for GetCityState
func NewGetZIPCodeRequest ¶
func NewGetZIPCodeRequest(server string, params *GetZIPCodeParams) (*http.Request, error)
NewGetZIPCodeRequest generates requests for GetZIPCode
Types ¶
type Address ¶
type Address struct {
// CityAbbreviation This is the abbreviation of the city name for the address.
CityAbbreviation *string `json:"cityAbbreviation,omitempty"`
// SecondaryAddress The secondary unit designator, such as apartment (APT) or suite (STE), along with the APT/STE value, defining the exact location of the address within a building. Information initially entered on the secondaryAddress request field may not appear in the response secondaryAddress field when it's used to provide a standardized address (see streetAddress). This field may also contain information provided on the request secondaryAddress when it does not contain address information (e.g., c/o or ATTN information).
SecondaryAddress *string `json:"secondaryAddress,omitempty"`
// StreetAddress The number of a building along with the name of the road or street on which it is located. This may also contain secondary address information when it is used to provide a standardized address.
StreetAddress *string `json:"streetAddress,omitempty"`
// StreetAddressAbbreviation This is the abbreviation of the primary street address line for the address.
StreetAddressAbbreviation *string `json:"streetAddressAbbreviation,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
Address Address fields standard to all locations.
func (Address) Get ¶
Getter for additional properties for Address. Returns the specified element and whether it was found
func (Address) MarshalJSON ¶
Override default JSON handling for Address to handle AdditionalProperties
func (*Address) UnmarshalJSON ¶
Override default JSON handling for Address to handle AdditionalProperties
type AddressAdditionalInfo ¶
type AddressAdditionalInfo struct {
// DPVBusiness Indicates whether this is a business address.
// * `Y` - The address is a business address.
// * `N` - The address is not a business address.
DPVBusiness *AddressAdditionalInfoDPVBusiness `json:"DPVBusiness,omitempty"`
// DPVCMRA Indicates if the location is a [Commercial Mail Receiving Agency (CMRA)](https://faq.usps.com/s/article/Commercial-Mail-Receiving-Agency-CMRA).
// * `Y` - Address was found in the CMRA table.
// * `N` - Address was not found in the CMRA table.
DPVCMRA *AddressAdditionalInfoDPVCMRA `json:"DPVCMRA,omitempty"`
// DPVCentralBoxDelivery Indicates the address mail delivery is central box.
// * `Y` - The address has central box delivery.
// * `N` - The address doesn't have central box delivery.
DPVCentralBoxDelivery *AddressAdditionalInfoDPVCentralBoxDelivery `json:"DPVCentralBoxDelivery,omitempty"`
// DPVConfirmation The DPV Confirmation indicator identifies whether the address provided maps to a known USPS address record, whether the USPS delivers to the address or not. If the USPS does not deliver to the address, the USPS may deliver to a PO Box instead. `carrierRoute` values of `R777` and `R779`, for example, may require the shipper to ask the recipient where they receive their USPS mail, which may be different than their physical address.
// * `Y` - Address was DPV confirmed for both primary and (if present) secondary numbers. A value of `Y` does not necessarily imply that USPS delivers to that address.
// * `D` - Address was DPV confirmed for the primary number only, and the secondary number information was missing.
// * `S` - Address was DPV confirmed for the primary number only, and the secondary number information was present but not confirmed.
// * `N` - Both primary and (if present) secondary number information failed to DPV confirm.
DPVConfirmation *AddressAdditionalInfoDPVConfirmation `json:"DPVConfirmation,omitempty"`
// DPVCurbDelivery Indicates the address mail delivery is curb.
// * `Y` - The address has curb delivery.
// * `N` - The address doesn't have curb delivery.
DPVCurbDelivery *AddressAdditionalInfoDPVCurbDelivery `json:"DPVCurbDelivery,omitempty"`
// DPVDeliveryType Indicates the delivery type.
// * `1` - The address has curb delivery.
// * `2` - The address has NDCBU delivery.
// * `3` - The address has central box delivery.
// * `4` - The address has other delivery.
DPVDeliveryType *AddressAdditionalInfoDPVDeliveryType `json:"DPVDeliveryType,omitempty"`
// DPVDrop Indicates whether the address is a drop (mail is dropped off for more than 1 customer).
// * `Y` - Address is a drop.
// * `N` - Address is not a drop.
DPVDrop *AddressAdditionalInfoDPVDrop `json:"DPVDrop,omitempty"`
// DPVDropCount Indicates how many customers receive mail at a drop address or CMRA.
DPVDropCount *string `json:"DPVDropCount,omitempty"`
// DPVEducational Indicates whether the address is an educational location.
// * `Y` - Address is educational.
// * `N` - Address is not educational.
DPVEducational *AddressAdditionalInfoDPVEducational `json:"DPVEducational,omitempty"`
// DPVEnhancedConfirmation The DPV Confirmation indicator identifies whether the address is delivered to by the USPS.
// * `Y` - All components confirmed.
// * `D` - Secondary was dropped or trailing alpha on primary was dropped to confirm.
// * `S` - Address confirmed on primary number but secondary number required for complete address.
// * `R` - Address DPV Confirmed but USPS does not deliver to the address.
// * `N` - Primary number not confirmed.
DPVEnhancedConfirmation *AddressAdditionalInfoDPVEnhancedConfirmation `json:"DPVEnhancedConfirmation,omitempty"`
// DPVFootnotes The footnotes associated with the DPV information.
DPVFootnotes *string `json:"DPVFootnotes,omitempty"`
// DPVLACS Indicates whether the address is an old side LACS address.
// * `Y` - Address is a LACS address.
// * `N` - Address is not a LACS address.
DPVLACS *AddressAdditionalInfoDPVLACS `json:"DPVLACS,omitempty"`
// DPVNDCBUDelivery Indicates the address mail delivery is NDCBU.
// * `Y` - The address has NDCBU delivery.
// * `N` - The address doesn't have NDCBU delivery.
DPVNDCBUDelivery *AddressAdditionalInfoDPVNDCBUDelivery `json:"DPVNDCBUDelivery,omitempty"`
// DPVNoDoorDelivery Indicates whether the address does not allow delivery at the door.
// * `Y` - Address does not allow door delivery.
// * `N` - Address allows door delivery.
DPVNoDoorDelivery *AddressAdditionalInfoDPVNoDoorDelivery `json:"DPVNoDoorDelivery,omitempty"`
// DPVNoSecureLocation Indicates the address is flagged as not a secure location.
// * `Y` - The address is flagged as not a secure location.
// * `N` - The address is not flagged as not a secure location.
DPVNoSecureLocation *AddressAdditionalInfoDPVNoSecureLocation `json:"DPVNoSecureLocation,omitempty"`
// DPVNonDeliveryDaysFlag Indicates the address doesn't have mail delivered on one or more days.
// * `Y` - The address has non-delivery days.
// * `N` - The address doesn't have non-delivery days.
DPVNonDeliveryDaysFlag *AddressAdditionalInfoDPVNonDeliveryDaysFlag `json:"DPVNonDeliveryDaysFlag,omitempty"`
// DPVNonDeliveryDaysSMTWTFS Indicates the days the mail is not delivered in SMTWTFS string of characters. These values are positional. If a day has mail delivered, it is a space in that day's position.
DPVNonDeliveryDaysSMTWTFS *string `json:"DPVNonDeliveryDaysSMTWTFS,omitempty"`
// DPVNonDeliveryDaysValues Delivery Point Validation on non delivery days, returned as an array of strings
DPVNonDeliveryDaysValues *[]string `json:"DPVNonDeliveryDaysValues,omitempty"`
// DPVNostat Indicates the address is not counted for statistical purposes.
// * `Y` - The address is a nostat.
// * `N` - The address is not a nostat.
DPVNostat *AddressAdditionalInfoDPVNostat `json:"DPVNostat,omitempty"`
// DPVNostatReasonCode Indicates the reason code for nostat flag.
// * `1` - IDA (Internal Drop Address) - Addresses that do not receive mail directly from the USPS but are delivered to a drop address that services them (e.g., gated community).
// * `2` - CDS Nostat - Addresses that have not yet become deliverable. For example, a new subdivision where lots and primary numbers have been determined, but no structure exists yet for occupancy.
// * `4` - CMZ Nostat - College, military, and other types. ZIP + 4® records USPS has incorporated into the data.
// * `5` - Regular nostat - Indicates addresses not receiving delivery and the addresses are not counted as possible deliveries.
// * `6` - Secondary Required - The address requires secondary information (unconfirmed secondary entered or secondary missing).
DPVNostatReasonCode *AddressAdditionalInfoDPVNostatReasonCode `json:"DPVNostatReasonCode,omitempty"`
// DPVNostatReasonCodeDesc Indicates the reason description for nostat flag.
// * "IDA (Internal Drop Address)"
// * "CDS Nostat"
// * "CMZ Nostat"
// * "Regular Nostat"
// * "Secondary Required"
DPVNostatReasonCodeDesc *AddressAdditionalInfoDPVNostatReasonCodeDesc `json:"DPVNostatReasonCodeDesc,omitempty"`
// DPVOtherDelivery Indicates the address mail delivery is other.
// * `Y` - The address has other delivery.
// * `N` - The address doesn't have other delivery.
DPVOtherDelivery *AddressAdditionalInfoDPVOtherDelivery `json:"DPVOtherDelivery,omitempty"`
// DPVPBSA Indicates whether the address is a PO Box Street Address.
// * `Y` - Address is a PBSA.
// * `N` - Address is not a PBSA.
DPVPBSA *AddressAdditionalInfoDPVPBSA `json:"DPVPBSA,omitempty"`
// DPVSeasonal Indicates the address is seasonal.
// * `Y` - The address is seasonal.
// * `N` - The address is not seasonal.
DPVSeasonal *AddressAdditionalInfoDPVSeasonal `json:"DPVSeasonal,omitempty"`
// DPVThrowback Indicates the address is a throwback (actual delivery is to a PO Box).
// * `Y` - The address is a throwback.
// * `N` - The address is not a throwback.
DPVThrowback *AddressAdditionalInfoDPVThrowback `json:"DPVThrowback,omitempty"`
// DPVUsageCode Indicates when usage is mixed business/residential.
// * `A` - The address is residential.
// * `B` - The address is business.
// * `C` - The address mixed residential/business, but mostly residential.
// * `D` - The address mixed residential/business, but mostly business.
// * `G` - The address is General Delivery.
// * ` ` - The address has no usage code assigned.
DPVUsageCode *AddressAdditionalInfoDPVUsageCode `json:"DPVUsageCode,omitempty"`
// DPVVacant Indicates whether the location designated by the address is occupied.
// * `Y` - The address is not occupied.
// * `N` - The address is occupied.
DPVVacant *AddressAdditionalInfoDPVVacant `json:"DPVVacant,omitempty"`
// LACSIndicator LACS Indicator associated with ZIP + 4® record.
// * `L` - LACS Indicator present.
// * “ - LACS Indicator not present.
LACSIndicator *AddressAdditionalInfoLACSIndicator `json:"LACSIndicator,omitempty"`
// LACSLinkIndicator Indicates if a match was found from LACSLink.
// * `Y` - LACSLink address found.
// * `N` - LACSLink address not found.
// * `S` - LACSLink address converted but secondary dropped.
// * `F` - LACSLink false positive address encountered.
LACSLinkIndicator *AddressAdditionalInfoLACSLinkIndicator `json:"LACSLinkIndicator,omitempty"`
// LACSLinkReturnCode The return code from the LACSLink inquiry.
// * `00` - LACSLink no match.
// * `14` - Multiple LACSLink addresses found, unable to break tie.
// * `A` - LACSLink address converted without modifications.
// * `92` - LACSLink address converted but secondary dropped.
LACSLinkReturnCode *AddressAdditionalInfoLACSLinkReturnCode `json:"LACSLinkReturnCode,omitempty"`
// POBoxOnlyZIP Indicates if the returned ZIP Code facility only serves PO Box addresses.
// * `Y` - The ZIP Code facility only serves PO Box addresses.
// * `N` - The ZIP Code facility serves non-PO Box addresses.
POBoxOnlyZIP *AddressAdditionalInfoPOBoxOnlyZIP `json:"POBoxOnlyZIP,omitempty"`
// ZIP5Valid Indicates if the returned ZIP Code corresponds to the returned City/State.
// * `Y` - The ZIP Code matches the City/State.
// * `N` - The ZIP Code doesn't match the City/State.
ZIP5Valid *AddressAdditionalInfoZIP5Valid `json:"ZIP5Valid,omitempty"`
// AutoZoneIndicator The automated zone indicator for the delivery unit.
// * `A` - Carrier Route Sort Rates Apply - Merge Allowed.
// * `B` - Carrier Route Sort Rates Apply - Merge Not Allowed.
// * `C` - Carrier Route Sort Rates Do Not Apply - Merge Allowed.
// * `D` - Carrier Route Sort Rates Do Not Apply - Merge Not Allowed.
AutoZoneIndicator *AddressAdditionalInfoAutoZoneIndicator `json:"autoZoneIndicator,omitempty"`
// BaseAlternateCode Base/Alternate code associated with ZIP + 4® record.
// * `A` - Alternate record.
// * `B` - Base record.
BaseAlternateCode *AddressAdditionalInfoBaseAlternateCode `json:"baseAlternateCode,omitempty"`
// Business Indicates whether this is a business address.
// * `Y` - The address is a business address.
// * `N` - The address is not a business address.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Business *AddressAdditionalInfoBusiness `json:"business,omitempty"`
// CarrierRoute This is the carrier route code (values unspecified).
CarrierRoute *string `json:"carrierRoute,omitempty"`
// CentralDeliveryPoint Central Delivery is for all business office buildings and/or industrial/professional parks. This may include call windows, horizontal locked mail receptacles, and cluster box units.
// * `Y` - The address is a central delivery point.
// * `N` - The address is not a central delivery point.
CentralDeliveryPoint *AddressAdditionalInfoCentralDeliveryPoint `json:"centralDeliveryPoint,omitempty"`
// CongressDistrict This is the congressional district number associated with the address. In some cases, it will be "AL" for At-Large.
CongressDistrict *string `json:"congressDistrict,omitempty"`
// CountyName This is the county name associated with the delivery point (values unspecified).
CountyName *string `json:"countyName,omitempty"`
// CountyNumber The county number for the address.
CountyNumber *string `json:"countyNumber,omitempty"`
// DefaultFlag Indicates the address matched is a default.
// * `Y` - The address matched is a default.
// * `N` - The address matched is not a default.
DefaultFlag *AddressAdditionalInfoDefaultFlag `json:"defaultFlag,omitempty"`
// DeliveryPoint A specific set of digits between 00 and 99 is assigned to every address that is combined with the ZIP + 4® Code to provide a unique identifier for every delivery address.
//
// A street address does not necessarily represent a single delivery point because a street address such as one for an apartment building may have several delivery points.
DeliveryPoint *string `json:"deliveryPoint,omitempty"`
// ELOTCode eLOT Ascending/Descending Code
// * `A` - eLOT Number Ascending
// * `D` - eLOT Number Descending
ELOTCode *AddressAdditionalInfoELOTCode `json:"eLOTCode,omitempty"`
// ELOTNumber eLOT Number
ELOTNumber *string `json:"eLOTNumber,omitempty"`
// ElectricVehicleRoute Denotes if the carrier route associated with the address has electric vehicles.
// * true - The carrier route has electric vehicles
// * false - The carrier route does not have electric vehicles
ElectricVehicleRoute *AddressAdditionalInfoElectricVehicleRoute `json:"electricVehicleRoute,omitempty"`
// FinanceNumber Finance number associated with address.
FinanceNumber *string `json:"financeNumber,omitempty"`
// Footnotes The address footnotes.
Footnotes *string `json:"footnotes,omitempty"`
// MatchedPrimaryNumber The value of the matched primary number.
MatchedPrimaryNumber *string `json:"matchedPrimaryNumber,omitempty"`
// MatchedSecondaryNumber The value of the matched secondary number.
MatchedSecondaryNumber *string `json:"matchedSecondaryNumber,omitempty"`
// MiscLine Extraneous information removed from the address line not used to match the address.
MiscLine *string `json:"miscLine,omitempty"`
// ParsedPMBDesignator The value of the parsed PMB Designator.
ParsedPMBDesignator *string `json:"parsedPMBDesignator,omitempty"`
// ParsedPMBNumber The value of the PMB number.
ParsedPMBNumber *string `json:"parsedPMBNumber,omitempty"`
// PostOfficeCity The city associated with the delivery post office.
PostOfficeCity *string `json:"postOfficeCity,omitempty"`
// PostOfficeState The state associated with the delivery post office.
PostOfficeState *string `json:"postOfficeState,omitempty"`
// RecordType The record type of the ZIP + 4® match.
// * `G` - General Delivery
// * `P` - PO Box
// * `R` - Rural Route/Highway Contract
// * `H` - Highrise
// * `F` - Firm
// * `S` - Street
RecordType *AddressAdditionalInfoRecordType `json:"recordType,omitempty"`
// ReturnCode The return code from the address match.
// * `32` - Default Match
// * `31` - Single Match
// * `22` - Multiple Response Match
// * `21` - Address Not Found
// * `13` - Invalid City
// * `12` - Invalid State Code
// * `11` - Invalid ZIP Code
// * `10` - Invalid Address
ReturnCode *AddressAdditionalInfoReturnCode `json:"returnCode,omitempty"`
// ReturnCodeText This is a description of the return code
// * "Default address: The address you entered was found but more information is needed (such as an apartment, suite, or box number) to match to a specific address"
// * "Single Response – exact match"
// * "Multiple addresses were found for the information you entered, and no default exists."
// * "Address Not Found"
// * "Invalid City"
// * "Invalid State Code"
// * "Invalid ZIP Code"
// * "Invalid Address"
ReturnCodeText *string `json:"returnCodeText,omitempty"`
// SecondaryInfo The extracted secondary information from the streetAddress field.
SecondaryInfo *string `json:"secondaryInfo,omitempty"`
// SuiteLinkIndicator Indicates if a match was found from SuiteLink.
// * `00` - SuiteLink no match.
// * `A` - SuiteLink match.
SuiteLinkIndicator *AddressAdditionalInfoSuiteLinkIndicator `json:"suiteLinkIndicator,omitempty"`
// Vacant Indicates whether the location designated by the address is occupied.
// * `Y` - The address is not occupied.
// * `N` - The address is occupied.
Vacant *AddressAdditionalInfoVacant `json:"vacant,omitempty"`
}
AddressAdditionalInfo Extra information about the request.
type AddressAdditionalInfoAutoZoneIndicator ¶
type AddressAdditionalInfoAutoZoneIndicator string
AddressAdditionalInfoAutoZoneIndicator The automated zone indicator for the delivery unit.
- `A` - Carrier Route Sort Rates Apply - Merge Allowed.
- `B` - Carrier Route Sort Rates Apply - Merge Not Allowed.
- `C` - Carrier Route Sort Rates Do Not Apply - Merge Allowed.
- `D` - Carrier Route Sort Rates Do Not Apply - Merge Not Allowed.
const ( AddressAdditionalInfoAutoZoneIndicatorA AddressAdditionalInfoAutoZoneIndicator = "A" AddressAdditionalInfoAutoZoneIndicatorB AddressAdditionalInfoAutoZoneIndicator = "B" AddressAdditionalInfoAutoZoneIndicatorC AddressAdditionalInfoAutoZoneIndicator = "C" AddressAdditionalInfoAutoZoneIndicatorD AddressAdditionalInfoAutoZoneIndicator = "D" )
Defines values for AddressAdditionalInfoAutoZoneIndicator.
type AddressAdditionalInfoBaseAlternateCode ¶
type AddressAdditionalInfoBaseAlternateCode string
AddressAdditionalInfoBaseAlternateCode Base/Alternate code associated with ZIP + 4® record.
- `A` - Alternate record.
- `B` - Base record.
const ( AddressAdditionalInfoBaseAlternateCodeA AddressAdditionalInfoBaseAlternateCode = "A" AddressAdditionalInfoBaseAlternateCodeB AddressAdditionalInfoBaseAlternateCode = "B" )
Defines values for AddressAdditionalInfoBaseAlternateCode.
type AddressAdditionalInfoBusiness ¶
type AddressAdditionalInfoBusiness string
AddressAdditionalInfoBusiness Indicates whether this is a business address. * `Y` - The address is a business address. * `N` - The address is not a business address.
const ( AddressAdditionalInfoBusinessN AddressAdditionalInfoBusiness = "N" AddressAdditionalInfoBusinessY AddressAdditionalInfoBusiness = "Y" )
Defines values for AddressAdditionalInfoBusiness.
type AddressAdditionalInfoCentralDeliveryPoint ¶
type AddressAdditionalInfoCentralDeliveryPoint string
AddressAdditionalInfoCentralDeliveryPoint Central Delivery is for all business office buildings and/or industrial/professional parks. This may include call windows, horizontal locked mail receptacles, and cluster box units. * `Y` - The address is a central delivery point. * `N` - The address is not a central delivery point.
const ( AddressAdditionalInfoCentralDeliveryPointN AddressAdditionalInfoCentralDeliveryPoint = "N" AddressAdditionalInfoCentralDeliveryPointY AddressAdditionalInfoCentralDeliveryPoint = "Y" )
Defines values for AddressAdditionalInfoCentralDeliveryPoint.
type AddressAdditionalInfoDPVBusiness ¶
type AddressAdditionalInfoDPVBusiness string
AddressAdditionalInfoDPVBusiness Indicates whether this is a business address. * `Y` - The address is a business address. * `N` - The address is not a business address.
const ( AddressAdditionalInfoDPVBusinessN AddressAdditionalInfoDPVBusiness = "N" AddressAdditionalInfoDPVBusinessY AddressAdditionalInfoDPVBusiness = "Y" )
Defines values for AddressAdditionalInfoDPVBusiness.
type AddressAdditionalInfoDPVCMRA ¶
type AddressAdditionalInfoDPVCMRA string
AddressAdditionalInfoDPVCMRA Indicates if the location is a [Commercial Mail Receiving Agency (CMRA)](https://faq.usps.com/s/article/Commercial-Mail-Receiving-Agency-CMRA).
- `Y` - Address was found in the CMRA table.
- `N` - Address was not found in the CMRA table.
const ( AddressAdditionalInfoDPVCMRAN AddressAdditionalInfoDPVCMRA = "N" AddressAdditionalInfoDPVCMRAY AddressAdditionalInfoDPVCMRA = "Y" )
Defines values for AddressAdditionalInfoDPVCMRA.
type AddressAdditionalInfoDPVCentralBoxDelivery ¶
type AddressAdditionalInfoDPVCentralBoxDelivery string
AddressAdditionalInfoDPVCentralBoxDelivery Indicates the address mail delivery is central box.
- `Y` - The address has central box delivery.
- `N` - The address doesn't have central box delivery.
const ( AddressAdditionalInfoDPVCentralBoxDeliveryN AddressAdditionalInfoDPVCentralBoxDelivery = "N" AddressAdditionalInfoDPVCentralBoxDeliveryY AddressAdditionalInfoDPVCentralBoxDelivery = "Y" )
Defines values for AddressAdditionalInfoDPVCentralBoxDelivery.
type AddressAdditionalInfoDPVConfirmation ¶
type AddressAdditionalInfoDPVConfirmation string
AddressAdditionalInfoDPVConfirmation The DPV Confirmation indicator identifies whether the address provided maps to a known USPS address record, whether the USPS delivers to the address or not. If the USPS does not deliver to the address, the USPS may deliver to a PO Box instead. `carrierRoute` values of `R777` and `R779`, for example, may require the shipper to ask the recipient where they receive their USPS mail, which may be different than their physical address. * `Y` - Address was DPV confirmed for both primary and (if present) secondary numbers. A value of `Y` does not necessarily imply that USPS delivers to that address. * `D` - Address was DPV confirmed for the primary number only, and the secondary number information was missing. * `S` - Address was DPV confirmed for the primary number only, and the secondary number information was present but not confirmed. * `N` - Both primary and (if present) secondary number information failed to DPV confirm.
const ( AddressAdditionalInfoDPVConfirmationD AddressAdditionalInfoDPVConfirmation = "D" AddressAdditionalInfoDPVConfirmationN AddressAdditionalInfoDPVConfirmation = "N" AddressAdditionalInfoDPVConfirmationS AddressAdditionalInfoDPVConfirmation = "S" AddressAdditionalInfoDPVConfirmationY AddressAdditionalInfoDPVConfirmation = "Y" )
Defines values for AddressAdditionalInfoDPVConfirmation.
type AddressAdditionalInfoDPVCurbDelivery ¶
type AddressAdditionalInfoDPVCurbDelivery string
AddressAdditionalInfoDPVCurbDelivery Indicates the address mail delivery is curb.
- `Y` - The address has curb delivery.
- `N` - The address doesn't have curb delivery.
const ( AddressAdditionalInfoDPVCurbDeliveryN AddressAdditionalInfoDPVCurbDelivery = "N" AddressAdditionalInfoDPVCurbDeliveryY AddressAdditionalInfoDPVCurbDelivery = "Y" )
Defines values for AddressAdditionalInfoDPVCurbDelivery.
type AddressAdditionalInfoDPVDeliveryType ¶
type AddressAdditionalInfoDPVDeliveryType string
AddressAdditionalInfoDPVDeliveryType Indicates the delivery type.
- `1` - The address has curb delivery.
- `2` - The address has NDCBU delivery.
- `3` - The address has central box delivery.
- `4` - The address has other delivery.
const ( AddressAdditionalInfoDPVDeliveryTypeN1 AddressAdditionalInfoDPVDeliveryType = "1" AddressAdditionalInfoDPVDeliveryTypeN2 AddressAdditionalInfoDPVDeliveryType = "2" AddressAdditionalInfoDPVDeliveryTypeN3 AddressAdditionalInfoDPVDeliveryType = "3" AddressAdditionalInfoDPVDeliveryTypeN4 AddressAdditionalInfoDPVDeliveryType = "4" )
Defines values for AddressAdditionalInfoDPVDeliveryType.
type AddressAdditionalInfoDPVDrop ¶
type AddressAdditionalInfoDPVDrop string
AddressAdditionalInfoDPVDrop Indicates whether the address is a drop (mail is dropped off for more than 1 customer).
- `Y` - Address is a drop.
- `N` - Address is not a drop.
const ( AddressAdditionalInfoDPVDropN AddressAdditionalInfoDPVDrop = "N" AddressAdditionalInfoDPVDropY AddressAdditionalInfoDPVDrop = "Y" )
Defines values for AddressAdditionalInfoDPVDrop.
type AddressAdditionalInfoDPVEducational ¶
type AddressAdditionalInfoDPVEducational string
AddressAdditionalInfoDPVEducational Indicates whether the address is an educational location.
- `Y` - Address is educational.
- `N` - Address is not educational.
const ( AddressAdditionalInfoDPVEducationalN AddressAdditionalInfoDPVEducational = "N" AddressAdditionalInfoDPVEducationalY AddressAdditionalInfoDPVEducational = "Y" )
Defines values for AddressAdditionalInfoDPVEducational.
type AddressAdditionalInfoDPVEnhancedConfirmation ¶
type AddressAdditionalInfoDPVEnhancedConfirmation string
AddressAdditionalInfoDPVEnhancedConfirmation The DPV Confirmation indicator identifies whether the address is delivered to by the USPS. * `Y` - All components confirmed. * `D` - Secondary was dropped or trailing alpha on primary was dropped to confirm. * `S` - Address confirmed on primary number but secondary number required for complete address. * `R` - Address DPV Confirmed but USPS does not deliver to the address. * `N` - Primary number not confirmed.
const ( AddressAdditionalInfoDPVEnhancedConfirmationD AddressAdditionalInfoDPVEnhancedConfirmation = "D" AddressAdditionalInfoDPVEnhancedConfirmationN AddressAdditionalInfoDPVEnhancedConfirmation = "N" AddressAdditionalInfoDPVEnhancedConfirmationR AddressAdditionalInfoDPVEnhancedConfirmation = "R" AddressAdditionalInfoDPVEnhancedConfirmationS AddressAdditionalInfoDPVEnhancedConfirmation = "S" AddressAdditionalInfoDPVEnhancedConfirmationY AddressAdditionalInfoDPVEnhancedConfirmation = "Y" )
Defines values for AddressAdditionalInfoDPVEnhancedConfirmation.
type AddressAdditionalInfoDPVLACS ¶
type AddressAdditionalInfoDPVLACS string
AddressAdditionalInfoDPVLACS Indicates whether the address is an old side LACS address.
- `Y` - Address is a LACS address.
- `N` - Address is not a LACS address.
const ( AddressAdditionalInfoDPVLACSN AddressAdditionalInfoDPVLACS = "N" AddressAdditionalInfoDPVLACSY AddressAdditionalInfoDPVLACS = "Y" )
Defines values for AddressAdditionalInfoDPVLACS.
type AddressAdditionalInfoDPVNDCBUDelivery ¶
type AddressAdditionalInfoDPVNDCBUDelivery string
AddressAdditionalInfoDPVNDCBUDelivery Indicates the address mail delivery is NDCBU.
- `Y` - The address has NDCBU delivery.
- `N` - The address doesn't have NDCBU delivery.
const ( AddressAdditionalInfoDPVNDCBUDeliveryN AddressAdditionalInfoDPVNDCBUDelivery = "N" AddressAdditionalInfoDPVNDCBUDeliveryY AddressAdditionalInfoDPVNDCBUDelivery = "Y" )
Defines values for AddressAdditionalInfoDPVNDCBUDelivery.
type AddressAdditionalInfoDPVNoDoorDelivery ¶
type AddressAdditionalInfoDPVNoDoorDelivery string
AddressAdditionalInfoDPVNoDoorDelivery Indicates whether the address does not allow delivery at the door.
- `Y` - Address does not allow door delivery.
- `N` - Address allows door delivery.
const ( AddressAdditionalInfoDPVNoDoorDeliveryN AddressAdditionalInfoDPVNoDoorDelivery = "N" AddressAdditionalInfoDPVNoDoorDeliveryY AddressAdditionalInfoDPVNoDoorDelivery = "Y" )
Defines values for AddressAdditionalInfoDPVNoDoorDelivery.
type AddressAdditionalInfoDPVNoSecureLocation ¶
type AddressAdditionalInfoDPVNoSecureLocation string
AddressAdditionalInfoDPVNoSecureLocation Indicates the address is flagged as not a secure location.
- `Y` - The address is flagged as not a secure location.
- `N` - The address is not flagged as not a secure location.
const ( AddressAdditionalInfoDPVNoSecureLocationN AddressAdditionalInfoDPVNoSecureLocation = "N" AddressAdditionalInfoDPVNoSecureLocationY AddressAdditionalInfoDPVNoSecureLocation = "Y" )
Defines values for AddressAdditionalInfoDPVNoSecureLocation.
type AddressAdditionalInfoDPVNonDeliveryDaysFlag ¶
type AddressAdditionalInfoDPVNonDeliveryDaysFlag string
AddressAdditionalInfoDPVNonDeliveryDaysFlag Indicates the address doesn't have mail delivered on one or more days.
- `Y` - The address has non-delivery days.
- `N` - The address doesn't have non-delivery days.
const ( AddressAdditionalInfoDPVNonDeliveryDaysFlagN AddressAdditionalInfoDPVNonDeliveryDaysFlag = "N" AddressAdditionalInfoDPVNonDeliveryDaysFlagY AddressAdditionalInfoDPVNonDeliveryDaysFlag = "Y" )
Defines values for AddressAdditionalInfoDPVNonDeliveryDaysFlag.
type AddressAdditionalInfoDPVNostat ¶
type AddressAdditionalInfoDPVNostat string
AddressAdditionalInfoDPVNostat Indicates the address is not counted for statistical purposes.
- `Y` - The address is a nostat.
- `N` - The address is not a nostat.
const ( AddressAdditionalInfoDPVNostatN AddressAdditionalInfoDPVNostat = "N" AddressAdditionalInfoDPVNostatY AddressAdditionalInfoDPVNostat = "Y" )
Defines values for AddressAdditionalInfoDPVNostat.
type AddressAdditionalInfoDPVNostatReasonCode ¶
type AddressAdditionalInfoDPVNostatReasonCode string
AddressAdditionalInfoDPVNostatReasonCode Indicates the reason code for nostat flag.
- `1` - IDA (Internal Drop Address) - Addresses that do not receive mail directly from the USPS but are delivered to a drop address that services them (e.g., gated community).
- `2` - CDS Nostat - Addresses that have not yet become deliverable. For example, a new subdivision where lots and primary numbers have been determined, but no structure exists yet for occupancy.
- `4` - CMZ Nostat - College, military, and other types. ZIP + 4® records USPS has incorporated into the data.
- `5` - Regular nostat - Indicates addresses not receiving delivery and the addresses are not counted as possible deliveries.
- `6` - Secondary Required - The address requires secondary information (unconfirmed secondary entered or secondary missing).
const ( AddressAdditionalInfoDPVNostatReasonCodeN1 AddressAdditionalInfoDPVNostatReasonCode = "1" AddressAdditionalInfoDPVNostatReasonCodeN2 AddressAdditionalInfoDPVNostatReasonCode = "2" AddressAdditionalInfoDPVNostatReasonCodeN4 AddressAdditionalInfoDPVNostatReasonCode = "4" AddressAdditionalInfoDPVNostatReasonCodeN5 AddressAdditionalInfoDPVNostatReasonCode = "5" AddressAdditionalInfoDPVNostatReasonCodeN6 AddressAdditionalInfoDPVNostatReasonCode = "6" )
Defines values for AddressAdditionalInfoDPVNostatReasonCode.
type AddressAdditionalInfoDPVNostatReasonCodeDesc ¶
type AddressAdditionalInfoDPVNostatReasonCodeDesc string
AddressAdditionalInfoDPVNostatReasonCodeDesc Indicates the reason description for nostat flag.
- "IDA (Internal Drop Address)"
- "CDS Nostat"
- "CMZ Nostat"
- "Regular Nostat"
- "Secondary Required"
const ( CDSNOSTAT AddressAdditionalInfoDPVNostatReasonCodeDesc = "CDS_NOSTAT" CMZNOSTAT AddressAdditionalInfoDPVNostatReasonCodeDesc = "CMZ_NOSTAT" INTERNALDROPADDRESS AddressAdditionalInfoDPVNostatReasonCodeDesc = "INTERNAL_DROP_ADDRESS" REGULARNOSTAT AddressAdditionalInfoDPVNostatReasonCodeDesc = "REGULAR_NOSTAT" SECONDARYREQUIRED AddressAdditionalInfoDPVNostatReasonCodeDesc = "SECONDARY_REQUIRED" )
Defines values for AddressAdditionalInfoDPVNostatReasonCodeDesc.
type AddressAdditionalInfoDPVOtherDelivery ¶
type AddressAdditionalInfoDPVOtherDelivery string
AddressAdditionalInfoDPVOtherDelivery Indicates the address mail delivery is other.
- `Y` - The address has other delivery.
- `N` - The address doesn't have other delivery.
const ( AddressAdditionalInfoDPVOtherDeliveryN AddressAdditionalInfoDPVOtherDelivery = "N" AddressAdditionalInfoDPVOtherDeliveryY AddressAdditionalInfoDPVOtherDelivery = "Y" )
Defines values for AddressAdditionalInfoDPVOtherDelivery.
type AddressAdditionalInfoDPVPBSA ¶
type AddressAdditionalInfoDPVPBSA string
AddressAdditionalInfoDPVPBSA Indicates whether the address is a PO Box Street Address.
- `Y` - Address is a PBSA.
- `N` - Address is not a PBSA.
const ( AddressAdditionalInfoDPVPBSAN AddressAdditionalInfoDPVPBSA = "N" AddressAdditionalInfoDPVPBSAY AddressAdditionalInfoDPVPBSA = "Y" )
Defines values for AddressAdditionalInfoDPVPBSA.
type AddressAdditionalInfoDPVSeasonal ¶
type AddressAdditionalInfoDPVSeasonal string
AddressAdditionalInfoDPVSeasonal Indicates the address is seasonal.
- `Y` - The address is seasonal.
- `N` - The address is not seasonal.
const ( AddressAdditionalInfoDPVSeasonalN AddressAdditionalInfoDPVSeasonal = "N" AddressAdditionalInfoDPVSeasonalY AddressAdditionalInfoDPVSeasonal = "Y" )
Defines values for AddressAdditionalInfoDPVSeasonal.
type AddressAdditionalInfoDPVThrowback ¶
type AddressAdditionalInfoDPVThrowback string
AddressAdditionalInfoDPVThrowback Indicates the address is a throwback (actual delivery is to a PO Box).
- `Y` - The address is a throwback.
- `N` - The address is not a throwback.
const ( AddressAdditionalInfoDPVThrowbackN AddressAdditionalInfoDPVThrowback = "N" AddressAdditionalInfoDPVThrowbackY AddressAdditionalInfoDPVThrowback = "Y" )
Defines values for AddressAdditionalInfoDPVThrowback.
type AddressAdditionalInfoDPVUsageCode ¶
type AddressAdditionalInfoDPVUsageCode string
AddressAdditionalInfoDPVUsageCode Indicates when usage is mixed business/residential.
- `A` - The address is residential.
- `B` - The address is business.
- `C` - The address mixed residential/business, but mostly residential.
- `D` - The address mixed residential/business, but mostly business.
- `G` - The address is General Delivery.
- ` ` - The address has no usage code assigned.
const ( AddressAdditionalInfoDPVUsageCodeA AddressAdditionalInfoDPVUsageCode = "A" AddressAdditionalInfoDPVUsageCodeB AddressAdditionalInfoDPVUsageCode = "B" AddressAdditionalInfoDPVUsageCodeC AddressAdditionalInfoDPVUsageCode = "C" AddressAdditionalInfoDPVUsageCodeD AddressAdditionalInfoDPVUsageCode = "D" AddressAdditionalInfoDPVUsageCodeEmpty AddressAdditionalInfoDPVUsageCode = " " AddressAdditionalInfoDPVUsageCodeG AddressAdditionalInfoDPVUsageCode = "G" )
Defines values for AddressAdditionalInfoDPVUsageCode.
type AddressAdditionalInfoDPVVacant ¶
type AddressAdditionalInfoDPVVacant string
AddressAdditionalInfoDPVVacant Indicates whether the location designated by the address is occupied.
- `Y` - The address is not occupied.
- `N` - The address is occupied.
const ( AddressAdditionalInfoDPVVacantN AddressAdditionalInfoDPVVacant = "N" AddressAdditionalInfoDPVVacantY AddressAdditionalInfoDPVVacant = "Y" )
Defines values for AddressAdditionalInfoDPVVacant.
type AddressAdditionalInfoDefaultFlag ¶
type AddressAdditionalInfoDefaultFlag string
AddressAdditionalInfoDefaultFlag Indicates the address matched is a default.
- `Y` - The address matched is a default.
- `N` - The address matched is not a default.
const ( AddressAdditionalInfoDefaultFlagN AddressAdditionalInfoDefaultFlag = "N" AddressAdditionalInfoDefaultFlagY AddressAdditionalInfoDefaultFlag = "Y" )
Defines values for AddressAdditionalInfoDefaultFlag.
type AddressAdditionalInfoELOTCode ¶
type AddressAdditionalInfoELOTCode string
AddressAdditionalInfoELOTCode eLOT Ascending/Descending Code
- `A` - eLOT Number Ascending
- `D` - eLOT Number Descending
const ( AddressAdditionalInfoELOTCodeA AddressAdditionalInfoELOTCode = "A" AddressAdditionalInfoELOTCodeD AddressAdditionalInfoELOTCode = "D" )
Defines values for AddressAdditionalInfoELOTCode.
type AddressAdditionalInfoElectricVehicleRoute ¶
type AddressAdditionalInfoElectricVehicleRoute bool
AddressAdditionalInfoElectricVehicleRoute Denotes if the carrier route associated with the address has electric vehicles.
- true - The carrier route has electric vehicles
- false - The carrier route does not have electric vehicles
const ( False AddressAdditionalInfoElectricVehicleRoute = false True AddressAdditionalInfoElectricVehicleRoute = true )
Defines values for AddressAdditionalInfoElectricVehicleRoute.
type AddressAdditionalInfoLACSIndicator ¶
type AddressAdditionalInfoLACSIndicator string
AddressAdditionalInfoLACSIndicator LACS Indicator associated with ZIP + 4® record.
- `L` - LACS Indicator present.
- “ - LACS Indicator not present.
const ( AddressAdditionalInfoLACSIndicatorEmpty AddressAdditionalInfoLACSIndicator = "" AddressAdditionalInfoLACSIndicatorL AddressAdditionalInfoLACSIndicator = "L" )
Defines values for AddressAdditionalInfoLACSIndicator.
type AddressAdditionalInfoLACSLinkIndicator ¶
type AddressAdditionalInfoLACSLinkIndicator string
AddressAdditionalInfoLACSLinkIndicator Indicates if a match was found from LACSLink.
- `Y` - LACSLink address found.
- `N` - LACSLink address not found.
- `S` - LACSLink address converted but secondary dropped.
- `F` - LACSLink false positive address encountered.
const ( AddressAdditionalInfoLACSLinkIndicatorF AddressAdditionalInfoLACSLinkIndicator = "F" AddressAdditionalInfoLACSLinkIndicatorN AddressAdditionalInfoLACSLinkIndicator = "N" AddressAdditionalInfoLACSLinkIndicatorS AddressAdditionalInfoLACSLinkIndicator = "S" AddressAdditionalInfoLACSLinkIndicatorY AddressAdditionalInfoLACSLinkIndicator = "Y" )
Defines values for AddressAdditionalInfoLACSLinkIndicator.
type AddressAdditionalInfoLACSLinkReturnCode ¶
type AddressAdditionalInfoLACSLinkReturnCode string
AddressAdditionalInfoLACSLinkReturnCode The return code from the LACSLink inquiry.
- `00` - LACSLink no match.
- `14` - Multiple LACSLink addresses found, unable to break tie.
- `A` - LACSLink address converted without modifications.
- `92` - LACSLink address converted but secondary dropped.
const ( AddressAdditionalInfoLACSLinkReturnCodeA AddressAdditionalInfoLACSLinkReturnCode = "A" AddressAdditionalInfoLACSLinkReturnCodeN00 AddressAdditionalInfoLACSLinkReturnCode = "00" AddressAdditionalInfoLACSLinkReturnCodeN14 AddressAdditionalInfoLACSLinkReturnCode = "14" AddressAdditionalInfoLACSLinkReturnCodeN92 AddressAdditionalInfoLACSLinkReturnCode = "92" )
Defines values for AddressAdditionalInfoLACSLinkReturnCode.
type AddressAdditionalInfoPOBoxOnlyZIP ¶
type AddressAdditionalInfoPOBoxOnlyZIP string
AddressAdditionalInfoPOBoxOnlyZIP Indicates if the returned ZIP Code facility only serves PO Box addresses.
- `Y` - The ZIP Code facility only serves PO Box addresses.
- `N` - The ZIP Code facility serves non-PO Box addresses.
const ( AddressAdditionalInfoPOBoxOnlyZIPN AddressAdditionalInfoPOBoxOnlyZIP = "N" AddressAdditionalInfoPOBoxOnlyZIPY AddressAdditionalInfoPOBoxOnlyZIP = "Y" )
Defines values for AddressAdditionalInfoPOBoxOnlyZIP.
type AddressAdditionalInfoRecordType ¶
type AddressAdditionalInfoRecordType string
AddressAdditionalInfoRecordType The record type of the ZIP + 4® match.
- `G` - General Delivery
- `P` - PO Box
- `R` - Rural Route/Highway Contract
- `H` - Highrise
- `F` - Firm
- `S` - Street
const ( F AddressAdditionalInfoRecordType = "F" G AddressAdditionalInfoRecordType = "G" H AddressAdditionalInfoRecordType = "H" P AddressAdditionalInfoRecordType = "P" R AddressAdditionalInfoRecordType = "R" S AddressAdditionalInfoRecordType = "S" )
Defines values for AddressAdditionalInfoRecordType.
type AddressAdditionalInfoReturnCode ¶
type AddressAdditionalInfoReturnCode float32
AddressAdditionalInfoReturnCode The return code from the address match. * `32` - Default Match * `31` - Single Match * `22` - Multiple Response Match * `21` - Address Not Found * `13` - Invalid City * `12` - Invalid State Code * `11` - Invalid ZIP Code * `10` - Invalid Address
const ( N10 AddressAdditionalInfoReturnCode = 10 N11 AddressAdditionalInfoReturnCode = 11 N12 AddressAdditionalInfoReturnCode = 12 N13 AddressAdditionalInfoReturnCode = 13 N21 AddressAdditionalInfoReturnCode = 21 N22 AddressAdditionalInfoReturnCode = 22 N31 AddressAdditionalInfoReturnCode = 31 N32 AddressAdditionalInfoReturnCode = 32 )
Defines values for AddressAdditionalInfoReturnCode.
type AddressAdditionalInfoSuiteLinkIndicator ¶
type AddressAdditionalInfoSuiteLinkIndicator string
AddressAdditionalInfoSuiteLinkIndicator Indicates if a match was found from SuiteLink.
- `00` - SuiteLink no match.
- `A` - SuiteLink match.
const ( A AddressAdditionalInfoSuiteLinkIndicator = "A" N00 AddressAdditionalInfoSuiteLinkIndicator = "00" )
Defines values for AddressAdditionalInfoSuiteLinkIndicator.
type AddressAdditionalInfoVacant ¶
type AddressAdditionalInfoVacant string
AddressAdditionalInfoVacant Indicates whether the location designated by the address is occupied. * `Y` - The address is not occupied. * `N` - The address is occupied.
const ( AddressAdditionalInfoVacantN AddressAdditionalInfoVacant = "N" AddressAdditionalInfoVacantY AddressAdditionalInfoVacant = "Y" )
Defines values for AddressAdditionalInfoVacant.
type AddressAdditionalInfoZIP5Valid ¶
type AddressAdditionalInfoZIP5Valid string
AddressAdditionalInfoZIP5Valid Indicates if the returned ZIP Code corresponds to the returned City/State.
- `Y` - The ZIP Code matches the City/State.
- `N` - The ZIP Code doesn't match the City/State.
const ( AddressAdditionalInfoZIP5ValidN AddressAdditionalInfoZIP5Valid = "N" AddressAdditionalInfoZIP5ValidY AddressAdditionalInfoZIP5Valid = "Y" )
Defines values for AddressAdditionalInfoZIP5Valid.
type AddressCorrections ¶
type AddressCorrections = []struct {
// Code The code corresponding to the address correction.
Code *string `json:"code,omitempty"`
// Text This is the description of the address correction.
Text *string `json:"text,omitempty"`
}
AddressCorrections Codes that indicate how to improve the address input to get a better match.
Code `32` will indicate "Default address: The address you entered was found but more information is needed (such as an apartment, suite, or box number." The recommended change would be to add additional information, such as an apartment, suite, or box number, to match to a specific address.
Code `22` will indicate "Multiple addresses were found for the information you entered, and no default exists." The address could not be resolved as entered and more information would be needed to identify the address.
type AddressMatches ¶
type AddressMatches = []struct {
Code *string `json:"code,omitempty"`
Text *string `json:"text,omitempty"`
}
AddressMatches Codes that indicate if an address is an exact match.
Code `31` will be returned "Single Response - exact match" indicating that the address was correctly matched to a ZIP+4 record.
type AddressResponse ¶
type AddressResponse struct {
// AdditionalInfo Extra information about the request.
AdditionalInfo *AddressAdditionalInfo `json:"additionalInfo,omitempty"`
// Address Address fields for US locations
Address *DomesticAddress `json:"address,omitempty"`
// Corrections Codes that indicate how to improve the address input to get a better match.
//
// Code `32` will indicate "Default address: The address you entered was found but more information is needed (such as an apartment, suite, or box number." The recommended change would be to add additional information, such as an apartment, suite, or box number, to match to a specific address.
//
// Code `22` will indicate "Multiple addresses were found for the information you entered, and no default exists." The address could not be resolved as entered and more information would be needed to identify the address.
Corrections *AddressCorrections `json:"corrections,omitempty"`
// Firm This is the firm/business name at the address.
Firm *string `json:"firm,omitempty"`
// Matches Codes that indicate if an address is an exact match.
//
// Code `31` will be returned "Single Response - exact match" indicating that the address was correctly matched to a ZIP+4 record.
Matches *AddressMatches `json:"matches,omitempty"`
Warnings *[]string `json:"warnings,omitempty"`
}
AddressResponse Standardizes street addresses including city and street abbreviations, and provides missing information such as ZIP Code™ and ZIP + 4®.
type CityAndState ¶
type CityAndState struct {
// ZIPCode This is the ZIP Code of the address.
ZIPCode *string `json:"ZIPCode,omitempty"`
// City This is the city name of the address.
City *string `json:"city,omitempty"`
// State This is two-character state code of the address.
State *string `json:"state,omitempty"`
}
CityAndState defines model for CityAndState.
type CityStateResponse ¶
type CityStateResponse = CityAndState
CityStateResponse defines model for CityStateResponse.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetAddress ¶
func (c *Client) GetAddress(ctx context.Context, params *GetAddressParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCityState ¶
func (c *Client) GetCityState(ctx context.Context, params *GetCityStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetZIPCode ¶
func (c *Client) GetZIPCode(ctx context.Context, params *GetZIPCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetAddress request
GetAddress(ctx context.Context, params *GetAddressParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCityState request
GetCityState(ctx context.Context, params *GetCityStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZIPCode request
GetZIPCode(ctx context.Context, params *GetZIPCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetAddressWithResponse ¶
func (c *ClientWithResponses) GetAddressWithResponse(ctx context.Context, params *GetAddressParams, reqEditors ...RequestEditorFn) (*GetAddressResponse, error)
GetAddressWithResponse request returning *GetAddressResponse
func (*ClientWithResponses) GetCityStateWithResponse ¶
func (c *ClientWithResponses) GetCityStateWithResponse(ctx context.Context, params *GetCityStateParams, reqEditors ...RequestEditorFn) (*GetCityStateResponse, error)
GetCityStateWithResponse request returning *GetCityStateResponse
func (*ClientWithResponses) GetZIPCodeWithResponse ¶
func (c *ClientWithResponses) GetZIPCodeWithResponse(ctx context.Context, params *GetZIPCodeParams, reqEditors ...RequestEditorFn) (*GetZIPCodeResponse, error)
GetZIPCodeWithResponse request returning *GetZIPCodeResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAddressWithResponse request
GetAddressWithResponse(ctx context.Context, params *GetAddressParams, reqEditors ...RequestEditorFn) (*GetAddressResponse, error)
// GetCityStateWithResponse request
GetCityStateWithResponse(ctx context.Context, params *GetCityStateParams, reqEditors ...RequestEditorFn) (*GetCityStateResponse, error)
// GetZIPCodeWithResponse request
GetZIPCodeWithResponse(ctx context.Context, params *GetZIPCodeParams, reqEditors ...RequestEditorFn) (*GetZIPCodeResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DomesticAddress ¶
type DomesticAddress struct {
// ZIPCode This is the 5-digit ZIP code.
ZIPCode *string `json:"ZIPCode,omitempty"`
// ZIPPlus4 This is the 4-digit component of the ZIP+4 code. Using the correct ZIP+4 reduces the number of times your mail is handled and can decrease the chance of a misdelivery or error.
ZIPPlus4 *string `json:"ZIPPlus4"`
// City This is the city name of the address.
City *string `json:"city,omitempty"`
// CityAbbreviation This is the abbreviation of the city name for the address.
CityAbbreviation *string `json:"cityAbbreviation,omitempty"`
// Lastline This is the lastline information (City/State/ZIP Code, where available) without the abbreviated City name.
Lastline *string `json:"lastline,omitempty"`
// LastlineAbbr This is the lastline information (City/State/ZIP Code, where available) with the abbreviated City name.
LastlineAbbr *string `json:"lastlineAbbr,omitempty"`
// SecondaryAddress The secondary unit designator, such as apartment (APT) or suite (STE), along with the APT/STE value, defining the exact location of the address within a building. Information initially entered on the secondaryAddress request field may not appear in the response secondaryAddress field when it's used to provide a standardized address (see streetAddress). This field may also contain information provided on the request secondaryAddress when it does not contain address information (e.g., c/o or ATTN information).
SecondaryAddress *string `json:"secondaryAddress,omitempty"`
// State The two-character state code.
State *State `json:"state,omitempty"`
// StreetAddress The number of a building along with the name of the road or street on which it is located. This may also contain secondary address information when it is used to provide a standardized address.
StreetAddress *string `json:"streetAddress,omitempty"`
// StreetAddressAbbreviation This is the abbreviation of the primary street address line for the address.
StreetAddressAbbreviation *string `json:"streetAddressAbbreviation,omitempty"`
// Urbanization An area, sector, or residential development within a geographic area (currently only used for addresses in Puerto Rico).
Urbanization *string `json:"urbanization,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DomesticAddress defines model for DomesticAddress.
func (DomesticAddress) Get ¶
func (a DomesticAddress) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DomesticAddress. Returns the specified element and whether it was found
func (DomesticAddress) MarshalJSON ¶
func (a DomesticAddress) MarshalJSON() ([]byte, error)
Override default JSON handling for DomesticAddress to handle AdditionalProperties
func (*DomesticAddress) Set ¶
func (a *DomesticAddress) Set(fieldName string, value interface{})
Setter for additional properties for DomesticAddress
func (*DomesticAddress) UnmarshalJSON ¶
func (a *DomesticAddress) UnmarshalJSON(b []byte) error
Override default JSON handling for DomesticAddress to handle AdditionalProperties
type ErrorMessage ¶
type ErrorMessage struct {
// ApiVersion The version of the API that was used and that raised the error.
ApiVersion *string `json:"apiVersion,omitempty"`
// Error The high-level error that has occurred as indicated by the status code.
Error *ErrorMessage_Error `json:"error,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage Standard error message response.
func (ErrorMessage) Get ¶
func (a ErrorMessage) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage. Returns the specified element and whether it was found
func (ErrorMessage) MarshalJSON ¶
func (a ErrorMessage) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage to handle AdditionalProperties
func (*ErrorMessage) Set ¶
func (a *ErrorMessage) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage
func (*ErrorMessage) UnmarshalJSON ¶
func (a *ErrorMessage) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage to handle AdditionalProperties
type ErrorMessage_Error ¶
type ErrorMessage_Error struct {
// Code The error status code that has been returned in response to the request.
Code *string `json:"code,omitempty"`
Errors *[]ErrorMessage_Error_Errors_Item `json:"errors,omitempty"`
// Message A human-readable message describing the error.
Message *string `json:"message,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage_Error The high-level error that has occurred as indicated by the status code.
func (ErrorMessage_Error) Get ¶
func (a ErrorMessage_Error) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage_Error. Returns the specified element and whether it was found
func (ErrorMessage_Error) MarshalJSON ¶
func (a ErrorMessage_Error) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties
func (*ErrorMessage_Error) Set ¶
func (a *ErrorMessage_Error) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage_Error
func (*ErrorMessage_Error) UnmarshalJSON ¶
func (a *ErrorMessage_Error) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties
type ErrorMessage_Error_Errors_Item ¶
type ErrorMessage_Error_Errors_Item struct {
// Code An internal subordinate code used for error diagnosis.
Code *string `json:"code,omitempty"`
// Detail A human-readable description of the error that occurred.
Detail *string `json:"detail,omitempty"`
// Source The element that is suspected of originating the error. Helps to pinpoint the problem.
Source *ErrorMessage_Error_Errors_Source `json:"source,omitempty"`
// Status The status code response returned to the client.
Status *string `json:"status,omitempty"`
// Title A human-readable title that identifies the error.
Title *string `json:"title,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage_Error_Errors_Item defines model for ErrorMessage.Error.Errors.Item.
func (ErrorMessage_Error_Errors_Item) Get ¶
func (a ErrorMessage_Error_Errors_Item) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage_Error_Errors_Item. Returns the specified element and whether it was found
func (ErrorMessage_Error_Errors_Item) MarshalJSON ¶
func (a ErrorMessage_Error_Errors_Item) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties
func (*ErrorMessage_Error_Errors_Item) Set ¶
func (a *ErrorMessage_Error_Errors_Item) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage_Error_Errors_Item
func (*ErrorMessage_Error_Errors_Item) UnmarshalJSON ¶
func (a *ErrorMessage_Error_Errors_Item) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties
type ErrorMessage_Error_Errors_Source ¶
type ErrorMessage_Error_Errors_Source struct {
// Example An example of a valid value for the input parameter.
Example *string `json:"example,omitempty"`
// Parameter The input in the request which caused an error.
Parameter *string `json:"parameter,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage_Error_Errors_Source The element that is suspected of originating the error. Helps to pinpoint the problem.
func (ErrorMessage_Error_Errors_Source) Get ¶
func (a ErrorMessage_Error_Errors_Source) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage_Error_Errors_Source. Returns the specified element and whether it was found
func (ErrorMessage_Error_Errors_Source) MarshalJSON ¶
func (a ErrorMessage_Error_Errors_Source) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties
func (*ErrorMessage_Error_Errors_Source) Set ¶
func (a *ErrorMessage_Error_Errors_Source) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage_Error_Errors_Source
func (*ErrorMessage_Error_Errors_Source) UnmarshalJSON ¶
func (a *ErrorMessage_Error_Errors_Source) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties
type GetAddressParams ¶
type GetAddressParams struct {
// Firm Firm/business corresponding to the address.
Firm *string `form:"firm,omitempty" json:"firm,omitempty"`
// StreetAddress The number of a building along with the name of the road or street on which it is located. This may also contain secondary address information instead of being separate in the secondaryAddress field.
StreetAddress string `form:"streetAddress" json:"streetAddress"`
// SecondaryAddress The secondary unit designator, such as apartment (APT) or suite (STE), along with the APT/STE value, defining the exact location of the address within a building. This information can be added to the end of the `streetAddress` field instead of separated to this field. For more information please see [Postal Explorer](https://pe.usps.com/text/pub28/28c2_003.htm).
SecondaryAddress *string `form:"secondaryAddress,omitempty" json:"secondaryAddress,omitempty"`
// City This is the city name of the address.
City *string `form:"city,omitempty" json:"city,omitempty"`
// State The two-character state code of the address.
State *string `form:"state,omitempty" json:"state,omitempty"`
// Urbanization This is the urbanization code relevant only for Puerto Rico addresses.
Urbanization *string `form:"urbanization,omitempty" json:"urbanization,omitempty"`
// ZIPCode This is the 5-digit ZIP code.
ZIPCode *string `form:"ZIPCode,omitempty" json:"ZIPCode,omitempty"`
// ZIPPlus4 This is the 4-digit component of the ZIP+4 code. Using the correct ZIP+4 reduces the number of times your mail is handled and can decrease the chance of a misdelivery or error.
ZIPPlus4 *string `form:"ZIPPlus4,omitempty" json:"ZIPPlus4,omitempty"`
}
GetAddressParams defines parameters for GetAddress.
type GetAddressResponse ¶
type GetAddressResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddressResponse
XML200 *AddressResponse
JSON400 *ErrorMessage
XML400 *ErrorMessage
JSON401 *ErrorMessage
XML401 *ErrorMessage
JSON403 *ErrorMessage
XML403 *ErrorMessage
JSON404 *ErrorMessage
XML404 *ErrorMessage
JSON429 *ErrorMessage
XML429 *ErrorMessage
JSON503 *ErrorMessage
XML503 *ErrorMessage
}
func ParseGetAddressResponse ¶
func ParseGetAddressResponse(rsp *http.Response) (*GetAddressResponse, error)
ParseGetAddressResponse parses an HTTP response from a GetAddressWithResponse call
func (GetAddressResponse) Status ¶
func (r GetAddressResponse) Status() string
Status returns HTTPResponse.Status
func (GetAddressResponse) StatusCode ¶
func (r GetAddressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCityStateParams ¶
type GetCityStateParams struct {
// ZIPCode This is the 5-digit ZIP code.
ZIPCode string `form:"ZIPCode" json:"ZIPCode"`
}
GetCityStateParams defines parameters for GetCityState.
type GetCityStateResponse ¶
type GetCityStateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CityStateResponse
XML200 *CityStateResponse
JSON400 *ErrorMessage
XML400 *ErrorMessage
JSON401 *ErrorMessage
XML401 *ErrorMessage
JSON403 *ErrorMessage
XML403 *ErrorMessage
JSON429 *ErrorMessage
XML429 *ErrorMessage
JSON503 *ErrorMessage
XML503 *ErrorMessage
}
func ParseGetCityStateResponse ¶
func ParseGetCityStateResponse(rsp *http.Response) (*GetCityStateResponse, error)
ParseGetCityStateResponse parses an HTTP response from a GetCityStateWithResponse call
func (GetCityStateResponse) Status ¶
func (r GetCityStateResponse) Status() string
Status returns HTTPResponse.Status
func (GetCityStateResponse) StatusCode ¶
func (r GetCityStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZIPCodeParams ¶
type GetZIPCodeParams struct {
// Firm Firm/business corresponding to the address.
Firm *string `form:"firm,omitempty" json:"firm,omitempty"`
// StreetAddress The number of a building along with the name of the road or street on which it is located. This may also contain secondary address information when it is used to provide a standardized address or is provided in the associated request field.
StreetAddress string `form:"streetAddress" json:"streetAddress"`
// SecondaryAddress The secondary unit designator, such as apartment (APT) or suite (STE), along with the APT/STE value, defining the exact location of the address within a building. Information initially entered on the secondaryAddress request field may not appear in the response secondaryAddress field when it’s used to provide a standardized address (see streetAddress). This field may also contain information when it does not contain address information (e.g., c/o or ATTN information). For more information please see [Postal Explorer](https://pe.usps.com/text/pub28/28c2_003.htm).
SecondaryAddress *string `form:"secondaryAddress,omitempty" json:"secondaryAddress,omitempty"`
// City This is the city name of the address.
City string `form:"city" json:"city"`
// State This is the two-character state code of the address.
State string `form:"state" json:"state"`
// ZIPCode This is the 5-digit ZIP code.
ZIPCode *string `form:"ZIPCode,omitempty" json:"ZIPCode,omitempty"`
// ZIPPlus4 This is the 4-digit component of the ZIP+4 code. Using the correct ZIP+4 reduces the number of times your mail is handled and can decrease the chance of a misdelivery or error.
ZIPPlus4 *string `form:"ZIPPlus4,omitempty" json:"ZIPPlus4,omitempty"`
}
GetZIPCodeParams defines parameters for GetZIPCode.
type GetZIPCodeResponse ¶
type GetZIPCodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ZIPCodeResponse
XML200 *ZIPCodeResponse
JSON400 *ErrorMessage
XML400 *ErrorMessage
JSON401 *ErrorMessage
XML401 *ErrorMessage
JSON403 *ErrorMessage
XML403 *ErrorMessage
JSON429 *ErrorMessage
XML429 *ErrorMessage
JSON503 *ErrorMessage
XML503 *ErrorMessage
}
func ParseGetZIPCodeResponse ¶
func ParseGetZIPCodeResponse(rsp *http.Response) (*GetZIPCodeResponse, error)
ParseGetZIPCodeResponse parses an HTTP response from a GetZIPCodeWithResponse call
func (GetZIPCodeResponse) Status ¶
func (r GetZIPCodeResponse) Status() string
Status returns HTTPResponse.Status
func (GetZIPCodeResponse) StatusCode ¶
func (r GetZIPCodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ZIPCodeResponse ¶
type ZIPCodeResponse struct {
// Address Address fields for US locations
Address *DomesticAddress `json:"address,omitempty"`
// Firm This is the firm/business name at the address.
Firm *string `json:"firm,omitempty"`
}
ZIPCodeResponse The address to validate the ZIP Code™ for.