Skip to content

Commit

Permalink
adding KycValidationRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexviquez committed Sep 21, 2022
1 parent 79d8149 commit 20b539c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions cuenca/resources/kyc_validations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime as dt
from typing import ClassVar, Optional, cast

from cuenca_validations.types import KYCFile
from cuenca_validations.types import KYCFile, KYCValidationRequest

from ..http import Session, session as global_session
from .base import Creatable, Retrievable, Updateable
Expand Down Expand Up @@ -30,5 +30,6 @@ class Config:
}

@classmethod
def create(cls, session: Session = global_session) -> 'KYCValidation':
return cast('KYCValidation', cls._create(session=session))
def create(cls, user_id: str, session: Session = global_session) -> 'KYCValidation':
req = KYCValidationRequest(user_id=user_id)
return cast('KYCValidation', cls._create(**req.dict(), session=session))
2 changes: 1 addition & 1 deletion cuenca/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.14.7.dev0'
__version__ = '0.14.7.dev1'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests==2.27.1
cuenca-validations==0.11.3
cuenca-validations==0.11.5.dev0
dataclasses>=0.7;python_version<"3.7"

0 comments on commit 20b539c

Please sign in to comment.