cuenca-validations 2.1.16.dev8__py3-none-any.whl → 2.1.16.dev9__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 +6 -6
- cuenca_validations/types/enums.py +3 -3
- cuenca_validations/types/general.py +20 -20
- cuenca_validations/types/requests.py +9 -9
- cuenca_validations/version.py +1 -1
- {cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/METADATA +1 -1
- {cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/RECORD +11 -11
- tests/test_types.py +6 -6
- {cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/WHEEL +0 -0
- {cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/licenses/LICENSE +0 -0
- {cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
__all__ = [
|
|
2
|
-
'
|
|
2
|
+
'AccountUseType',
|
|
3
3
|
'AccountQuery',
|
|
4
4
|
'Address',
|
|
5
5
|
'ApiKeyQuery',
|
|
@@ -54,8 +54,8 @@ __all__ = [
|
|
|
54
54
|
'KYCValidationSource',
|
|
55
55
|
'Language',
|
|
56
56
|
'LimitedWalletRequest',
|
|
57
|
-
'
|
|
58
|
-
'
|
|
57
|
+
'MonthlyMovementsType',
|
|
58
|
+
'MonthlySpendingType',
|
|
59
59
|
'PartnerRequest',
|
|
60
60
|
'PartnerUpdateRequest',
|
|
61
61
|
'PhoneNumber',
|
|
@@ -122,7 +122,7 @@ __all__ = [
|
|
|
122
122
|
|
|
123
123
|
from .card import StrictPaymentCardNumber
|
|
124
124
|
from .enums import (
|
|
125
|
-
|
|
125
|
+
AccountUseType,
|
|
126
126
|
AuthorizerTransaction,
|
|
127
127
|
BankAccountStatus,
|
|
128
128
|
CardErrorType,
|
|
@@ -147,8 +147,8 @@ from .enums import (
|
|
|
147
147
|
KYCFileType,
|
|
148
148
|
KYCValidationSource,
|
|
149
149
|
Language,
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
MonthlyMovementsType,
|
|
151
|
+
MonthlySpendingType,
|
|
152
152
|
PlatformType,
|
|
153
153
|
PosCapability,
|
|
154
154
|
Profession,
|
|
@@ -706,21 +706,21 @@ class Profession(str, Enum):
|
|
|
706
706
|
oficios = 'oficios'
|
|
707
707
|
|
|
708
708
|
|
|
709
|
-
class
|
|
709
|
+
class AccountUseType(str, Enum):
|
|
710
710
|
personal_expenses = 'personal_expenses'
|
|
711
711
|
business_expenses = 'business_expenses'
|
|
712
712
|
payment_of_goods_or_services = 'payment_of_goods_or_services'
|
|
713
713
|
send_or_receive_transfers = 'send_or_receive_transfers'
|
|
714
714
|
|
|
715
715
|
|
|
716
|
-
class
|
|
716
|
+
class MonthlyMovementsType(str, Enum):
|
|
717
717
|
between_1_and_20 = 'between_1_and_20'
|
|
718
718
|
between_20_and_40 = 'between_20_and_40'
|
|
719
719
|
between_40_and_60 = 'between_40_and_60'
|
|
720
720
|
more_than_60 = 'more_than_60'
|
|
721
721
|
|
|
722
722
|
|
|
723
|
-
class
|
|
723
|
+
class MonthlySpendingType(str, Enum):
|
|
724
724
|
less_than_1k = 'less_than_1k'
|
|
725
725
|
between_1k_and_10k = 'between_1k_and_10k'
|
|
726
726
|
between_10k_and_20k = 'between_10k_and_20k'
|
|
@@ -13,10 +13,10 @@ from pydantic import (
|
|
|
13
13
|
|
|
14
14
|
from ..validators import sanitize_dict, sanitize_item
|
|
15
15
|
from .enums import (
|
|
16
|
-
|
|
16
|
+
AccountUseType,
|
|
17
17
|
IncomeType,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
MonthlyMovementsType,
|
|
19
|
+
MonthlySpendingType,
|
|
20
20
|
Profession,
|
|
21
21
|
State,
|
|
22
22
|
)
|
|
@@ -129,47 +129,47 @@ def get_profession_name(profession: Profession) -> str:
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
names_account_use_types = {
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
AccountUseType.personal_expenses: 'Gastos personales o familiares',
|
|
133
|
+
AccountUseType.business_expenses: (
|
|
134
134
|
'Gastos relacionados con tu actividad económica'
|
|
135
135
|
),
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
AccountUseType.payment_of_goods_or_services: 'Pago de bienes o servicios',
|
|
137
|
+
AccountUseType.send_or_receive_transfers: (
|
|
138
138
|
'Enviar o recibir transferencias'
|
|
139
139
|
),
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
def get_account_use_type_name(account_use_type:
|
|
143
|
+
def get_account_use_type_name(account_use_type: AccountUseType) -> str:
|
|
144
144
|
return names_account_use_types[account_use_type]
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
names_monthly_movements_types = {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
MonthlyMovementsType.between_1_and_20: 'Entre 1 y 20 movimientos',
|
|
149
|
+
MonthlyMovementsType.between_20_and_40: 'Entre 20 y 40 movimientos',
|
|
150
|
+
MonthlyMovementsType.between_40_and_60: 'Entre 40 y 60 movimientos',
|
|
151
|
+
MonthlyMovementsType.more_than_60: 'Más de 60 movimientos',
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
def get_monthly_movements_type_name(
|
|
156
|
-
monthly_movements_type:
|
|
156
|
+
monthly_movements_type: MonthlyMovementsType,
|
|
157
157
|
) -> str:
|
|
158
158
|
return names_monthly_movements_types[monthly_movements_type]
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
names_monthly_spending_types = {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
162
|
+
MonthlySpendingType.less_than_1k: 'Menos de $1,000',
|
|
163
|
+
MonthlySpendingType.between_1k_and_10k: 'Entre $1,000 y $10,000',
|
|
164
|
+
MonthlySpendingType.between_10k_and_20k: 'Entre $10,000 y $20,000',
|
|
165
|
+
MonthlySpendingType.between_20k_and_50k: 'Entre $20,000 y $50,000',
|
|
166
|
+
MonthlySpendingType.between_50k_and_100k: 'Entre $50,000 y $100,000',
|
|
167
|
+
MonthlySpendingType.more_than_100k: 'Más de $100,000',
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
def get_monthly_spending_type_name(
|
|
172
|
-
monthly_spending_type:
|
|
172
|
+
monthly_spending_type: MonthlySpendingType,
|
|
173
173
|
) -> str:
|
|
174
174
|
return names_monthly_spending_types[monthly_spending_type]
|
|
175
175
|
|
|
@@ -17,7 +17,7 @@ from pydantic_core import core_schema
|
|
|
17
17
|
from pydantic_extra_types.coordinate import Coordinate
|
|
18
18
|
|
|
19
19
|
from ..types.enums import (
|
|
20
|
-
|
|
20
|
+
AccountUseType,
|
|
21
21
|
AuthorizerTransaction,
|
|
22
22
|
CardDesign,
|
|
23
23
|
CardFundingType,
|
|
@@ -34,8 +34,8 @@ from ..types.enums import (
|
|
|
34
34
|
IssuerNetwork,
|
|
35
35
|
KYCFileType,
|
|
36
36
|
KYCValidationSource,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
MonthlyMovementsType,
|
|
38
|
+
MonthlySpendingType,
|
|
39
39
|
PlatformType,
|
|
40
40
|
PosCapability,
|
|
41
41
|
Profession,
|
|
@@ -463,9 +463,9 @@ class UserRequest(BaseModel):
|
|
|
463
463
|
...,
|
|
464
464
|
description='ID of previously validated email verification',
|
|
465
465
|
)
|
|
466
|
-
account_use_type: Optional[
|
|
467
|
-
monthly_movements_type: Optional[
|
|
468
|
-
monthly_spending_type: Optional[
|
|
466
|
+
account_use_type: Optional[AccountUseType] = None
|
|
467
|
+
monthly_movements_type: Optional[MonthlyMovementsType] = None
|
|
468
|
+
monthly_spending_type: Optional[MonthlySpendingType] = None
|
|
469
469
|
income_type: Optional[IncomeType] = None
|
|
470
470
|
|
|
471
471
|
model_config = ConfigDict(
|
|
@@ -503,9 +503,9 @@ class UserUpdateRequest(BaseModel):
|
|
|
503
503
|
pronouns: Optional[str] = None
|
|
504
504
|
status: Optional[UserStatus] = None
|
|
505
505
|
required_level: Optional[int] = None
|
|
506
|
-
account_use_type: Optional[
|
|
507
|
-
monthly_movements_type: Optional[
|
|
508
|
-
monthly_spending_type: Optional[
|
|
506
|
+
account_use_type: Optional[AccountUseType] = None
|
|
507
|
+
monthly_movements_type: Optional[MonthlyMovementsType] = None
|
|
508
|
+
monthly_spending_type: Optional[MonthlySpendingType] = None
|
|
509
509
|
income_type: Optional[IncomeType] = None
|
|
510
510
|
|
|
511
511
|
@field_validator('beneficiaries')
|
cuenca_validations/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.1.16.
|
|
1
|
+
__version__ = '2.1.16.dev9'
|
{cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/RECORD
RENAMED
|
@@ -4,26 +4,26 @@ 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=mYJDXxJVokl5jZIA4FYn8wkaMUnOxAH54t1Pfg_0kmQ,1190
|
|
7
|
-
cuenca_validations/version.py,sha256
|
|
8
|
-
cuenca_validations/types/__init__.py,sha256=
|
|
7
|
+
cuenca_validations/version.py,sha256=zG5-HwiJzz-FJ8RiYGkbr4miTJ5op_melxELFBwNxXg,28
|
|
8
|
+
cuenca_validations/types/__init__.py,sha256=CIfqLhBxUMX5YAI-FvX9pnHB233BivGJZj1lFNddx-k,5415
|
|
9
9
|
cuenca_validations/types/card.py,sha256=UGzz8NTFAverUmdUKAK1oGHnOnjSNTpIRUm93vKSSGY,1295
|
|
10
|
-
cuenca_validations/types/enums.py,sha256=
|
|
10
|
+
cuenca_validations/types/enums.py,sha256=_dU5LYzrKbE87IGn8hHIy5tgbKNrHZIxIhuVGYHZMEs,20345
|
|
11
11
|
cuenca_validations/types/files.py,sha256=2CszbwF9ytXV9suFFwyDjYG4XxY8UhCjRw3HttVXXNw,269
|
|
12
|
-
cuenca_validations/types/general.py,sha256=
|
|
12
|
+
cuenca_validations/types/general.py,sha256=oU81Qyk_XgysdlEVsYy23MreGX8WIE-0bwgb2EkfcT4,5421
|
|
13
13
|
cuenca_validations/types/helpers.py,sha256=XPiYVTLDtmBB5R1heWUy1c35zZMh7nh-BmS6rtwEltg,1379
|
|
14
14
|
cuenca_validations/types/identities.py,sha256=1wkutHzL9Gpd9oAZdyiikNxWKe5iBVAQT3TabR6YG1o,5451
|
|
15
15
|
cuenca_validations/types/morals.py,sha256=davabh5hAnFVQyM7-yCyDaT5ewXnm0cr1BtqDIwzkX8,1833
|
|
16
16
|
cuenca_validations/types/queries.py,sha256=Pp7BAPk20hzImxb5EIiy3oI8S6AeCruU-NbQpOlrWVo,5146
|
|
17
|
-
cuenca_validations/types/requests.py,sha256=
|
|
18
|
-
cuenca_validations-2.1.16.
|
|
17
|
+
cuenca_validations/types/requests.py,sha256=IU0gbWxvs7QTcBfA1WsUqhm2RJPCXjytCy3jClAFp4A,21678
|
|
18
|
+
cuenca_validations-2.1.16.dev9.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_requests.py,sha256=HGKybPNlN-Vbf2Ew34csfMR5UzZdVPoX9J8eeD4yCiI,1095
|
|
24
24
|
tests/test_statement.py,sha256=IOE0rRRBgBZSJv_FLaETEyn5NzzXKMNTqgjv99GX-68,1436
|
|
25
|
-
tests/test_types.py,sha256=
|
|
26
|
-
cuenca_validations-2.1.16.
|
|
27
|
-
cuenca_validations-2.1.16.
|
|
28
|
-
cuenca_validations-2.1.16.
|
|
29
|
-
cuenca_validations-2.1.16.
|
|
25
|
+
tests/test_types.py,sha256=2CSwhYn5WDFBHQl2239FD9J7KlB2_Tt7RVqQUlFcwnI,20074
|
|
26
|
+
cuenca_validations-2.1.16.dev9.dist-info/METADATA,sha256=wqDyQHcZccWupzsTnbnpbL5XwBteo_-X6vjavuom018,1600
|
|
27
|
+
cuenca_validations-2.1.16.dev9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
cuenca_validations-2.1.16.dev9.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
|
|
29
|
+
cuenca_validations-2.1.16.dev9.dist-info/RECORD,,
|
tests/test_types.py
CHANGED
|
@@ -25,11 +25,11 @@ from cuenca_validations.types import (
|
|
|
25
25
|
get_state_name,
|
|
26
26
|
)
|
|
27
27
|
from cuenca_validations.types.enums import (
|
|
28
|
-
|
|
28
|
+
AccountUseType,
|
|
29
29
|
EcommerceIndicator,
|
|
30
30
|
IncomeType,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
MonthlyMovementsType,
|
|
32
|
+
MonthlySpendingType,
|
|
33
33
|
Profession,
|
|
34
34
|
SessionType,
|
|
35
35
|
State,
|
|
@@ -567,21 +567,21 @@ def test_get_income_type_name() -> None:
|
|
|
567
567
|
|
|
568
568
|
def test_get_account_use_type_name() -> None:
|
|
569
569
|
assert (
|
|
570
|
-
get_account_use_type_name(
|
|
570
|
+
get_account_use_type_name(AccountUseType.personal_expenses)
|
|
571
571
|
== 'Gastos personales o familiares'
|
|
572
572
|
)
|
|
573
573
|
|
|
574
574
|
|
|
575
575
|
def test_get_monthly_spending_type_name() -> None:
|
|
576
576
|
assert (
|
|
577
|
-
get_monthly_spending_type_name(
|
|
577
|
+
get_monthly_spending_type_name(MonthlySpendingType.less_than_1k)
|
|
578
578
|
== 'Menos de $1,000'
|
|
579
579
|
)
|
|
580
580
|
|
|
581
581
|
|
|
582
582
|
def test_get_monthly_movements_type_name() -> None:
|
|
583
583
|
assert (
|
|
584
|
-
get_monthly_movements_type_name(
|
|
584
|
+
get_monthly_movements_type_name(MonthlyMovementsType.between_1_and_20)
|
|
585
585
|
== 'Entre 1 y 20 movimientos'
|
|
586
586
|
)
|
|
587
587
|
|
|
File without changes
|
|
File without changes
|
{cuenca_validations-2.1.16.dev8.dist-info → cuenca_validations-2.1.16.dev9.dist-info}/top_level.txt
RENAMED
|
File without changes
|