cuenca 2.1.5.dev1__py3-none-any.whl → 2.1.6.dev1__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.
@@ -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
@@ -1,3 +1,3 @@
1
- __version__ = '2.1.5.dev1'
1
+ __version__ = '2.1.6.dev1'
2
2
  CLIENT_VERSION = __version__
3
3
  API_VERSION = '2020-03-19'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cuenca
3
- Version: 2.1.5.dev1
3
+ Version: 2.1.6.dev1
4
4
  Summary: Cuenca API Client
5
5
  Home-page: https://github.com/cuenca-mx/cuenca-python
6
6
  Author: Cuenca
@@ -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=FtNEmpVHv6oUwMTR-n-qKapR5-OTbVrGFYIkH4qFddo,83
5
+ cuenca/version.py,sha256=YzLI3rX3b6rL6jUWJpwsRJyvX0HJJMVQy2ca5e0UUak,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
@@ -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=YyvSh5IpiJ02lHK8k-guTwoHSFoaMYSFk1aC2tPi7n0,1680
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.5.dev1.dist-info/licenses/LICENSE,sha256=aWv5PmUiAcNENEAdghcVQSeU56pXJHWexJYgklK9XLg,1063
54
+ cuenca-2.1.6.dev1.dist-info/licenses/LICENSE,sha256=aWv5PmUiAcNENEAdghcVQSeU56pXJHWexJYgklK9XLg,1063
55
55
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
- tests/conftest.py,sha256=xrQtFNkqWG4KG35HorTD5N3-QUL98CAXqmLxu93haKI,1769
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=AkUvk4Jdg4mM3dxvYR17jlc_z3WslIH1OLDqNDoTcc4,3223
101
- tests/resources/test_verifications.py,sha256=yyL-bdryQU3MvqnmAgnnzGG9t7UTxWwPiVu-cDSCjl4,1647
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.5.dev1.dist-info/METADATA,sha256=QqQRLCgM3pE9VDySmXfjzOGGtkQ8cEhdfsCWcLB8FFM,4988
106
- cuenca-2.1.5.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
107
- cuenca-2.1.5.dev1.dist-info/top_level.txt,sha256=5h3K7XJTmJniDloPq4sIJHni_xLw-Uoc6ZJ5mcw_lZY,13
108
- cuenca-2.1.5.dev1.dist-info/RECORD,,
105
+ cuenca-2.1.6.dev1.dist-info/METADATA,sha256=h7UjjO1NH518wEuJDTJJ-GwmywzoPJ8Dau59G2YQjNU,4988
106
+ cuenca-2.1.6.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
107
+ cuenca-2.1.6.dev1.dist-info/top_level.txt,sha256=5h3K7XJTmJniDloPq4sIJHni_xLw-Uoc6ZJ5mcw_lZY,13
108
+ cuenca-2.1.6.dev1.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='employee',
53
+ profession=Profession.empleado,
53
54
  address=dict(
54
55
  street='calle 1',
55
56
  ext_number='2',
56
57
  int_number='3',
57
- postal_code='09900',
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
 
@@ -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='programmer',
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