From 123b50a3a2f462faf02eca350d68135b5e94495b Mon Sep 17 00:00:00 2001 From: Michel Perez Date: Mon, 30 Oct 2023 16:27:28 -0500 Subject: [PATCH] adding new dpv footnotes --- docs/DeliverabilityAnalysis.md | 24 +- docs/DpvFootnote.md | 0 docs/UsComponents.md | 49 +-- .../Model/DeliverabilityAnalysis.cs | 279 +++++++++++++++++- src/lob.dotnet/Model/DpvFootnote.cs | 46 ++- src/lob.dotnet/Model/UsComponents.cs | 47 ++- 6 files changed, 399 insertions(+), 46 deletions(-) mode change 100644 => 100755 docs/DeliverabilityAnalysis.md mode change 100644 => 100755 docs/DpvFootnote.md mode change 100644 => 100755 docs/UsComponents.md diff --git a/docs/DeliverabilityAnalysis.md b/docs/DeliverabilityAnalysis.md old mode 100644 new mode 100755 index e9b89c6..7aba48d --- a/docs/DeliverabilityAnalysis.md +++ b/docs/DeliverabilityAnalysis.md @@ -5,15 +5,21 @@ A nested object containing a breakdown of the deliverability of an address. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DpvConfirmation** | **string** | 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. | [optional] -**DpvCmra** | **string** | 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). | [optional] -**DpvVacant** | **string** | 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). | [optional] -**DpvActive** | **string** | 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). | [optional] -**DpvFootnotes** | [**List<DpvFootnote>**](DpvFootnote.md) | 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). | [optional] -**EwsMatch** | **bool** | 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. | [optional] -**LacsIndicator** | **string** | 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). | [optional] -**LacsReturnCode** | **string** | 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. | [optional] -**SuiteReturnCode** | **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. | [optional] +**DpvConfirmation** | **string** | 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. | +**DpvCmra** | **string** | 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). | +**DpvVacant** | **string** | 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). | +**DpvActive** | **string** | 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). | +**DpvInactiveReason** | **string** | 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. | +**DpvThrowback** | **string** | 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). | +**DpvNonDeliveryDayFlag** | **string** | 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). | +**DpvNonDeliveryDayValues** | **string** | 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). | +**DpvNoSecureLocation** | **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). | +**DpvDoorNotAccessible** | **string** | 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). | +**DpvFootnotes** | [**List<DpvFootnote>**](DpvFootnote.md) | 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). | +**EwsMatch** | **bool** | 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. | +**LacsIndicator** | **string** | 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). | +**LacsReturnCode** | **string** | 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. | +**SuiteReturnCode** | **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. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DpvFootnote.md b/docs/DpvFootnote.md old mode 100644 new mode 100755 diff --git a/docs/UsComponents.md b/docs/UsComponents.md old mode 100644 new mode 100755 index 31b8a76..ef4cd3a --- a/docs/UsComponents.md +++ b/docs/UsComponents.md @@ -5,30 +5,31 @@ A nested object containing a breakdown of each component of an address. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PrimaryNumber** | **string** | The numeric or alphanumeric part of an address preceding the street name. Often the house, building, or PO Box number. | [optional] -**StreetPredirection** | **string** | Geographic direction preceding a street name (`N`, `S`, `E`, `W`, `NE`, `SW`, `SE`, `NW`). | [optional] -**StreetName** | **string** | The name of the street. | [optional] -**StreetSuffix** | **string** | The standard USPS abbreviation for the street suffix (`ST`, `AVE`, `BLVD`, etc). | [optional] -**StreetPostdirection** | **string** | Geographic direction following a street name (`N`, `S`, `E`, `W`, `NE`, `SW`, `SE`, `NW`). | [optional] -**SecondaryDesignator** | **string** | The standard USPS abbreviation describing the `components[secondary_number]` (`STE`, `APT`, `BLDG`, etc). | [optional] -**SecondaryNumber** | **string** | Number of the apartment/unit/etc. | [optional] -**PmbDesignator** | **string** | Designator of a [CMRA-authorized](https://en.wikipedia.org/wiki/Commercial_mail_receiving_agency) private mailbox. | [optional] -**PmbNumber** | **string** | Number of a [CMRA-authorized](https://en.wikipedia.org/wiki/Commercial_mail_receiving_agency) private mailbox. | [optional] -**ExtraSecondaryDesignator** | **string** | An extra (often unnecessary) secondary designator provided with the input address. | [optional] -**ExtraSecondaryNumber** | **string** | An extra (often unnecessary) secondary number provided with the input address. | [optional] -**City** | **string** | | [optional] -**State** | **string** | The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) two letter code for the state. | [optional] -**ZipCode** | **string** | The 5-digit ZIP code | [optional] -**ZipCodePlus4** | **string** | | [optional] -**ZipCodeType** | [**ZipCodeType**](ZipCodeType.md) | | [optional] -**DeliveryPointBarcode** | **string** | A 12-digit identifier that uniquely identifies a delivery point (location where mail can be sent and received). It consists of the 5-digit ZIP code (`zip_code`), 4-digit ZIP+4 add-on (`zip_code_plus_4`), 2-digit delivery point, and 1-digit delivery point check digit. | [optional] -**AddressType** | **string** | Uses USPS's [Residential Delivery Indicator (RDI)](https://www.usps.com/nationalpremieraccounts/rdi.htm) to identify whether an address is classified as residential or business. Possible values are: * `residential` –– The address is residential or a PO Box. * `commercial` –– The address is commercial. * `''` –– Not enough information provided to be determined. | [optional] -**RecordType** | **string** | A description of the type of address. Populated if a DPV match is made (`deliverability_analysis[dpv_confirmation]` is `Y`, `S`, or `D`). For more detailed information about each record type, see [US Verification Details](#tag/US-Verification-Types). | [optional] -**DefaultBuildingAddress** | **bool** | Designates whether or not the address is the default address for a building containing multiple delivery points. | [optional] -**County** | **string** | County name of the address city. | [optional] -**CountyFips** | **string** | A 5-digit [FIPS county code](https://en.wikipedia.org/wiki/FIPS_county_code) which uniquely identifies `components[county]`. It consists of a 2-digit state code and a 3-digit county code. | [optional] -**CarrierRoute** | **string** | A 4-character code assigned to a mail delivery route within a ZIP code. | [optional] -**CarrierRouteType** | **string** | The type of `components[carrier_route]`. For more detailed information about each carrier route type, see [US Verification Details](#tag/US-Verification-Types). | [optional] +**PrimaryNumber** | **string** | The numeric or alphanumeric part of an address preceding the street name. Often the house, building, or PO Box number. | +**StreetPredirection** | **string** | Geographic direction preceding a street name (`N`, `S`, `E`, `W`, `NE`, `SW`, `SE`, `NW`). | +**StreetName** | **string** | The name of the street. | +**StreetSuffix** | **string** | The standard USPS abbreviation for the street suffix (`ST`, `AVE`, `BLVD`, etc). | +**StreetPostdirection** | **string** | Geographic direction following a street name (`N`, `S`, `E`, `W`, `NE`, `SW`, `SE`, `NW`). | +**SecondaryDesignator** | **string** | The standard USPS abbreviation describing the `components[secondary_number]` (`STE`, `APT`, `BLDG`, etc). | +**SecondaryNumber** | **string** | Number of the apartment/unit/etc. | +**PmbDesignator** | **string** | Designator of a [CMRA-authorized](https://en.wikipedia.org/wiki/Commercial_mail_receiving_agency) private mailbox. | +**PmbNumber** | **string** | Number of a [CMRA-authorized](https://en.wikipedia.org/wiki/Commercial_mail_receiving_agency) private mailbox. | +**ExtraSecondaryDesignator** | **string** | An extra (often unnecessary) secondary designator provided with the input address. | +**ExtraSecondaryNumber** | **string** | An extra (often unnecessary) secondary number provided with the input address. | +**City** | **string** | | +**State** | **string** | The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) two letter code for the state. | +**ZipCode** | **string** | The 5-digit ZIP code | +**ZipCodePlus4** | **string** | | +**ZipCodeType** | [**ZipCodeType**](ZipCodeType.md) | | +**DeliveryPointBarcode** | **string** | A 12-digit identifier that uniquely identifies a delivery point (location where mail can be sent and received). It consists of the 5-digit ZIP code (`zip_code`), 4-digit ZIP+4 add-on (`zip_code_plus_4`), 2-digit delivery point, and 1-digit delivery point check digit. | +**AddressType** | **string** | Uses USPS's [Residential Delivery Indicator (RDI)](https://www.usps.com/nationalpremieraccounts/rdi.htm) to identify whether an address is classified as residential or business. Possible values are: * `residential` –– The address is residential or a PO Box. * `commercial` –– The address is commercial. * `''` –– Not enough information provided to be determined. | +**RecordType** | **string** | A description of the type of address. Populated if a DPV match is made (`deliverability_analysis[dpv_confirmation]` is `Y`, `S`, or `D`). For more detailed information about each record type, see [US Verification Details](#tag/US-Verification-Types). | +**DefaultBuildingAddress** | **bool** | Designates whether or not the address is the default address for a building containing multiple delivery points. | +**County** | **string** | County name of the address city. | +**CountyFips** | **string** | A 5-digit [FIPS county code](https://en.wikipedia.org/wiki/FIPS_county_code) which uniquely identifies `components[county]`. It consists of a 2-digit state code and a 3-digit county code. | +**CarrierRoute** | **string** | A 4-character code assigned to a mail delivery route within a ZIP code. | +**CarrierRouteType** | **string** | The type of `components[carrier_route]`. For more detailed information about each carrier route type, see [US Verification Details](#tag/US-Verification-Types). | +**PoBoxOnlyFlag** | **string** | Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. | **Latitude** | **float?** | A positive or negative decimal indicating the geographic latitude of the address, specifying the north-to-south position of a location. This should be used with `longitude` to pinpoint locations on a map. Will not be returned for undeliverable addresses or military addresses (state is `AA`, `AE`, or `AP`). | [optional] **Longitude** | **float?** | A positive or negative decimal indicating the geographic longitude of the address, specifying the north-to-south position of a location. This should be used with `latitude` to pinpoint locations on a map. Will not be returned for undeliverable addresses or military addresses (state is `AA`, `AE`, or `AP`). | [optional] diff --git a/src/lob.dotnet/Model/DeliverabilityAnalysis.cs b/src/lob.dotnet/Model/DeliverabilityAnalysis.cs index eab12f2..c9d0c3c 100755 --- a/src/lob.dotnet/Model/DeliverabilityAnalysis.cs +++ b/src/lob.dotnet/Model/DeliverabilityAnalysis.cs @@ -195,6 +195,219 @@ public enum DpvActiveEnum [DataMember(Name = "dpv_active", IsRequired = true, EmitDefaultValue = false)] public DpvActiveEnum DpvActive { get; set; } /// + /// 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. + /// + /// 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. + [JsonConverter(typeof(StringEnumConverter))] + public enum DpvInactiveReasonEnum + { + /// + /// Enum _01 for value: 01 + /// + [EnumMember(Value = "01")] + _01 = 1, + + + /// + /// Enum _02 for value: 02 + /// + [EnumMember(Value = "02")] + _02 = 2, + + + /// + /// Enum _03 for value: 03 + /// + [EnumMember(Value = "03")] + _03 = 3, + + + /// + /// Enum _04 for value: 04 + /// + [EnumMember(Value = "04")] + _04 = 4, + + + /// + /// Enum _05 for value: 05 + /// + [EnumMember(Value = "05")] + _05 = 5, + + + /// + /// Enum _06 for value: 06 + /// + [EnumMember(Value = "06")] + _06 = 6, + + + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 7 + + + } + + + /// + /// 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. + /// + /// 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. + [DataMember(Name = "dpv_inactive_reason", IsRequired = true, EmitDefaultValue = false)] + public DpvInactiveReasonEnum DpvInactiveReason { get; set; } + /// + /// 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). + /// + /// 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). + [JsonConverter(typeof(StringEnumConverter))] + public enum DpvThrowbackEnum + { + /// + /// Enum Y for value: Y + /// + [EnumMember(Value = "Y")] + Y = 1, + + + /// + /// Enum N for value: N + /// + [EnumMember(Value = "N")] + N = 2, + + + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 3 + + + } + + + /// + /// 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). + /// + /// 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). + [DataMember(Name = "dpv_throwback", IsRequired = true, EmitDefaultValue = false)] + public DpvThrowbackEnum DpvThrowback { get; set; } + /// + /// 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). + /// + /// 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). + [JsonConverter(typeof(StringEnumConverter))] + public enum DpvNonDeliveryDayFlagEnum + { + /// + /// Enum Y for value: Y + /// + [EnumMember(Value = "Y")] + Y = 1, + + + /// + /// Enum N for value: N + /// + [EnumMember(Value = "N")] + N = 2, + + + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 3 + + + } + + + /// + /// 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). + /// + /// 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). + [DataMember(Name = "dpv_non_delivery_day_flag", IsRequired = true, EmitDefaultValue = false)] + public DpvNonDeliveryDayFlagEnum DpvNonDeliveryDayFlag { get; set; } + /// + /// 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). + /// + /// 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). + [JsonConverter(typeof(StringEnumConverter))] + public enum DpvNoSecureLocationEnum + { + /// + /// Enum Y for value: Y + /// + [EnumMember(Value = "Y")] + Y = 1, + + + /// + /// Enum N for value: N + /// + [EnumMember(Value = "N")] + N = 2, + + + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 3 + + + } + + + /// + /// 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). + /// + /// 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). + [DataMember(Name = "dpv_no_secure_location", IsRequired = true, EmitDefaultValue = false)] + public DpvNoSecureLocationEnum DpvNoSecureLocation { get; set; } + /// + /// 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). + /// + /// 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). + [JsonConverter(typeof(StringEnumConverter))] + public enum DpvDoorNotAccessibleEnum + { + /// + /// Enum Y for value: Y + /// + [EnumMember(Value = "Y")] + Y = 1, + + + /// + /// Enum N for value: N + /// + [EnumMember(Value = "N")] + N = 2, + + + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 3 + + + } + + + /// + /// 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). + /// + /// 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). + [DataMember(Name = "dpv_door_not_accessible", IsRequired = true, EmitDefaultValue = false)] + public DpvDoorNotAccessibleEnum DpvDoorNotAccessible { get; set; } + /// /// 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). /// /// 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). @@ -280,17 +493,34 @@ protected DeliverabilityAnalysis() { } /// 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). (required). /// 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). (required). /// 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). (required). + /// 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. (required). + /// 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). (required). + /// 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). (required). + /// 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). (required). + /// 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). (required). + /// 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). (required). /// 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). (required). /// 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. (required). /// 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). (required). /// 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. (required). /// 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. (required). - public DeliverabilityAnalysis(DpvConfirmationEnum dpvConfirmation = default(DpvConfirmationEnum), DpvCmraEnum dpvCmra = default(DpvCmraEnum), DpvVacantEnum dpvVacant = default(DpvVacantEnum), DpvActiveEnum dpvActive = default(DpvActiveEnum), List dpvFootnotes = default(List), bool ewsMatch = default(bool), LacsIndicatorEnum lacsIndicator = default(LacsIndicatorEnum), string lacsReturnCode = default(string), SuiteReturnCodeEnum suiteReturnCode = default(SuiteReturnCodeEnum)) + public DeliverabilityAnalysis(DpvConfirmationEnum dpvConfirmation = default(DpvConfirmationEnum), DpvCmraEnum dpvCmra = default(DpvCmraEnum), DpvVacantEnum dpvVacant = default(DpvVacantEnum), DpvActiveEnum dpvActive = default(DpvActiveEnum), DpvInactiveReasonEnum dpvInactiveReason = default(DpvInactiveReasonEnum), DpvThrowbackEnum dpvThrowback = default(DpvThrowbackEnum), DpvNonDeliveryDayFlagEnum dpvNonDeliveryDayFlag = default(DpvNonDeliveryDayFlagEnum), string dpvNonDeliveryDayValues = default(string), DpvNoSecureLocationEnum dpvNoSecureLocation = default(DpvNoSecureLocationEnum), DpvDoorNotAccessibleEnum dpvDoorNotAccessible = default(DpvDoorNotAccessibleEnum), List dpvFootnotes = default(List), bool ewsMatch = default(bool), LacsIndicatorEnum lacsIndicator = default(LacsIndicatorEnum), string lacsReturnCode = default(string), SuiteReturnCodeEnum suiteReturnCode = default(SuiteReturnCodeEnum)) { this.DpvConfirmation = dpvConfirmation; this.DpvCmra = dpvCmra; this.DpvVacant = dpvVacant; this.DpvActive = dpvActive; + this.DpvInactiveReason = dpvInactiveReason; + this.DpvThrowback = dpvThrowback; + this.DpvNonDeliveryDayFlag = dpvNonDeliveryDayFlag; + // to ensure "dpvNonDeliveryDayValues" is required (not null) + if (dpvNonDeliveryDayValues == null) + { + throw new ArgumentNullException("dpvNonDeliveryDayValues is a required property for DeliverabilityAnalysis and cannot be null"); + } + this.DpvNonDeliveryDayValues = dpvNonDeliveryDayValues; + this.DpvNoSecureLocation = dpvNoSecureLocation; + this.DpvDoorNotAccessible = dpvDoorNotAccessible; // to ensure "dpvFootnotes" is required (not null) if (dpvFootnotes == null) { @@ -308,6 +538,13 @@ protected DeliverabilityAnalysis() { } this.SuiteReturnCode = suiteReturnCode; } + /// + /// 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). + /// + /// 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). + [DataMember(Name = "dpv_non_delivery_day_values", IsRequired = true, EmitDefaultValue = false)] + public string DpvNonDeliveryDayValues { get; set; } + /// /// 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). /// @@ -341,6 +578,12 @@ public override string ToString() sb.Append(" DpvCmra: ").Append(DpvCmra).Append("\n"); sb.Append(" DpvVacant: ").Append(DpvVacant).Append("\n"); sb.Append(" DpvActive: ").Append(DpvActive).Append("\n"); + sb.Append(" DpvInactiveReason: ").Append(DpvInactiveReason).Append("\n"); + sb.Append(" DpvThrowback: ").Append(DpvThrowback).Append("\n"); + sb.Append(" DpvNonDeliveryDayFlag: ").Append(DpvNonDeliveryDayFlag).Append("\n"); + sb.Append(" DpvNonDeliveryDayValues: ").Append(DpvNonDeliveryDayValues).Append("\n"); + sb.Append(" DpvNoSecureLocation: ").Append(DpvNoSecureLocation).Append("\n"); + sb.Append(" DpvDoorNotAccessible: ").Append(DpvDoorNotAccessible).Append("\n"); sb.Append(" DpvFootnotes: ").Append(DpvFootnotes).Append("\n"); sb.Append(" EwsMatch: ").Append(EwsMatch).Append("\n"); sb.Append(" LacsIndicator: ").Append(LacsIndicator).Append("\n"); @@ -397,6 +640,31 @@ public bool Equals(DeliverabilityAnalysis input) this.DpvActive == input.DpvActive || this.DpvActive.Equals(input.DpvActive) ) && + ( + this.DpvInactiveReason == input.DpvInactiveReason || + this.DpvInactiveReason.Equals(input.DpvInactiveReason) + ) && + ( + this.DpvThrowback == input.DpvThrowback || + this.DpvThrowback.Equals(input.DpvThrowback) + ) && + ( + this.DpvNonDeliveryDayFlag == input.DpvNonDeliveryDayFlag || + this.DpvNonDeliveryDayFlag.Equals(input.DpvNonDeliveryDayFlag) + ) && + ( + this.DpvNonDeliveryDayValues == input.DpvNonDeliveryDayValues || + (this.DpvNonDeliveryDayValues != null && + this.DpvNonDeliveryDayValues.Equals(input.DpvNonDeliveryDayValues)) + ) && + ( + this.DpvNoSecureLocation == input.DpvNoSecureLocation || + this.DpvNoSecureLocation.Equals(input.DpvNoSecureLocation) + ) && + ( + this.DpvDoorNotAccessible == input.DpvDoorNotAccessible || + this.DpvDoorNotAccessible.Equals(input.DpvDoorNotAccessible) + ) && ( this.DpvFootnotes == input.DpvFootnotes || this.DpvFootnotes != null && @@ -435,6 +703,15 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.DpvCmra.GetHashCode(); hashCode = (hashCode * 59) + this.DpvVacant.GetHashCode(); hashCode = (hashCode * 59) + this.DpvActive.GetHashCode(); + hashCode = (hashCode * 59) + this.DpvInactiveReason.GetHashCode(); + hashCode = (hashCode * 59) + this.DpvThrowback.GetHashCode(); + hashCode = (hashCode * 59) + this.DpvNonDeliveryDayFlag.GetHashCode(); + if (this.DpvNonDeliveryDayValues != null) + { + hashCode = (hashCode * 59) + this.DpvNonDeliveryDayValues.GetHashCode(); + } + hashCode = (hashCode * 59) + this.DpvNoSecureLocation.GetHashCode(); + hashCode = (hashCode * 59) + this.DpvDoorNotAccessible.GetHashCode(); if (this.DpvFootnotes != null) { hashCode = (hashCode * 59) + this.DpvFootnotes.GetHashCode(); diff --git a/src/lob.dotnet/Model/DpvFootnote.cs b/src/lob.dotnet/Model/DpvFootnote.cs index f6cd22d..7bb4786 100755 --- a/src/lob.dotnet/Model/DpvFootnote.cs +++ b/src/lob.dotnet/Model/DpvFootnote.cs @@ -57,10 +57,10 @@ public enum DpvFootnote CC = 4, /// - /// Enum N1 for value: N1 + /// Enum C1 for value: C1 /// - [EnumMember(Value = "N1")] - N1 = 5, + [EnumMember(Value = "C1")] + C1 = 5, /// /// Enum F1 for value: F1 @@ -75,10 +75,10 @@ public enum DpvFootnote G1 = 7, /// - /// Enum U1 for value: U1 + /// Enum IA for value: IA /// - [EnumMember(Value = "U1")] - U1 = 8, + [EnumMember(Value = "IA")] + IA = 8, /// /// Enum M1 for value: M1 @@ -92,35 +92,59 @@ public enum DpvFootnote [EnumMember(Value = "M3")] M3 = 10, + /// + /// Enum N1 for value: N1 + /// + [EnumMember(Value = "N1")] + N1 = 11, + + /// + /// Enum PB for value: PB + /// + [EnumMember(Value = "PB")] + PB = 12, + /// /// Enum P1 for value: P1 /// [EnumMember(Value = "P1")] - P1 = 11, + P1 = 13, /// /// Enum P3 for value: P3 /// [EnumMember(Value = "P3")] - P3 = 12, + P3 = 14, /// /// Enum R1 for value: R1 /// [EnumMember(Value = "R1")] - R1 = 13, + R1 = 15, /// /// Enum R7 for value: R7 /// [EnumMember(Value = "R7")] - R7 = 14, + R7 = 16, /// /// Enum RR for value: RR /// [EnumMember(Value = "RR")] - RR = 15 + RR = 17, + + /// + /// Enum TA for value: TA + /// + [EnumMember(Value = "TA")] + TA = 18, + + /// + /// Enum U1 for value: U1 + /// + [EnumMember(Value = "U1")] + U1 = 19 } diff --git a/src/lob.dotnet/Model/UsComponents.cs b/src/lob.dotnet/Model/UsComponents.cs index 0dfd7d9..5212f1f 100755 --- a/src/lob.dotnet/Model/UsComponents.cs +++ b/src/lob.dotnet/Model/UsComponents.cs @@ -351,6 +351,43 @@ public enum CarrierRouteTypeEnum [DataMember(Name = "carrier_route_type", IsRequired = true, EmitDefaultValue = false)] public CarrierRouteTypeEnum CarrierRouteType { get; set; } /// + /// Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. + /// + /// Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. + [JsonConverter(typeof(StringEnumConverter))] + public enum PoBoxOnlyFlagEnum + { + /// + /// Enum Y for value: Y + /// + [EnumMember(Value = "Y")] + Y = 1, + + + /// + /// Enum N for value: N + /// + [EnumMember(Value = "N")] + N = 2, + + + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 3 + + + } + + + /// + /// Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. + /// + /// Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. + [DataMember(Name = "po_box_only_flag", IsRequired = true, EmitDefaultValue = false)] + public PoBoxOnlyFlagEnum PoBoxOnlyFlag { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -382,9 +419,10 @@ protected UsComponents() { } /// A 5-digit [FIPS county code](https://en.wikipedia.org/wiki/FIPS_county_code) which uniquely identifies `components[county]`. It consists of a 2-digit state code and a 3-digit county code. (required). /// A 4-character code assigned to a mail delivery route within a ZIP code. (required). /// The type of `components[carrier_route]`. For more detailed information about each carrier route type, see [US Verification Details](#tag/US-Verification-Types). (required). + /// Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. (required). /// A positive or negative decimal indicating the geographic latitude of the address, specifying the north-to-south position of a location. This should be used with `longitude` to pinpoint locations on a map. Will not be returned for undeliverable addresses or military addresses (state is `AA`, `AE`, or `AP`). . /// A positive or negative decimal indicating the geographic longitude of the address, specifying the north-to-south position of a location. This should be used with `latitude` to pinpoint locations on a map. Will not be returned for undeliverable addresses or military addresses (state is `AA`, `AE`, or `AP`). . - public UsComponents(string primaryNumber = default(string), StreetPredirectionEnum streetPredirection = default(StreetPredirectionEnum), string streetName = default(string), string streetSuffix = default(string), StreetPostdirectionEnum streetPostdirection = default(StreetPostdirectionEnum), string secondaryDesignator = default(string), string secondaryNumber = default(string), string pmbDesignator = default(string), string pmbNumber = default(string), string extraSecondaryDesignator = default(string), string extraSecondaryNumber = default(string), string city = default(string), string state = default(string), string zipCode = default(string), string zipCodePlus4 = default(string), ZipCodeType zipCodeType = default(ZipCodeType), string deliveryPointBarcode = default(string), AddressTypeEnum addressType = default(AddressTypeEnum), RecordTypeEnum recordType = default(RecordTypeEnum), bool defaultBuildingAddress = default(bool), string county = default(string), string countyFips = default(string), string carrierRoute = default(string), CarrierRouteTypeEnum carrierRouteType = default(CarrierRouteTypeEnum), float? latitude = default(float?), float? longitude = default(float?)) + public UsComponents(string primaryNumber = default(string), StreetPredirectionEnum streetPredirection = default(StreetPredirectionEnum), string streetName = default(string), string streetSuffix = default(string), StreetPostdirectionEnum streetPostdirection = default(StreetPostdirectionEnum), string secondaryDesignator = default(string), string secondaryNumber = default(string), string pmbDesignator = default(string), string pmbNumber = default(string), string extraSecondaryDesignator = default(string), string extraSecondaryNumber = default(string), string city = default(string), string state = default(string), string zipCode = default(string), string zipCodePlus4 = default(string), ZipCodeType zipCodeType = default(ZipCodeType), string deliveryPointBarcode = default(string), AddressTypeEnum addressType = default(AddressTypeEnum), RecordTypeEnum recordType = default(RecordTypeEnum), bool defaultBuildingAddress = default(bool), string county = default(string), string countyFips = default(string), string carrierRoute = default(string), CarrierRouteTypeEnum carrierRouteType = default(CarrierRouteTypeEnum), PoBoxOnlyFlagEnum poBoxOnlyFlag = default(PoBoxOnlyFlagEnum), float? latitude = default(float?), float? longitude = default(float?)) { // to ensure "primaryNumber" is required (not null) if (primaryNumber == null) @@ -500,6 +538,7 @@ protected UsComponents() { } } this.CarrierRoute = carrierRoute; this.CarrierRouteType = carrierRouteType; + this.PoBoxOnlyFlag = poBoxOnlyFlag; this.Latitude = latitude; this.Longitude = longitude; } @@ -680,6 +719,7 @@ public override string ToString() sb.Append(" CountyFips: ").Append(CountyFips).Append("\n"); sb.Append(" CarrierRoute: ").Append(CarrierRoute).Append("\n"); sb.Append(" CarrierRouteType: ").Append(CarrierRouteType).Append("\n"); + sb.Append(" PoBoxOnlyFlag: ").Append(PoBoxOnlyFlag).Append("\n"); sb.Append(" Latitude: ").Append(Latitude).Append("\n"); sb.Append(" Longitude: ").Append(Longitude).Append("\n"); sb.Append("}\n"); @@ -831,6 +871,10 @@ public bool Equals(UsComponents input) this.CarrierRouteType == input.CarrierRouteType || this.CarrierRouteType.Equals(input.CarrierRouteType) ) && + ( + this.PoBoxOnlyFlag == input.PoBoxOnlyFlag || + this.PoBoxOnlyFlag.Equals(input.PoBoxOnlyFlag) + ) && ( this.Latitude == input.Latitude || (this.Latitude != null && @@ -930,6 +974,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.CarrierRoute.GetHashCode(); } hashCode = (hashCode * 59) + this.CarrierRouteType.GetHashCode(); + hashCode = (hashCode * 59) + this.PoBoxOnlyFlag.GetHashCode(); if (this.Latitude != null) { hashCode = (hashCode * 59) + this.Latitude.GetHashCode();