cuenca 2.1.5.dev1__py3-none-any.whl → 2.1.6.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/resources/terms_of_service.py +1 -3
- cuenca/resources/verifications.py +1 -4
- cuenca/version.py +1 -1
- {cuenca-2.1.5.dev1.dist-info → cuenca-2.1.6.dev2.dist-info}/METADATA +1 -1
- {cuenca-2.1.5.dev1.dist-info → cuenca-2.1.6.dev2.dist-info}/RECORD +11 -11
- tests/conftest.py +5 -4
- tests/resources/test_users.py +2 -2
- tests/resources/test_verifications.py +0 -2
- {cuenca-2.1.5.dev1.dist-info → cuenca-2.1.6.dev2.dist-info}/WHEEL +0 -0
- {cuenca-2.1.5.dev1.dist-info → cuenca-2.1.6.dev2.dist-info}/licenses/LICENSE +0 -0
- {cuenca-2.1.5.dev1.dist-info → cuenca-2.1.6.dev2.dist-info}/top_level.txt +0 -0
|
@@ -2,7 +2,6 @@ import datetime as dt
|
|
|
2
2
|
from typing import ClassVar
|
|
3
3
|
|
|
4
4
|
from cuenca_validations.types import TermsOfService as TermsOfServiceEnum
|
|
5
|
-
from cuenca_validations.types.general import SerializableHttpUrl
|
|
6
5
|
|
|
7
6
|
from .base import Queryable, Retrievable
|
|
8
7
|
|
|
@@ -11,8 +10,7 @@ class TermsOfService(Retrievable, Queryable):
|
|
|
11
10
|
_resource: ClassVar = 'terms_of_service'
|
|
12
11
|
|
|
13
12
|
id: str
|
|
14
|
-
is_active: bool
|
|
15
13
|
created_at: dt.datetime
|
|
14
|
+
deactivated_at: dt.datetime | None
|
|
16
15
|
type: TermsOfServiceEnum
|
|
17
16
|
version: str
|
|
18
|
-
uri: SerializableHttpUrl
|
|
@@ -39,12 +39,9 @@ class Verification(Creatable, Updateable):
|
|
|
39
39
|
cls,
|
|
40
40
|
recipient: str,
|
|
41
41
|
type: VerificationType,
|
|
42
|
-
platform_id: str,
|
|
43
42
|
session: Session = global_session,
|
|
44
43
|
) -> 'Verification':
|
|
45
|
-
req = VerificationRequest(
|
|
46
|
-
recipient=recipient, type=type, platform_id=platform_id
|
|
47
|
-
)
|
|
44
|
+
req = VerificationRequest(recipient=recipient, type=type)
|
|
48
45
|
return cls._create(**req.model_dump(), session=session)
|
|
49
46
|
|
|
50
47
|
@classmethod
|
cuenca/version.py
CHANGED
|
@@ -2,7 +2,7 @@ cuenca/__init__.py,sha256=glrCEfdQ7vemadixSdLY3kQLYU4K4o-mQwKkmBRydK0,1870
|
|
|
2
2
|
cuenca/exc.py,sha256=r_lL03-JS0AsXw71wuNbiwNYLHNDagM56tRxpYyK6Lw,601
|
|
3
3
|
cuenca/jwt.py,sha256=plB2ttHPZnL0xq3gqubw_Jjtj1QYG2E5bk99N3cn5zg,1502
|
|
4
4
|
cuenca/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
cuenca/version.py,sha256=
|
|
5
|
+
cuenca/version.py,sha256=5Z7KYpI_h4WwpIv8nm8w6NDuDsqy5QeqtoWwYwSKdOc,83
|
|
6
6
|
cuenca/http/__init__.py,sha256=V5TG6Ro9d3VY7umzcbtanmvHlGkv-k71H0tqrdMyH-s,49
|
|
7
7
|
cuenca/http/client.py,sha256=psXJiSgd3SUSJ5jwvhdBWsVMNadenG353BNVXdh7HMY,4168
|
|
8
8
|
cuenca/resources/__init__.py,sha256=RVdGFW-0dqa94obH-NxGVw5zd7DJXgUz49rSZiUYCiI,3249
|
|
@@ -39,7 +39,7 @@ cuenca/resources/savings.py,sha256=3DBP1ygxhcScDpLvAQS_fF5chljyDTz4xwnltI0LCAg,1
|
|
|
39
39
|
cuenca/resources/service_providers.py,sha256=x-FNcyiUkdUsNCGudyLGYDbRkD2jPj8-T8U3IumxTVQ,310
|
|
40
40
|
cuenca/resources/sessions.py,sha256=lWphgjG9SZl81ik7c9tuAI6OE4JUOF0ZfRBvmf4vwyQ,1764
|
|
41
41
|
cuenca/resources/statements.py,sha256=PqMvhoE9cvBneXjaS7w4JnTzYdDakkCkbdNYrd7b8LI,282
|
|
42
|
-
cuenca/resources/terms_of_service.py,sha256
|
|
42
|
+
cuenca/resources/terms_of_service.py,sha256=bKbDieQDCj496u3RfUS9o2Qxd9zb0N0QDni740qPcf8,386
|
|
43
43
|
cuenca/resources/transfers.py,sha256=v742SAGUIZfvYHfCNtk0hSm2uyhMGh00RbHIIJiqLzQ,3201
|
|
44
44
|
cuenca/resources/user_credentials.py,sha256=glpxUa5-aYhgJ1ZG1g_c1PAWaQ9eEWP01lauBaccSQQ,1356
|
|
45
45
|
cuenca/resources/user_events.py,sha256=L57v7clStwxyJX2vwe-357uRTrzeQglDpCCgXRg7v9Y,728
|
|
@@ -47,13 +47,13 @@ cuenca/resources/user_lists_validation.py,sha256=UrInfZRUVd4nODBIBOTH8ALEZ3pvdYS
|
|
|
47
47
|
cuenca/resources/user_logins.py,sha256=KDauv2c5BJUR-C5ZeIjAPsv-8VH11BhoT-wCU9KgrwY,1542
|
|
48
48
|
cuenca/resources/users.py,sha256=3qb0-_3KBQCooqFUrknQ28ywU2v7s4JMudrd65z5Q-0,6321
|
|
49
49
|
cuenca/resources/users_tos_agreements.py,sha256=zLWEVttFipz_8Vh9YeNo68VLrWugy-Ob5ENFSVAAeTs,518
|
|
50
|
-
cuenca/resources/verifications.py,sha256=
|
|
50
|
+
cuenca/resources/verifications.py,sha256=c90Pyd20EXLA5Wy0C1RABxjjivMB--q6yu6uK-R8aNA,1607
|
|
51
51
|
cuenca/resources/wallet_transactions.py,sha256=8ePZI3-GaEd658GPYizAfHK9GVwlkt1r95-mEb7T3Jg,1030
|
|
52
52
|
cuenca/resources/webhooks.py,sha256=bGjuvkSP3GXo4Q6v8iZ40Md8xc4AQrEmAD3r40VJqxM,392
|
|
53
53
|
cuenca/resources/whatsapp_transfers.py,sha256=YSL606FBOMGKjhyKK5TiF0di96zdDKoiVtjiz_Zl_ZI,902
|
|
54
|
-
cuenca-2.1.
|
|
54
|
+
cuenca-2.1.6.dev2.dist-info/licenses/LICENSE,sha256=aWv5PmUiAcNENEAdghcVQSeU56pXJHWexJYgklK9XLg,1063
|
|
55
55
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
|
-
tests/conftest.py,sha256=
|
|
56
|
+
tests/conftest.py,sha256=O8GhZPxJenGV_O-DMoXGl3xJImkHBOuXYV3DJDGngzc,1904
|
|
57
57
|
tests/test_cuenca.py,sha256=aeha_utz9YiHQg6eJK2PB7g66pVUYFi9U6pYMGXDKvk,1628
|
|
58
58
|
tests/test_jwt.py,sha256=dY5m4LigM-inqePyYOmdIHoOBmGx0WcfxlKnJEdsF70,1205
|
|
59
59
|
tests/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -97,12 +97,12 @@ tests/resources/test_user_credentials.py,sha256=pJkIMIN4yMkj7AlaBMjI-e2O1YIoFWAh
|
|
|
97
97
|
tests/resources/test_user_events.py,sha256=aPTyrEVF7jBD8-UQZeVOLbUmj9sni0JRCYgootmaQ8c,292
|
|
98
98
|
tests/resources/test_user_lists_validation.py,sha256=sZkjCYkySbWtOxM9NVSzZHaoOhXS7N0XD4buD3dke5E,1196
|
|
99
99
|
tests/resources/test_user_logins.py,sha256=YLIZiFsR9tBv1fNH-lIpIMtvGY_7NHGQpMBFVuEFj6c,988
|
|
100
|
-
tests/resources/test_users.py,sha256=
|
|
101
|
-
tests/resources/test_verifications.py,sha256=
|
|
100
|
+
tests/resources/test_users.py,sha256=op6c6uTweJQtD8OkE_vUUxTMqIC2UrncTwt-B6YO0Qc,3256
|
|
101
|
+
tests/resources/test_verifications.py,sha256=bBXR-pkmrs-_MekKo9iJS4TDkSyqZ65crsrcqVZs4FQ,1591
|
|
102
102
|
tests/resources/test_wallet_transactions.py,sha256=_L2hjPHT4FwwhxksUoaoVHwFFYOGWfF4ScCbk0kb7Hw,3945
|
|
103
103
|
tests/resources/test_webhooks.py,sha256=nYCqAnlNJcMJKRHhgoHOWTQnFLWQHHvFyY8GVCxGTD8,328
|
|
104
104
|
tests/resources/test_whatsapp_transfers.py,sha256=4Dmrsbytx7LRrLQo9M8TAL7cGKJufPStkp51UdRCnYU,1030
|
|
105
|
-
cuenca-2.1.
|
|
106
|
-
cuenca-2.1.
|
|
107
|
-
cuenca-2.1.
|
|
108
|
-
cuenca-2.1.
|
|
105
|
+
cuenca-2.1.6.dev2.dist-info/METADATA,sha256=OWmAjz06lLQlbm6PEDOcCq2Y41wig6xx2ggAcvDjSp4,4988
|
|
106
|
+
cuenca-2.1.6.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
107
|
+
cuenca-2.1.6.dev2.dist-info/top_level.txt,sha256=5h3K7XJTmJniDloPq4sIJHni_xLw-Uoc6ZJ5mcw_lZY,13
|
|
108
|
+
cuenca-2.1.6.dev2.dist-info/RECORD,,
|
tests/conftest.py
CHANGED
|
@@ -3,6 +3,7 @@ from io import BytesIO
|
|
|
3
3
|
|
|
4
4
|
import pytest
|
|
5
5
|
from cuenca_validations.types import Country, Gender, State
|
|
6
|
+
from cuenca_validations.types.enums import Profession
|
|
6
7
|
|
|
7
8
|
import cuenca
|
|
8
9
|
|
|
@@ -49,15 +50,15 @@ def user_request() -> dict:
|
|
|
49
50
|
curp='LOHJ660606HDFPRS02',
|
|
50
51
|
phone_number='+525511223344',
|
|
51
52
|
email_address='jose@test.com',
|
|
52
|
-
profession=
|
|
53
|
+
profession=Profession.empleado,
|
|
53
54
|
address=dict(
|
|
54
55
|
street='calle 1',
|
|
55
56
|
ext_number='2',
|
|
56
57
|
int_number='3',
|
|
57
|
-
|
|
58
|
-
state=State.DF.value,
|
|
59
|
-
country=Country.MX,
|
|
58
|
+
postal_code_id='PC2ygq9j2bS9-9tsuVawzErA',
|
|
60
59
|
),
|
|
60
|
+
phone_verification_id='VERdkuqOCjSA2PSS-VCj7HhQ',
|
|
61
|
+
email_verification_id='VERppwdqsQSAQFFF-CDsWD8s',
|
|
61
62
|
)
|
|
62
63
|
return user_dict
|
|
63
64
|
|
tests/resources/test_users.py
CHANGED
|
@@ -2,6 +2,7 @@ import datetime as dt
|
|
|
2
2
|
|
|
3
3
|
import pytest
|
|
4
4
|
from cuenca_validations.types import VerificationType
|
|
5
|
+
from cuenca_validations.types.enums import Profession
|
|
5
6
|
|
|
6
7
|
from cuenca import Verification
|
|
7
8
|
from cuenca.resources import CurpValidation, User
|
|
@@ -30,7 +31,7 @@ def test_user_query():
|
|
|
30
31
|
def test_user_update():
|
|
31
32
|
user_id = 'USCM-zlFcNQk6ue4gZ_mTGeQ'
|
|
32
33
|
changes = dict(
|
|
33
|
-
profession=
|
|
34
|
+
profession=Profession.sistemas,
|
|
34
35
|
phone_number='+525555555555',
|
|
35
36
|
govt_id=dict(
|
|
36
37
|
type='ine',
|
|
@@ -82,7 +83,6 @@ def test_user_update_user_email_from_verification():
|
|
|
82
83
|
ver = Verification.create(
|
|
83
84
|
recipient='mail@cuenca.com',
|
|
84
85
|
type=VerificationType.email,
|
|
85
|
-
platform_id='PL01',
|
|
86
86
|
)
|
|
87
87
|
user = User.update(user_id, email_verification_id=ver.id)
|
|
88
88
|
assert user.to_dict()['email_address'] == ver.recipient
|
|
@@ -10,7 +10,6 @@ def test_verification_email_create():
|
|
|
10
10
|
verification: Verification = Verification.create(
|
|
11
11
|
recipient='mail@cuenca.com',
|
|
12
12
|
type=VerificationType.email,
|
|
13
|
-
platform_id='PL01',
|
|
14
13
|
)
|
|
15
14
|
assert verification.id
|
|
16
15
|
|
|
@@ -20,7 +19,6 @@ def test_verification_phone_create():
|
|
|
20
19
|
verification: Verification = Verification.create(
|
|
21
20
|
recipient='+525555555555',
|
|
22
21
|
type=VerificationType.phone,
|
|
23
|
-
platform_id='PL01',
|
|
24
22
|
)
|
|
25
23
|
assert verification.id
|
|
26
24
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|