1818import json
1919
2020
21- from typing import Optional
22- from pydantic import BaseModel , StrictBool , StrictStr
21+ from typing import List , Optional
22+ from pydantic import BaseModel , StrictBool , StrictStr , conlist
2323
2424class MemberResponse (BaseModel ):
2525 """
@@ -41,9 +41,10 @@ class MemberResponse(BaseModel):
4141 name : Optional [StrictStr ] = None
4242 oauth_window_uri : Optional [StrictStr ] = None
4343 successfully_aggregated_at : Optional [StrictStr ] = None
44+ use_cases : Optional [conlist (StrictStr )] = None
4445 user_guid : Optional [StrictStr ] = None
4546 user_id : Optional [StrictStr ] = None
46- __properties = ["aggregated_at" , "background_aggregation_is_disabled" , "connection_status" , "guid" , "id" , "institution_code" , "is_being_aggregated" , "is_managed_by_user" , "is_manual" , "is_oauth" , "metadata" , "most_recent_job_detail_code" , "most_recent_job_detail_text" , "name" , "oauth_window_uri" , "successfully_aggregated_at" , "user_guid" , "user_id" ]
47+ __properties = ["aggregated_at" , "background_aggregation_is_disabled" , "connection_status" , "guid" , "id" , "institution_code" , "is_being_aggregated" , "is_managed_by_user" , "is_manual" , "is_oauth" , "metadata" , "most_recent_job_detail_code" , "most_recent_job_detail_text" , "name" , "oauth_window_uri" , "successfully_aggregated_at" , "use_cases" , " user_guid" , "user_id" ]
4748
4849 class Config :
4950 """Pydantic configuration"""
@@ -144,6 +145,11 @@ def to_dict(self):
144145 if self .successfully_aggregated_at is None and "successfully_aggregated_at" in self .__fields_set__ :
145146 _dict ['successfully_aggregated_at' ] = None
146147
148+ # set to None if use_cases (nullable) is None
149+ # and __fields_set__ contains the field
150+ if self .use_cases is None and "use_cases" in self .__fields_set__ :
151+ _dict ['use_cases' ] = None
152+
147153 # set to None if user_guid (nullable) is None
148154 # and __fields_set__ contains the field
149155 if self .user_guid is None and "user_guid" in self .__fields_set__ :
@@ -182,6 +188,7 @@ def from_dict(cls, obj: dict) -> MemberResponse:
182188 "name" : obj .get ("name" ),
183189 "oauth_window_uri" : obj .get ("oauth_window_uri" ),
184190 "successfully_aggregated_at" : obj .get ("successfully_aggregated_at" ),
191+ "use_cases" : obj .get ("use_cases" ),
185192 "user_guid" : obj .get ("user_guid" ),
186193 "user_id" : obj .get ("user_id" )
187194 })
0 commit comments