cuenca-validations 2.1.8.dev7__py3-none-any.whl → 2.1.9.dev2__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/queries.py +10 -2
- cuenca_validations/types/requests.py +0 -2
- cuenca_validations/version.py +1 -1
- {cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/METADATA +1 -1
- {cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/RECORD +9 -9
- tests/test_types.py +0 -2
- {cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/WHEEL +0 -0
- {cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/licenses/LICENSE +0 -0
- {cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/top_level.txt +0 -0
|
@@ -7,6 +7,7 @@ from pydantic import (
|
|
|
7
7
|
EmailStr,
|
|
8
8
|
Field,
|
|
9
9
|
PositiveInt,
|
|
10
|
+
StringConstraints,
|
|
10
11
|
field_validator,
|
|
11
12
|
)
|
|
12
13
|
|
|
@@ -24,7 +25,6 @@ from .enums import (
|
|
|
24
25
|
TransferNetwork,
|
|
25
26
|
UserStatus,
|
|
26
27
|
)
|
|
27
|
-
from .general import digits
|
|
28
28
|
from .identities import Curp
|
|
29
29
|
|
|
30
30
|
MAX_PAGE_SIZE = 100
|
|
@@ -183,4 +183,12 @@ class BankAccountValidationQuery(QueryParams):
|
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
class PostalCodeQuery(QueryParams):
|
|
186
|
-
postal_code:
|
|
186
|
+
postal_code: Annotated[
|
|
187
|
+
str,
|
|
188
|
+
StringConstraints(
|
|
189
|
+
strip_whitespace=True,
|
|
190
|
+
min_length=5,
|
|
191
|
+
max_length=5,
|
|
192
|
+
pattern=r'^\d+$',
|
|
193
|
+
),
|
|
194
|
+
]
|
|
@@ -545,14 +545,12 @@ class VerificationRequest(BaseModel):
|
|
|
545
545
|
recipient: Union[EmailStr, PhoneNumber] = Field(
|
|
546
546
|
description='Phone or email to validate'
|
|
547
547
|
)
|
|
548
|
-
platform_id: str
|
|
549
548
|
model_config = ConfigDict(
|
|
550
549
|
str_strip_whitespace=True,
|
|
551
550
|
json_schema_extra={
|
|
552
551
|
'example': {
|
|
553
552
|
'type': 'email',
|
|
554
553
|
'recipient': 'user@example.com',
|
|
555
|
-
'platform_id': 'PT8UEv02zBTcymd4Kd3MO6pg',
|
|
556
554
|
}
|
|
557
555
|
},
|
|
558
556
|
)
|
cuenca_validations/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.1.
|
|
1
|
+
__version__ = '2.1.9.dev2'
|
|
@@ -4,7 +4,7 @@ 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=
|
|
7
|
+
cuenca_validations/version.py,sha256=Z6So56Fh-MdO3lYKoOGzwsVa-oKhc_4TCWkMEVC97NY,27
|
|
8
8
|
cuenca_validations/types/__init__.py,sha256=fPmHzU6mY6l3qK2R8cOhjcrICTOnoHS6VQteX663FRE,4843
|
|
9
9
|
cuenca_validations/types/card.py,sha256=UGzz8NTFAverUmdUKAK1oGHnOnjSNTpIRUm93vKSSGY,1295
|
|
10
10
|
cuenca_validations/types/enums.py,sha256=533fUCip5CXMD7m4Ww8VAcB5Yr4A0EmT5GBRt2mF4b0,19510
|
|
@@ -13,16 +13,16 @@ cuenca_validations/types/general.py,sha256=vJmQBD_Iv_hsxD8x3_Bip-NlYAiE2rmXSPQKj
|
|
|
13
13
|
cuenca_validations/types/helpers.py,sha256=6rHUhwoQ7jJZtGcW3LX-W5ZDl42PWE1RoBpGme7KCkk,610
|
|
14
14
|
cuenca_validations/types/identities.py,sha256=1wkutHzL9Gpd9oAZdyiikNxWKe5iBVAQT3TabR6YG1o,5451
|
|
15
15
|
cuenca_validations/types/morals.py,sha256=davabh5hAnFVQyM7-yCyDaT5ewXnm0cr1BtqDIwzkX8,1833
|
|
16
|
-
cuenca_validations/types/queries.py,sha256=
|
|
17
|
-
cuenca_validations/types/requests.py,sha256=
|
|
18
|
-
cuenca_validations-2.1.
|
|
16
|
+
cuenca_validations/types/queries.py,sha256=5VHVyTcN9lELcCNXL_b7kWXWw5-6e7G3NTVPF8FT11Y,4963
|
|
17
|
+
cuenca_validations/types/requests.py,sha256=CKj6RmPQQwpjT51uXTEwdSjJ5GlAymOeN_SC8GgEB2Q,20332
|
|
18
|
+
cuenca_validations-2.1.9.dev2.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
|
-
tests/test_types.py,sha256=
|
|
25
|
-
cuenca_validations-2.1.
|
|
26
|
-
cuenca_validations-2.1.
|
|
27
|
-
cuenca_validations-2.1.
|
|
28
|
-
cuenca_validations-2.1.
|
|
24
|
+
tests/test_types.py,sha256=agu5f7cbKv2SPuX8CE3Xp7K_s-MW-oLQjj86BWKcXbw,18811
|
|
25
|
+
cuenca_validations-2.1.9.dev2.dist-info/METADATA,sha256=FTru1GW1r8NA_Esrt_aVg956J0jkgS7XCi6F9Fd9X-8,1599
|
|
26
|
+
cuenca_validations-2.1.9.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
cuenca_validations-2.1.9.dev2.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
|
|
28
|
+
cuenca_validations-2.1.9.dev2.dist-info/RECORD,,
|
tests/test_types.py
CHANGED
|
@@ -506,7 +506,6 @@ def test_email_verification_request():
|
|
|
506
506
|
data = dict(
|
|
507
507
|
recipient='mail@cuenca.com',
|
|
508
508
|
type='email_verification',
|
|
509
|
-
platform_id='PL01',
|
|
510
509
|
)
|
|
511
510
|
with pytest.raises(ValidationError):
|
|
512
511
|
VerificationRequest(**data)
|
|
@@ -518,7 +517,6 @@ def test_phone_verification_request():
|
|
|
518
517
|
data = dict(
|
|
519
518
|
recipient='+525555555555',
|
|
520
519
|
type='phone_verification',
|
|
521
|
-
platform_id='PL01',
|
|
522
520
|
)
|
|
523
521
|
with pytest.raises(ValidationError):
|
|
524
522
|
VerificationRequest(**data)
|
|
File without changes
|
{cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{cuenca_validations-2.1.8.dev7.dist-info → cuenca_validations-2.1.9.dev2.dist-info}/top_level.txt
RENAMED
|
File without changes
|