smarty / smartystreets-javascript-sdk

The official client libraries for accessing SmartyStreets APIs from javascript.
https://smartystreets.com/docs/sdk/javascript
Apache License 2.0
31 stars 30 forks source link

Suggestion model do not contain source param #64

Closed thaliemuk closed 12 months ago

thaliemuk commented 1 year ago

class Suggestion { constructor(responseData) { this.streetLine = responseData.street_line; this.secondary = responseData.secondary; this.city = responseData.city; this.state = responseData.state; this.zipcode = responseData.zipcode; this.entries = responseData.entries; } } Suggestion should also include "source" param in the constructor. the source is returned from the lookup api but then disappears in the function buildSuggestionsFromResponse, since its not building it in the suggestion constructor

smartyskon commented 12 months ago

An implementation of this has been released in version 3.2.1. Details found here