cuenca-validations 2.1.7.dev1__py3-none-any.whl → 2.1.7.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.
@@ -688,3 +688,19 @@ class SATRegimeCode(str, Enum):
688
688
  ING_PREM = "615" # Régimen de los ingresos por obtención de premios
689
689
  AE_PLAT_TEC = "625" # Régimen de las Actividades Empresariales con ingresos a través de Plataformas Tecnológicas # noqa: E501
690
690
  RS_CONF = "626" # Régimen Simplificado de Confianza
691
+
692
+
693
+ class Profession(str, Enum):
694
+ arts = 'arts'
695
+ agriculture = 'agriculture'
696
+ commerce = 'commerce'
697
+ student = 'student'
698
+ employee = 'employee'
699
+ entrepreneur = 'entrepreneur'
700
+ homemaker = 'homemaker'
701
+ teacher = 'teacher'
702
+ professional = 'professional'
703
+ public_servant = 'public_servant'
704
+ it_communications = 'it_communications'
705
+ freelancer = 'freelancer'
706
+ skilled_trades = 'skilled_trades'
@@ -1,14 +1,7 @@
1
1
  import datetime as dt
2
- from typing import Annotated, Any, Optional
2
+ from typing import Annotated, Optional
3
3
 
4
- from pydantic import (
5
- BaseModel,
6
- ConfigDict,
7
- Field,
8
- SecretStr,
9
- StringConstraints,
10
- model_validator,
11
- )
4
+ from pydantic import BaseModel, ConfigDict, Field, SecretStr, StringConstraints
12
5
  from pydantic_extra_types.phone_numbers import PhoneNumber
13
6
 
14
7
  from .enums import Country, KYCFileType, State, VerificationStatus
@@ -32,6 +32,7 @@ from ..types.enums import (
32
32
  KYCValidationSource,
33
33
  PlatformType,
34
34
  PosCapability,
35
+ Profession,
35
36
  SavingCategory,
36
37
  SessionType,
37
38
  State,
@@ -411,38 +412,24 @@ class UserTOSAgreementRequest(BaseModel):
411
412
 
412
413
  class UserRequest(BaseModel):
413
414
  curp: Curp = Field(
414
- description='Previously validated in `curp_validations`'
415
+ description=(
416
+ 'Mexican government ID (18 characters). ' 'Must be pre-validated.'
417
+ )
418
+ )
419
+
420
+ profession: Profession = Field(description='User profession or occupation')
421
+ address: Address = Field(
422
+ description='User residential address information'
415
423
  )
416
- # curp_verification_id: str = Field(
417
- # ...,
418
- # description='Previously validated in `curp_validations`',
419
- # )
420
-
421
- profession: str = None
422
- address: Address = None
423
- # status: Optional[UserStatus] = Field(
424
- # None,
425
- # description='Status that the user will have when created. '
426
- # 'Defined by platform',
427
- # )
428
- # required_level: Optional[int] = Field(
429
- # None,
430
- # ge=1,
431
- # le=3,
432
- # description='Maximum level a User can reach. Defined by platform',
433
- # )
434
424
  phone_verification_id: str = Field(
435
425
  ...,
436
- description='Only if you validated it previously with the '
437
- 'resource `verifications`',
426
+ description='ID of previously validated phone verification',
438
427
  )
439
428
  email_verification_id: str = Field(
440
429
  ...,
441
- description='Only if you validated it previously with the '
442
- 'resource `verifications`',
430
+ description='ID of previously validated email verification',
443
431
  )
444
- # terms_of_service: Optional[TOSRequest] = None
445
- # signature: Optional[KYCFile] = None
432
+
446
433
  model_config = ConfigDict(
447
434
  json_schema_extra={
448
435
  'example': {
@@ -1 +1 @@
1
- __version__ = '2.1.7.dev1'
1
+ __version__ = '2.1.7.dev2'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cuenca_validations
3
- Version: 2.1.7.dev1
3
+ Version: 2.1.7.dev2
4
4
  Summary: Cuenca common validations
5
5
  Home-page: https://github.com/cuenca-mx/cuenca-validations
6
6
  Author: Cuenca
@@ -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=fdoXTiCTZFruqERsWy__6-loxEsKJco-CGxvzEmN6Vc,27
7
+ cuenca_validations/version.py,sha256=Ds4XNfrbQkluTtAFbk9v0sDPjZYssaa0x1zVUHfpyNY,27
8
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=Vm9HGf83jPkEp8iZ-KGtKGWQGx5q-cIUuQj32y_QcvU,18997
10
+ cuenca_validations/types/enums.py,sha256=o2XmufNIBhx88KDVARnpoXqLkyXVP89XMW0DDPDH9NI,19424
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
- cuenca_validations/types/identities.py,sha256=zt4oCDiXm8k4FN_WvyOlVEfv19NI7LD6qNcfA-XuDdw,4521
14
+ cuenca_validations/types/identities.py,sha256=FBpWUwRfy99jBr2Zhuv9gArnnUe12o3A2kbs25i9nwo,4470
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=NQwz9jL9DZcU4ucNjPYRDTx7aDFrJkgVv_PXtskO15E,21104
18
- cuenca_validations-2.1.7.dev1.dist-info/licenses/LICENSE,sha256=wR76FmxBbfnQpwELkkE5iMF8sFIafEMgXLTE4N4WPTc,1063
17
+ cuenca_validations/types/requests.py,sha256=Zp7-Yd0vEt8fPqJd4eAA9LvSxbQRCUo57fSjJOQIlY0,20642
18
+ cuenca_validations-2.1.7.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=ZHdo5q3yvgK887IZFwYcD9-U-YFxnnyjdc-jXkgW-rw,19018
25
- cuenca_validations-2.1.7.dev1.dist-info/METADATA,sha256=iKdNHS4AlsY8_7FEOGZDG4fDDVHWt18nAedAEkF4u8E,1599
26
- cuenca_validations-2.1.7.dev1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
27
- cuenca_validations-2.1.7.dev1.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
28
- cuenca_validations-2.1.7.dev1.dist-info/RECORD,,
24
+ tests/test_types.py,sha256=TlFJ5Hb6Sn9HwSrYJbULUKH89BdwTUva5QKCoTRZS_A,19005
25
+ cuenca_validations-2.1.7.dev2.dist-info/METADATA,sha256=NvTlTALqLPigyZXcYBA9BA6xxF1lzh2JhXXL-6eEfRI,1599
26
+ cuenca_validations-2.1.7.dev2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
27
+ cuenca_validations-2.1.7.dev2.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
28
+ cuenca_validations-2.1.7.dev2.dist-info/RECORD,,
tests/test_types.py CHANGED
@@ -10,7 +10,6 @@ from pydantic import AfterValidator, BaseModel, SecretStr, ValidationError
10
10
  from pydantic.fields import FieldInfo
11
11
 
12
12
  from cuenca_validations.types import (
13
- Address,
14
13
  CardQuery,
15
14
  JSONEncoder,
16
15
  QueryParams,