cuenca-validations 2.1.5.dev5__py3-none-any.whl → 2.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cuenca_validations/types/__init__.py +2 -2
- cuenca_validations/types/enums.py +3 -1
- cuenca_validations/types/requests.py +12 -4
- cuenca_validations/version.py +1 -1
- {cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/METADATA +1 -1
- {cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/RECORD +9 -9
- {cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/WHEEL +0 -0
- {cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/licenses/LICENSE +0 -0
- {cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/top_level.txt +0 -0
|
@@ -45,8 +45,8 @@ __all__ = [
|
|
|
45
45
|
'JSONEncoder',
|
|
46
46
|
'KYCFile',
|
|
47
47
|
'KYCFileType',
|
|
48
|
-
'KYCValidationFlow',
|
|
49
48
|
'KYCValidationRequest',
|
|
49
|
+
'KYCValidationSource',
|
|
50
50
|
'Language',
|
|
51
51
|
'LimitedWalletRequest',
|
|
52
52
|
'PartnerRequest',
|
|
@@ -130,7 +130,7 @@ from .enums import (
|
|
|
130
130
|
Gender,
|
|
131
131
|
IssuerNetwork,
|
|
132
132
|
KYCFileType,
|
|
133
|
-
|
|
133
|
+
KYCValidationSource,
|
|
134
134
|
Language,
|
|
135
135
|
PlatformType,
|
|
136
136
|
PosCapability,
|
|
@@ -248,9 +248,10 @@ class KYCFileType(str, Enum):
|
|
|
248
248
|
proof_of_address = 'proof_of_address'
|
|
249
249
|
curp = 'curp'
|
|
250
250
|
signature = 'signature'
|
|
251
|
+
tos = 'tos'
|
|
251
252
|
|
|
252
253
|
|
|
253
|
-
class
|
|
254
|
+
class KYCValidationSource(str, Enum):
|
|
254
255
|
client = 'client'
|
|
255
256
|
server = 'server'
|
|
256
257
|
|
|
@@ -654,6 +655,7 @@ class FileExtension(str, Enum):
|
|
|
654
655
|
jpeg = 'jpeg'
|
|
655
656
|
png = 'png'
|
|
656
657
|
pdf = 'pdf'
|
|
658
|
+
html = 'html'
|
|
657
659
|
|
|
658
660
|
|
|
659
661
|
class BankAccountStatus(str, Enum):
|
|
@@ -12,6 +12,7 @@ from pydantic import (
|
|
|
12
12
|
field_validator,
|
|
13
13
|
model_validator,
|
|
14
14
|
)
|
|
15
|
+
from pydantic_extra_types.coordinate import Coordinate
|
|
15
16
|
|
|
16
17
|
from ..types.enums import (
|
|
17
18
|
AuthorizerTransaction,
|
|
@@ -28,7 +29,7 @@ from ..types.enums import (
|
|
|
28
29
|
Gender,
|
|
29
30
|
IssuerNetwork,
|
|
30
31
|
KYCFileType,
|
|
31
|
-
|
|
32
|
+
KYCValidationSource,
|
|
32
33
|
PlatformType,
|
|
33
34
|
PosCapability,
|
|
34
35
|
SavingCategory,
|
|
@@ -403,6 +404,11 @@ class TOSRequest(BaseModel):
|
|
|
403
404
|
ip: Optional[SerializableIPvAnyAddress] = None
|
|
404
405
|
|
|
405
406
|
|
|
407
|
+
class UserTOSAgreementRequest(BaseModel):
|
|
408
|
+
tos_id: str
|
|
409
|
+
location: Coordinate
|
|
410
|
+
|
|
411
|
+
|
|
406
412
|
class UserRequest(BaseModel):
|
|
407
413
|
id: Optional[str] = Field(
|
|
408
414
|
None, description='if you want to create with specific `id`'
|
|
@@ -423,9 +429,11 @@ class UserRequest(BaseModel):
|
|
|
423
429
|
description='Status that the user will have when created. '
|
|
424
430
|
'Defined by platform',
|
|
425
431
|
)
|
|
426
|
-
required_level: Optional[
|
|
432
|
+
required_level: Optional[int] = Field(
|
|
427
433
|
None,
|
|
428
|
-
|
|
434
|
+
ge=1,
|
|
435
|
+
le=3,
|
|
436
|
+
description='Maximum level a User can reach. Defined by platform',
|
|
429
437
|
)
|
|
430
438
|
phone_verification_id: Optional[str] = Field(
|
|
431
439
|
None,
|
|
@@ -619,7 +627,7 @@ class WebhookRequest(BaseModel):
|
|
|
619
627
|
|
|
620
628
|
class KYCValidationRequest(BaseRequest):
|
|
621
629
|
user_id: str
|
|
622
|
-
|
|
630
|
+
source_type: KYCValidationSource
|
|
623
631
|
force: bool = False
|
|
624
632
|
|
|
625
633
|
|
cuenca_validations/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.1.
|
|
1
|
+
__version__ = '2.1.6'
|
|
@@ -4,25 +4,25 @@ cuenca_validations/errors.py,sha256=OtM8EgiKqYdz9Hn66AbBO96orL1or7efkyt0vh0Zxbs,
|
|
|
4
4
|
cuenca_validations/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cuenca_validations/typing.py,sha256=1QCu81IbVZZpyInjyeAuO-nF36gpT5Gi4o6V9PozuOU,204
|
|
6
6
|
cuenca_validations/validators.py,sha256=wzwLnJ4wHggZvqp3mearbFkzvDERGeTNvJkuofQnuMc,1484
|
|
7
|
-
cuenca_validations/version.py,sha256
|
|
8
|
-
cuenca_validations/types/__init__.py,sha256=
|
|
7
|
+
cuenca_validations/version.py,sha256=-7l209_vEXA3xyfmaRuXsgt6pdPZCF8pL657k3FL62A,22
|
|
8
|
+
cuenca_validations/types/__init__.py,sha256=UNb7auBcD0qp-x9TX7TNNj8IKo7uaI7xHaf9PYmaziY,4765
|
|
9
9
|
cuenca_validations/types/card.py,sha256=UGzz8NTFAverUmdUKAK1oGHnOnjSNTpIRUm93vKSSGY,1295
|
|
10
|
-
cuenca_validations/types/enums.py,sha256=
|
|
10
|
+
cuenca_validations/types/enums.py,sha256=Vm9HGf83jPkEp8iZ-KGtKGWQGx5q-cIUuQj32y_QcvU,18997
|
|
11
11
|
cuenca_validations/types/files.py,sha256=2CszbwF9ytXV9suFFwyDjYG4XxY8UhCjRw3HttVXXNw,269
|
|
12
12
|
cuenca_validations/types/general.py,sha256=vJmQBD_Iv_hsxD8x3_Bip-NlYAiE2rmXSPQKj4kTtto,2621
|
|
13
13
|
cuenca_validations/types/helpers.py,sha256=6rHUhwoQ7jJZtGcW3LX-W5ZDl42PWE1RoBpGme7KCkk,610
|
|
14
14
|
cuenca_validations/types/identities.py,sha256=-TWRDRpmIaCI4nE4hVy1FQtQtlxuErtmEtzJW1FBzec,4956
|
|
15
15
|
cuenca_validations/types/morals.py,sha256=m8kAedevmwfSPTA9GYe03l7pkgipynwYgKfejyVtnuI,1813
|
|
16
16
|
cuenca_validations/types/queries.py,sha256=KCRx0sPzWDtDDbZysmFGVgANgfqil17EITWaG7tGQ-A,4700
|
|
17
|
-
cuenca_validations/types/requests.py,sha256=
|
|
18
|
-
cuenca_validations-2.1.
|
|
17
|
+
cuenca_validations/types/requests.py,sha256=6aEoMe7e-FPJs3_ouECV_Y6ZtyyJVyXfTed8wHtx_xw,21338
|
|
18
|
+
cuenca_validations-2.1.6.dist-info/licenses/LICENSE,sha256=wR76FmxBbfnQpwELkkE5iMF8sFIafEMgXLTE4N4WPTc,1063
|
|
19
19
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
tests/test_card.py,sha256=QAfRz7e11gWICPnFJZ2tiYgUsFV3C9TwzJXrDnDNXFw,1202
|
|
21
21
|
tests/test_errors.py,sha256=ixiIgEuBuzfsL5p4uCFdF32XqFRtTPF6EVhGJ0keOrI,930
|
|
22
22
|
tests/test_helpers.py,sha256=ubzpi1UXCryLQdgsT_Zm2IX-XE_4L0dnHnhLwH06xK8,748
|
|
23
23
|
tests/test_statement.py,sha256=IOE0rRRBgBZSJv_FLaETEyn5NzzXKMNTqgjv99GX-68,1436
|
|
24
24
|
tests/test_types.py,sha256=K_YNFz0Kac3k8fJNeXuYGkL1hjXDQu084jCX6xEMEE4,19348
|
|
25
|
-
cuenca_validations-2.1.
|
|
26
|
-
cuenca_validations-2.1.
|
|
27
|
-
cuenca_validations-2.1.
|
|
28
|
-
cuenca_validations-2.1.
|
|
25
|
+
cuenca_validations-2.1.6.dist-info/METADATA,sha256=q7FNXRcKrumrhvJrwtCi2GQ2j2_rbqUObGT-Oa0BVHs,1594
|
|
26
|
+
cuenca_validations-2.1.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
27
|
+
cuenca_validations-2.1.6.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
|
|
28
|
+
cuenca_validations-2.1.6.dist-info/RECORD,,
|
|
File without changes
|
{cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{cuenca_validations-2.1.5.dev5.dist-info → cuenca_validations-2.1.6.dist-info}/top_level.txt
RENAMED
|
File without changes
|