Closed mattalline closed 1 year ago
Hey @mattalline,
Apologies for missing this, I think it got lost in my holiday emails. I will look into this and make it a priority to get a new version out. Thanks for the patience!
@mattalline The newest version can be found here this includes a solution to the issue above. Thanks!
Summary
When using the latest version of the published
lob-typescript-sdk
it appears that thevalid_address
component of the API response is not exposed.Expected Behavior
Using the SDK provided here, when requesting a US Verification an attribute exists on the response object that maps back to
valid_address
if the call and JSON response were parsed directly.Current Behavior
Attributes of the response are not mapped in the response object.
Possible Solution
https://github.com/lob/lob-typescript-sdk/blob/main/models/us-verification.ts#L26
The linked file is updated to expose a
valid_address
attribute mapped to the appropriate response field.Steps to Reproduce
Example Request 1 (Curl)
Example Response 1
Example Request 2 (curl)
Example Response 2
Context (Environment)
Having this exposed will allow responses where the deliverability state is
undeliverable
to still be utilized by consumers. The use case being addresses of new construction for example.