Skip to content

Commit

Permalink
Allow to send docs in kyc-validation (#331)
Browse files Browse the repository at this point in the history
* Allow to send docs in kyc-validation

* version

* cv
  • Loading branch information
rogelioLpz authored Nov 10, 2022
1 parent 575515c commit c21a201
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions cuenca/resources/kyc_validations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import ClassVar, List, Optional, cast

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

from ..http import Session, session as global_session
from .base import Creatable, Queryable, Retrievable
Expand Down Expand Up @@ -30,9 +30,14 @@ def create(
cls,
user_id: str,
force: bool = False,
documents: List[KYCFile] = [],
session: Session = global_session,
) -> 'KYCValidation':
req = KYCValidationRequest(user_id=user_id, force=force)
req = KYCValidationRequest(
user_id=user_id,
force=force,
documents=documents,
)
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.15.3'
__version__ = '0.15.4'
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.10
cuenca-validations==0.11.11
dataclasses>=0.7;python_version<"3.7"

0 comments on commit c21a201

Please sign in to comment.