cuenca 2.1.8.dev1__py3-none-any.whl → 2.1.8.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/__init__.py CHANGED
@@ -45,8 +45,8 @@ __all__ = [
45
45
  'TermsOfService',
46
46
  'UserTOSAgreement',
47
47
  'PostalCodes',
48
- 'ExistPhone',
49
- 'PhoneVerificationAssociation',
48
+ 'ExistPhones',
49
+ 'PhoneVerificationAssociations',
50
50
  ]
51
51
 
52
52
  from . import http
@@ -66,7 +66,7 @@ from .resources import (
66
66
  CurpValidation,
67
67
  Deposit,
68
68
  Endpoint,
69
- ExistPhone,
69
+ ExistPhones,
70
70
  File,
71
71
  FileBatch,
72
72
  Identity,
@@ -76,7 +76,7 @@ from .resources import (
76
76
  LimitedWallet,
77
77
  LoginToken,
78
78
  Otp,
79
- PhoneVerificationAssociation,
79
+ PhoneVerificationAssociations,
80
80
  Platform,
81
81
  PostalCodes,
82
82
  Questionnaires,
@@ -16,7 +16,7 @@ __all__ = [
16
16
  'Endpoint',
17
17
  'File',
18
18
  'FileBatch',
19
- 'ExistPhone',
19
+ 'ExistPhones',
20
20
  'Identity',
21
21
  'IdentityEvent',
22
22
  'KYCValidation',
@@ -60,7 +60,7 @@ from .commissions import Commission
60
60
  from .curp_validations import CurpValidation
61
61
  from .deposits import Deposit
62
62
  from .endpoints import Endpoint
63
- from .exist_phone import ExistPhone
63
+ from .exist_phones import ExistPhones
64
64
  from .file_batches import FileBatch
65
65
  from .files import File
66
66
  from .identities import Identity
@@ -70,7 +70,7 @@ from .kyc_validations import KYCValidation
70
70
  from .limited_wallets import LimitedWallet
71
71
  from .login_tokens import LoginToken
72
72
  from .otps import Otp
73
- from .phone_verification_association import PhoneVerificationAssociation
73
+ from .phone_verification_associations import PhoneVerificationAssociations
74
74
  from .platforms import Platform
75
75
  from .postal_codes import PostalCodes
76
76
  from .questionnaires import Questionnaires
@@ -136,7 +136,7 @@ resource_classes = [
136
136
  JwtToken,
137
137
  TermsOfService,
138
138
  UserTOSAgreement,
139
- PhoneVerificationAssociation,
139
+ PhoneVerificationAssociations,
140
140
  ]
141
141
  for resource_cls in resource_classes:
142
142
  RESOURCES[resource_cls._resource] = resource_cls # type: ignore
@@ -5,8 +5,8 @@ from pydantic_extra_types.phone_numbers import PhoneNumber
5
5
  from .base import Retrievable
6
6
 
7
7
 
8
- class ExistPhone(Retrievable):
9
- _resource: ClassVar = 'exist_phone'
8
+ class ExistPhones(Retrievable):
9
+ _resource: ClassVar = 'exist_phones'
10
10
 
11
11
  id: PhoneNumber
12
12
  exist: bool
@@ -9,8 +9,8 @@ from ..http import Session, session as global_session
9
9
  from .base import Creatable
10
10
 
11
11
 
12
- class PhoneVerificationAssociation(Creatable):
13
- _resource: ClassVar = 'phone_verification_association'
12
+ class PhoneVerificationAssociations(Creatable):
13
+ _resource: ClassVar = 'phone_verification_associations'
14
14
 
15
15
  verification_id: str
16
16
  user_id: str
@@ -19,7 +19,7 @@ class PhoneVerificationAssociation(Creatable):
19
19
  @classmethod
20
20
  def create(
21
21
  cls, verification_id: str, session: Session = global_session
22
- ) -> 'PhoneVerificationAssociation':
22
+ ) -> 'PhoneVerificationAssociations':
23
23
  req = PhoneVerificationAssociationRequest(
24
24
  verification_id=verification_id
25
25
  )
cuenca/resources/users.py CHANGED
@@ -7,6 +7,7 @@ from cuenca_validations.types import (
7
7
  Beneficiary,
8
8
  KYCFile,
9
9
  PhoneNumber,
10
+ SATRegimeCode,
10
11
  TOSAgreement,
11
12
  TOSRequest,
12
13
  UserQuery,
@@ -58,6 +59,7 @@ class User(Creatable, Retrievable, Updateable, Queryable):
58
59
  )
59
60
  platform_id: Optional[str] = None
60
61
  clabe: Optional[Clabe] = None
62
+ fiscal_regime_code: Optional[SATRegimeCode] = None
61
63
  # These fields are added by identify when retrieving a User:
62
64
  names: Optional[str] = None
63
65
  first_surname: Optional[str] = None
@@ -149,6 +151,7 @@ class User(Creatable, Retrievable, Updateable, Queryable):
149
151
  email_verification_id: Optional[str] = None,
150
152
  phone_verification_id: Optional[str] = None,
151
153
  curp_document: Optional[SerializableHttpUrl] = None,
154
+ fiscal_regime_code: Optional[SATRegimeCode] = None,
152
155
  *,
153
156
  session: Session = global_session,
154
157
  ) -> 'User':
cuenca/version.py CHANGED
@@ -1,3 +1,3 @@
1
- __version__ = '2.1.8.dev1'
1
+ __version__ = '2.1.8.dev2'
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.8.dev1
3
+ Version: 2.1.8.dev2
4
4
  Summary: Cuenca API Client
5
5
  Home-page: https://github.com/cuenca-mx/cuenca-python
6
6
  Author: Cuenca
@@ -1,11 +1,11 @@
1
- cuenca/__init__.py,sha256=oYOk8m7O69oj2dCAIgHZtYxXK_B2JWWHAQ3Iy4TYAqs,1974
1
+ cuenca/__init__.py,sha256=R_PNGTPbmivdWfiE5qAFQE-gsw0AOB4cw4W6DWpF-KY,1978
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=ykjdz6cyUd2UHF7yXpKmhSvWttsc15-LoKRo4JDgP28,83
5
+ cuenca/version.py,sha256=1pMeHzDUuU2sU9clGFaSP4AckYQ6yTM2eUWMTfl-C3Y,83
6
6
  cuenca/http/__init__.py,sha256=V5TG6Ro9d3VY7umzcbtanmvHlGkv-k71H0tqrdMyH-s,49
7
7
  cuenca/http/client.py,sha256=psXJiSgd3SUSJ5jwvhdBWsVMNadenG353BNVXdh7HMY,4168
8
- cuenca/resources/__init__.py,sha256=OOr7dms5ND1FFz5VZlzHkXx_nXT8SUYA9s-mPcj_iRc,3446
8
+ cuenca/resources/__init__.py,sha256=uBp3dzTwPTY62Dx8o9bPCtNJ6OeHKNRoTsUc2RQL5uA,3452
9
9
  cuenca/resources/accounts.py,sha256=5yfNxAHpxWFosoR4WrPrDGpBCRkaQk98V-w0wCPPXqU,345
10
10
  cuenca/resources/api_keys.py,sha256=p65ZUiAu51JhEL_fZDc7_DTR0PMcSa-YQeK9gRFY82s,2618
11
11
  cuenca/resources/arpc.py,sha256=a9gGIgpBV8RK2ePSPBxI5c4ET4MtKH6Po_HRiv73B5k,1689
@@ -22,7 +22,7 @@ cuenca/resources/commissions.py,sha256=Fz5kHq7FPJl8Z0qiu5_z-Ws2jEPqGi1x2OOwXCCM-
22
22
  cuenca/resources/curp_validations.py,sha256=LWJcu1ccoc6_t9ky0t8xqWepdpWSrUYIjW6a_8xJ_Rs,3506
23
23
  cuenca/resources/deposits.py,sha256=8FINQJ3c0Zg8FAq7e1JZu9i8G40fX-Kmawhl7Ouxpx4,566
24
24
  cuenca/resources/endpoints.py,sha256=AhrG8O6-6rtjtA9Ll98nmxq7xxiLkrKHR7XXZ59PGSs,3235
25
- cuenca/resources/exist_phone.py,sha256=fMiZ502V-8HAmhMnau3C_O1UIvtGTY2luCDUY6ZjznA,229
25
+ cuenca/resources/exist_phones.py,sha256=yuAOPaxuw8OI1farvqsNxjAI15P3147SqVnkRXilWV0,231
26
26
  cuenca/resources/file_batches.py,sha256=2Fsmz8ryOjvLn3dpsyR0G2iS0zNVR4ajovNkaMZaHaM,786
27
27
  cuenca/resources/files.py,sha256=WZYRo76fIGXNXk2HzA252dSdIdA4bl3EjB6q0bb6BFg,1837
28
28
  cuenca/resources/identities.py,sha256=IdL495eTjx_2gDRxM9oG_QmDNOwaY7Nv9gzqeZu_Wdk,1092
@@ -32,7 +32,7 @@ cuenca/resources/kyc_validations.py,sha256=xxbdztNRD7A3vleZ637TjeGPPK7Ei2waashsm
32
32
  cuenca/resources/limited_wallets.py,sha256=Z3pKMRmMFTAaCw-KdzGSWfYFHCpy-ZrBwOmalVfSdRU,1049
33
33
  cuenca/resources/login_tokens.py,sha256=vxRWqQznxdEUK0R80k0qC0BkTSZwZgUsC2neX8TTd8Q,799
34
34
  cuenca/resources/otps.py,sha256=dZEwns98N8uUtRBFCu6Qs6ySHARU9v3zTF6T5rpF43M,711
35
- cuenca/resources/phone_verification_association.py,sha256=LsIwEGPVEFtrW3mFTMTkvRr-HiljhSVybKDacTscewk,717
35
+ cuenca/resources/phone_verification_associations.py,sha256=JydlFi57kVH-3qdCRMfj67tZSz6N--ZX5ULBe9Owu0Q,720
36
36
  cuenca/resources/platforms.py,sha256=ztGcI-cNnushMRqKqjPaZg_ioS1bpR4vR88osHAyYXw,2560
37
37
  cuenca/resources/postal_codes.py,sha256=FOC9P4nZCQVRHMGeG8wHiRtsD083EdHtcKGPuJKj8b8,467
38
38
  cuenca/resources/questionnaires.py,sha256=TKICPHghEhER83byMhe75Wb798K5veqv47RafYA5VOM,1043
@@ -47,13 +47,13 @@ cuenca/resources/user_credentials.py,sha256=glpxUa5-aYhgJ1ZG1g_c1PAWaQ9eEWP01lau
47
47
  cuenca/resources/user_events.py,sha256=L57v7clStwxyJX2vwe-357uRTrzeQglDpCCgXRg7v9Y,728
48
48
  cuenca/resources/user_lists_validation.py,sha256=UrInfZRUVd4nODBIBOTH8ALEZ3pvdYS2_xfFR7UeNrc,1595
49
49
  cuenca/resources/user_logins.py,sha256=KDauv2c5BJUR-C5ZeIjAPsv-8VH11BhoT-wCU9KgrwY,1542
50
- cuenca/resources/users.py,sha256=3qb0-_3KBQCooqFUrknQ28ywU2v7s4JMudrd65z5Q-0,6321
50
+ cuenca/resources/users.py,sha256=INmMtdUA3NUA1AEBzUeGF_jV6K7uSNjgNp_uaXDlBDA,6455
51
51
  cuenca/resources/users_tos_agreements.py,sha256=bZiVuobGfLlxwlIyoiA9Izdo4KiUlxJyBffp9Y2NYYU,1250
52
52
  cuenca/resources/verifications.py,sha256=c90Pyd20EXLA5Wy0C1RABxjjivMB--q6yu6uK-R8aNA,1607
53
53
  cuenca/resources/wallet_transactions.py,sha256=8ePZI3-GaEd658GPYizAfHK9GVwlkt1r95-mEb7T3Jg,1030
54
54
  cuenca/resources/webhooks.py,sha256=bGjuvkSP3GXo4Q6v8iZ40Md8xc4AQrEmAD3r40VJqxM,392
55
55
  cuenca/resources/whatsapp_transfers.py,sha256=YSL606FBOMGKjhyKK5TiF0di96zdDKoiVtjiz_Zl_ZI,902
56
- cuenca-2.1.8.dev1.dist-info/licenses/LICENSE,sha256=aWv5PmUiAcNENEAdghcVQSeU56pXJHWexJYgklK9XLg,1063
56
+ cuenca-2.1.8.dev2.dist-info/licenses/LICENSE,sha256=aWv5PmUiAcNENEAdghcVQSeU56pXJHWexJYgklK9XLg,1063
57
57
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  tests/conftest.py,sha256=O8GhZPxJenGV_O-DMoXGl3xJImkHBOuXYV3DJDGngzc,1904
59
59
  tests/test_cuenca.py,sha256=aeha_utz9YiHQg6eJK2PB7g66pVUYFi9U6pYMGXDKvk,1628
@@ -77,7 +77,7 @@ tests/resources/test_commissions.py,sha256=cdRP9LHPUlX-OB_AMDrYux9G_2xYKIUfKqirG
77
77
  tests/resources/test_curp_validations.py,sha256=5GvPrgQGfzD8JCtCdQDz4023Q2caonLbirn7_gZMXow,530
78
78
  tests/resources/test_deposits.py,sha256=LQxg3PYQsyl2f8naPUAKvXnAanZszFlGFsa4WDRvouc,262
79
79
  tests/resources/test_endpoints.py,sha256=prAB6FRYOnkXDOq-LACyTtUXJr_Cq_MmWxyM5awrW24,1509
80
- tests/resources/test_exist_phone.py,sha256=bHbmSuHgGPOF506dIAu4Crh-fwQA5AgPiUeYgC6SnE4,267
80
+ tests/resources/test_exist_phone.py,sha256=aGtwQQSmKHGBMg9w8R-YnlKMKvuhEPo9TBhezkO8dMg,270
81
81
  tests/resources/test_file_batches.py,sha256=xcVeWZns4j3_RPZEv8W1Ws4-bcaxOXTQzFyUpKGVmxM,981
82
82
  tests/resources/test_files.py,sha256=2VSlvYnGHrw--mYNvA6hlpEw-olbW_Hlq2d4vdn8v7M,961
83
83
  tests/resources/test_identities.py,sha256=0osumiLrzKkGG4XLlL4nIdSp_nGutHaPf55w_IVREps,454
@@ -87,7 +87,7 @@ tests/resources/test_kyc_validations.py,sha256=Cn_aiGUNSWFrptTQtgS8HhbK-50QEq_Qo
87
87
  tests/resources/test_limited_wallets.py,sha256=c0zDDOip3lJk8chbcGr_nWCdkO9yuL_HbD1IikR5jH4,527
88
88
  tests/resources/test_login_tokens.py,sha256=kn0gXFOanIXjgKjbeOzfNyKsGAUkc2iKnuVmzIRaMD8,572
89
89
  tests/resources/test_otps.py,sha256=IpCczDNRL_WaWwc1rYbSRmtWMR7GMa-Pfbq2TZcZQDw,616
90
- tests/resources/test_phone_verification_association.py,sha256=DHKb0CzraJsgVhh3fKlU_l3V6yScSyzleOUJqiotdck,373
90
+ tests/resources/test_phone_verification_association.py,sha256=ZYzXYJbYVjlb2KqeE6vDhmkrbYO3aq07gl5nvpdcA_0,375
91
91
  tests/resources/test_platforms.py,sha256=5b6-XC3uAz8GARFkFoanH62jxE1uJIMXcdpeUhmI8Kg,211
92
92
  tests/resources/test_postal_codes.py,sha256=LnP_6wRxlpsl3zmWoyCmqyA7Wa5pUxNgSyfP1rmwSiY,408
93
93
  tests/resources/test_questionnaires.py,sha256=Sl8YHXgL42xiijUncycOUzGu5MtI3jEnhADS8Nol6N8,321
@@ -107,7 +107,7 @@ tests/resources/test_verifications.py,sha256=bBXR-pkmrs-_MekKo9iJS4TDkSyqZ65crsr
107
107
  tests/resources/test_wallet_transactions.py,sha256=_L2hjPHT4FwwhxksUoaoVHwFFYOGWfF4ScCbk0kb7Hw,3945
108
108
  tests/resources/test_webhooks.py,sha256=nYCqAnlNJcMJKRHhgoHOWTQnFLWQHHvFyY8GVCxGTD8,328
109
109
  tests/resources/test_whatsapp_transfers.py,sha256=4Dmrsbytx7LRrLQo9M8TAL7cGKJufPStkp51UdRCnYU,1030
110
- cuenca-2.1.8.dev1.dist-info/METADATA,sha256=xBicYRZZaOneKa9gDOqayFKV9oe66iMu2xI-12dQquc,4988
111
- cuenca-2.1.8.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
- cuenca-2.1.8.dev1.dist-info/top_level.txt,sha256=5h3K7XJTmJniDloPq4sIJHni_xLw-Uoc6ZJ5mcw_lZY,13
113
- cuenca-2.1.8.dev1.dist-info/RECORD,,
110
+ cuenca-2.1.8.dev2.dist-info/METADATA,sha256=quPz8j0g-jllB0UtFtYQHo7BTHCRitlKqx775YiA46o,4988
111
+ cuenca-2.1.8.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
+ cuenca-2.1.8.dev2.dist-info/top_level.txt,sha256=5h3K7XJTmJniDloPq4sIJHni_xLw-Uoc6ZJ5mcw_lZY,13
113
+ cuenca-2.1.8.dev2.dist-info/RECORD,,
@@ -1,11 +1,11 @@
1
1
  import pytest
2
2
 
3
- from cuenca import ExistPhone
3
+ from cuenca import ExistPhones
4
4
 
5
5
 
6
6
  @pytest.mark.vcr
7
7
  def test_exist_phone_retrieve():
8
8
  phone_number = '+527331256958'
9
- exist_phone: ExistPhone = ExistPhone.retrieve(phone_number)
9
+ exist_phone: ExistPhones = ExistPhones.retrieve(phone_number)
10
10
  assert exist_phone.id == phone_number
11
11
  assert exist_phone.exist
@@ -1,12 +1,12 @@
1
1
  import pytest
2
2
 
3
- from cuenca import PhoneVerificationAssociation
3
+ from cuenca import PhoneVerificationAssociations
4
4
 
5
5
 
6
6
  @pytest.mark.vcr
7
7
  def test_phone_verification_association_create():
8
8
 
9
- phone_verification_association = PhoneVerificationAssociation.create(
9
+ phone_verification_association = PhoneVerificationAssociations.create(
10
10
  verification_id='VEeCjasQQWQM-Hr-odTGoKoQ',
11
11
  )
12
12
  assert phone_verification_association.verification_id