File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ class EntityQuestion(TypedDict):
122122class EntityQuestionResponse (TypedDict ):
123123 questions : List [EntityQuestion ]
124124
125+ class EntityGetCreditScoreResponse (TypedDict ):
126+ score : int
127+ updated_at : str
128+
125129class AnswerOpts (TypedDict ):
126130 question_id : str
127131 answer_id : str
@@ -149,10 +153,13 @@ def get(self, _id: str) -> Entity:
149153
150154 def list (self , params : EntityListOpts = None ) -> List [Entity ]:
151155 return super (EntityResource , self )._list (params )
152-
156+
153157 def create_auth_session (self , _id : str ) -> EntityQuestionResponse :
154158 return super (EntityResource , self )._create_with_sub_path ('{_id}/auth_session' .format (_id = _id ), {})
155159
160+ def get_credit_score (self , _id : str ) -> EntityQuestionResponse :
161+ return super (EntityResource , self )._get_with_sub_path ('{_id}/credit_score' .format (_id = _id ))
162+
156163 def update_auth_session (self , _id : str , opts : EntityUpdateAuthOpts ) -> EntityUpdateAuthResponse :
157164 return super (EntityResource , self )._update_with_sub_path ('{_id}/auth_session' .format (_id = _id ), opts )
158165
Original file line number Diff line number Diff line change 22
33setup (
44 name = 'method-python' ,
5- version = '0.0.23 ' ,
5+ version = '0.0.24 ' ,
66 description = 'Python library for the Method API' ,
77 author = 'Marco del Carmen' ,
88 author_email = 'marco@mdelcarmen.me' ,
You can’t perform that action at this time.
0 commit comments