Error using identity_match method on plaid-python==9.9.0
felippemr opened this issue ยท 2 comments
felippemr commented
๐ I am initiating an identity match request but I'm not being able to get the response. For some reason it looks up for a _composed_schemas
attribute but can't find it.
python version: 3.10.2
plaid-python: 9.9.0
In [50]: response.__class__
Out[50]: plaid.model.identity_match_response.IdentityMatchResponse
----> 1 response.to_dict()
File /usr/local/lib/python3.10/site-packages/plaid/model_utils.py:379, in ModelNormal.to_dict(self)
377 def to_dict(self):
378 """Returns the model properties as a dict"""
--> 379 return model_to_dict(self, serialize=False)
File /usr/local/lib/python3.10/site-packages/plaid/model_utils.py:1462, in model_to_dict(model_instance, serialize)
1460 result[attr] = [x.value for x in value]
1461 else:
-> 1462 result[attr] = [model_to_dict(x, serialize=serialize) for x in value]
1463 elif isinstance(value, dict):
1464 result[attr] = dict(map(
1465 lambda item: (item[0],
1466 model_to_dict(item[1], serialize=serialize))
1467 if hasattr(item[1], '_data_store') else item,
1468 value.items()
1469 ))
File /usr/local/lib/python3.10/site-packages/plaid/model_utils.py:1462, in <listcomp>(.0)
1460 result[attr] = [x.value for x in value]
1461 else:
-> 1462 result[attr] = [model_to_dict(x, serialize=serialize) for x in value]
1463 elif isinstance(value, dict):
1464 result[attr] = dict(map(
1465 lambda item: (item[0],
1466 model_to_dict(item[1], serialize=serialize))
1467 if hasattr(item[1], '_data_store') else item,
1468 value.items()
1469 ))
File /usr/local/lib/python3.10/site-packages/plaid/model_utils.py:1447, in model_to_dict(model_instance, serialize)
1444 result = {}
1446 model_instances = [model_instance]
-> 1447 if model_instance._composed_schemas:
1448 model_instances.extend(model_instance._composed_instances)
1449 for model_instance in model_instances:
AttributeError: 'dict' object has no attribute '_composed_schemas'
phoenixy1 commented
The /identity/match
endpoint was released in March 2023. The plaid-python 9.9.0 client library is from August 2022. You will need to upgrade to the latest python client library in order to get support for /identity/match
.
felippemr commented
Thanks!