Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'C1' ENUM is missing from DpvFootnote #340

Open
gagankumre opened this issue Jan 27, 2024 · 0 comments
Open

'C1' ENUM is missing from DpvFootnote #340

gagankumre opened this issue Jan 27, 2024 · 0 comments

Comments

@gagankumre
Copy link

gagankumre commented Jan 27, 2024

In the below response, we are receiving "C1" as one of the values in "dpv_footnotes", but the com.lob.model.DpvFootnote does not contain this value

response:-

{
  "id": "us_ver_f714bcdd716c4a6XXXX",
  "recipient": "",
  "primary_line": "717 5TH AVE STE 1202",
  "secondary_line": "",
  "urbanization": "",
  "last_line": "NEW YORK NY 10022-8101",
  "deliverability": "deliverable_incorrect_unit",
  "valid_address": true,
  "components": {
    "primary_number": "717",
    "street_predirection": "",
    "street_name": "5TH",
    "street_suffix": "AVE",
    "street_postdirection": "",
    "secondary_designator": "STE",
    "secondary_number": "1202",
    "pmb_designator": "",
    "pmb_number": "",
    "extra_secondary_designator": "",
    "extra_secondary_number": "",
    "city": "NEW YORK",
    "state": "NY",
    "zip_code": "10022",
    "zip_code_plus_4": "8101",
    "zip_code_type": "standard",
    "delivery_point_barcode": "100228101997",
    "address_type": "commercial",
    "record_type": "highrise",
    "default_building_address": true,
    "county": "NEW YORK",
    "county_fips": "36061",
    "carrier_route": "C285",
    "carrier_route_type": "city_delivery",
    "po_box_only_flag": "N",
    "latitude": 40.76201,
    "longitude": -73.974406
  },
  "deliverability_analysis": {
    "dpv_confirmation": "S",
    "dpv_cmra": "N",
    "dpv_vacant": "N",
    "dpv_active": "N",
    "dpv_inactive_reason": "05",
    "dpv_throwback": "N",
    "dpv_non_delivery_day_flag": "N",
    "dpv_non_delivery_day_values": "",
    "dpv_no_secure_location": "N",
    "dpv_door_not_accessible": "N",
    "dpv_footnotes": [
      "AA",
      "C1"
    ],
    "ews_match": false,
    "lacs_indicator": "",
    "lacs_return_code": "",
    "suite_return_code": ""
  },
  "lob_confidence_score": {
    "score": null,
    "level": ""
  },
  "object": "us_verification"
}

.....

error:-

java.lang.IllegalArgumentException: Unexpected value 'C1'
   at com.lob.model.DpvFootnote.fromValue(DpvFootnote.java:83 undefined)
   at com.lob.model.DpvFootnote$Adapter.read(DpvFootnote.java:95 undefined)
   at com.lob.model.DpvFootnote$Adapter.read(DpvFootnote.java:86 undefined)
   at com.google.gson.TypeAdapter$1.read(TypeAdapter.java:199 undefined)
   at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41 undefined)
   at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82 undefined)
   at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61 undefined)
   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:161 undefined)
   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:266 undefined)
   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:161 undefined)
   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:266 undefined)
   at com.google.gson.Gson.fromJson(Gson.java:1058 undefined)
   at com.google.gson.Gson.fromJson(Gson.java:1016 undefined)
   at com.google.gson.Gson.fromJson(Gson.java:959 undefined)
   at com.lob.api.JSON.deserialize(JSON.java:146 undefined)
   at com.lob.api.ApiClient.deserialize(ApiClient.java:821 undefined)
   at com.lob.api.ApiClient.handleResponse(ApiClient.java:1029 undefined)
   at com.lob.api.ApiClient.execute(ApiClient.java:951 undefined)
   at com.lob.api.client.UsVerificationsApi.verifySingleWithHttpInfo(UsVerificationsApi.java:295 undefined)
   at com.lob.api.client.UsVerificationsApi.verifySingle(UsVerificationsApi.java:270 undefined)

related resources:

  1. https://docs.lob.com/#tag/US-Verification-Types, look for 'DPV Footnotes - deliverability_analysis[dpv_footnotes]', as per documentation "C1" is an unexpected value for "dpv_footnotes"
  2. https://github.com/lob/lob-java/blob/v13.4.3/src/main/java/com/lob/model/DpvFootnote.java

we are using v13.4.3 of lob-java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant