Closed viettappcard closed 1 year ago
Lookup matches are now part of an enum. So, your code should be changed to
lookup.match = MatchType.ENHANCED
Thanks @RyanLCox1 , will try this out. I was looking for the release notes for this breaking change but it seems there wasn't any?
Also, won't the below never be reached because there is "enhanced"
there instead of MatchType.ENHANCED.value
? https://github.com/smartystreets/smartystreets-python-sdk/blob/090117d2c1c95879c2ddbdceed980e8d150b9d31/smartystreets_python_sdk/us_street/client.py#L58
@RyanLCox1 we've tested and looks like things are fine now, but we do want to note this has been a very unexpected change
I've pushed a new version that is backward compatible with string values for the MatchType.
I've also included a fix for the above lookup.match == 'enhanced'
Thank you for your feedback!
Hi guys, this is throwing errors for all our flows with address verification.
Cause
Looks to be changes from https://github.com/smartystreets/smartystreets-python-sdk/commit/ce388d5a7e66f43712d321249477cf5f4359b6d3 at
smartystreets_python_sdk/us_street/client.py
line 73,lookup.match
was replaced withlookup.match.value
, which throws the error.Error
Code example