From 20b539c0a9d2291931ecbcb63049d7060909e365 Mon Sep 17 00:00:00 2001 From: AlexViquez Date: Wed, 21 Sep 2022 18:15:11 -0500 Subject: [PATCH] adding KycValidationRequest --- cuenca/resources/kyc_validations.py | 7 ++++--- cuenca/version.py | 2 +- requirements.txt | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cuenca/resources/kyc_validations.py b/cuenca/resources/kyc_validations.py index 114aaca1..3d911b0a 100644 --- a/cuenca/resources/kyc_validations.py +++ b/cuenca/resources/kyc_validations.py @@ -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 @@ -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)) diff --git a/cuenca/version.py b/cuenca/version.py index b9125253..1242ddc9 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.14.7.dev0' +__version__ = '0.14.7.dev1' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' diff --git a/requirements.txt b/requirements.txt index a66be0b0..b6345bcf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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"