cuenca 2.0.0.dev1__py3-none-any.whl → 2.0.0.dev3__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/exc.py +4 -5
- cuenca/resources/card_transactions.py +3 -0
- cuenca/resources/transfers.py +1 -1
- cuenca/version.py +1 -1
- {cuenca-2.0.0.dev1.dist-info → cuenca-2.0.0.dev3.dist-info}/METADATA +10 -6
- {cuenca-2.0.0.dev1.dist-info → cuenca-2.0.0.dev3.dist-info}/RECORD +9 -9
- {cuenca-2.0.0.dev1.dist-info → cuenca-2.0.0.dev3.dist-info}/WHEEL +1 -1
- {cuenca-2.0.0.dev1.dist-info → cuenca-2.0.0.dev3.dist-info}/LICENSE +0 -0
- {cuenca-2.0.0.dev1.dist-info → cuenca-2.0.0.dev3.dist-info}/top_level.txt +0 -0
cuenca/exc.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from dataclasses import dataclass
|
|
2
|
-
|
|
3
1
|
from cuenca_validations.typing import DictStrAny
|
|
4
2
|
|
|
5
3
|
|
|
@@ -19,10 +17,11 @@ class MultipleResultsFound(CuencaException):
|
|
|
19
17
|
"""One result was expected but multiple were returned"""
|
|
20
18
|
|
|
21
19
|
|
|
22
|
-
@dataclass
|
|
23
20
|
class CuencaResponseException(CuencaException):
|
|
24
|
-
json: DictStrAny
|
|
25
|
-
|
|
21
|
+
def __init__(self, json: DictStrAny, status_code: int) -> None:
|
|
22
|
+
self.json = json
|
|
23
|
+
self.status_code = status_code
|
|
24
|
+
super().__init__()
|
|
26
25
|
|
|
27
26
|
def __str__(self) -> str:
|
|
28
27
|
return repr(self)
|
|
@@ -14,6 +14,9 @@ from .resources import retrieve_uri, retrieve_uris
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class CardTransaction(Transaction):
|
|
17
|
+
def __init__(self, *args, **kwargs):
|
|
18
|
+
super(CardTransaction, self).__init__(*args, **kwargs)
|
|
19
|
+
|
|
17
20
|
_resource: ClassVar = 'card_transactions'
|
|
18
21
|
_query_params: ClassVar = CardTransactionQuery
|
|
19
22
|
|
cuenca/resources/transfers.py
CHANGED
|
@@ -91,4 +91,4 @@ class Transfer(Transaction, Creatable):
|
|
|
91
91
|
idempotency_key, but this provides some level of protection against
|
|
92
92
|
submitting duplicate transfers
|
|
93
93
|
"""
|
|
94
|
-
return f'{dt.datetime.utcnow().date()}:{account_number}:{amount}'
|
|
94
|
+
return f'{dt.datetime.utcnow().date()}: {account_number}: {amount}'
|
cuenca/version.py
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cuenca
|
|
3
|
-
Version: 2.0.0.
|
|
3
|
+
Version: 2.0.0.dev3
|
|
4
4
|
Summary: Cuenca API Client
|
|
5
5
|
Home-page: https://github.com/cuenca-mx/cuenca-python
|
|
6
6
|
Author: Cuenca
|
|
7
7
|
Author-email: dev@cuenca.com
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
9
13
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
14
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.9
|
|
12
16
|
Description-Content-Type: text/markdown
|
|
13
17
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: requests
|
|
15
|
-
Requires-Dist: cuenca-validations
|
|
16
|
-
Requires-Dist:
|
|
18
|
+
Requires-Dist: requests>=2.32.3
|
|
19
|
+
Requires-Dist: cuenca-validations==2.0.0.dev9
|
|
20
|
+
Requires-Dist: pydantic-extra-types>=2.10.1
|
|
17
21
|
|
|
18
22
|
# Cuenca – Python client library
|
|
19
23
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
cuenca/__init__.py,sha256=vFLEaVgT93FvqGtuoGyMFd_mQLABRm6T7zIcTZSMKjc,1807
|
|
2
|
-
cuenca/exc.py,sha256=
|
|
2
|
+
cuenca/exc.py,sha256=_sghDbHx-9JKAF2d4GClEfqv8MfoWb9oQjK5uzIds_w,672
|
|
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=PjFfpoPPk9tjx15H2idI4gQX-WXn3a1Z23dlaAKA6Fw,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=pySyBur3jnWA5yfHFuVZfdnk6nROj3BsLRy7vVWXFoc,3019
|
|
@@ -13,7 +13,7 @@ cuenca/resources/balance_entries.py,sha256=c2p9nXrKpMJ2xlQkTLP_ttycb1RitA979mP46
|
|
|
13
13
|
cuenca/resources/base.py,sha256=IdX5PpT6FpARE6hkcyca5rviVbvQTwF3T-uppg3cCeI,5785
|
|
14
14
|
cuenca/resources/bill_payments.py,sha256=spZSVCkLoJTOJIvfYim3R1JEUCvCKdRqLmr98M9y8oo,529
|
|
15
15
|
cuenca/resources/card_activations.py,sha256=HUknScnIQLi0zqUHIPKppCg65QPFywHAHTiUQuimtb0,1336
|
|
16
|
-
cuenca/resources/card_transactions.py,sha256=
|
|
16
|
+
cuenca/resources/card_transactions.py,sha256=Fs1x5kq4WSlRj6lt2enUkWW8trN7VgwW_KE2tybj30o,1195
|
|
17
17
|
cuenca/resources/card_validations.py,sha256=LyVpIkNVkAnfOUBJf7e39qCYu5tblB6F1FdYjCPy1MI,1956
|
|
18
18
|
cuenca/resources/cards.py,sha256=HTqfuz8KN_nxkIG9zPkActh4P0U0-Pug_yAo8gnZPWo,3461
|
|
19
19
|
cuenca/resources/cash_references.py,sha256=ZVN4ed8pRV3u0BshE3OPJB76FMfLKWHm1rwnk2KvbLc,195
|
|
@@ -38,7 +38,7 @@ cuenca/resources/savings.py,sha256=r1UimpZvlDQRxfwNuvNrsr8h5cNGoEmgXLPny5ixYlM,1
|
|
|
38
38
|
cuenca/resources/service_providers.py,sha256=aOulwTAvCLyzojBlhO7EQaPtlM9YPRYAAUXLjuGZwAk,316
|
|
39
39
|
cuenca/resources/sessions.py,sha256=bmiMh2GF8UNj-Ezu4Cq6T1zNxHg0ax3ZNPBF5ukrPjc,1646
|
|
40
40
|
cuenca/resources/statements.py,sha256=PqMvhoE9cvBneXjaS7w4JnTzYdDakkCkbdNYrd7b8LI,282
|
|
41
|
-
cuenca/resources/transfers.py,sha256=
|
|
41
|
+
cuenca/resources/transfers.py,sha256=nfSte0YzA1vxh6oAH8wUnjGnzc-iSTT66BJv8RA1IOQ,3270
|
|
42
42
|
cuenca/resources/user_credentials.py,sha256=Z0ppaWzxArMl7T5_FejaEPKgXhpsHUVc8EC2gMwtEbY,1264
|
|
43
43
|
cuenca/resources/user_events.py,sha256=CGhTTtWL9YvI2y77jk2KZaJ8cUQREhGrNG1fyAVrAPk,727
|
|
44
44
|
cuenca/resources/user_lists_validation.py,sha256=Flvyyono3TZibrlPHqa_43d1HHH2U_i_jOW-a8pf1W0,1397
|
|
@@ -97,8 +97,8 @@ tests/resources/test_verifications.py,sha256=yyL-bdryQU3MvqnmAgnnzGG9t7UTxWwPiVu
|
|
|
97
97
|
tests/resources/test_wallet_transactions.py,sha256=_L2hjPHT4FwwhxksUoaoVHwFFYOGWfF4ScCbk0kb7Hw,3945
|
|
98
98
|
tests/resources/test_webhooks.py,sha256=nYCqAnlNJcMJKRHhgoHOWTQnFLWQHHvFyY8GVCxGTD8,328
|
|
99
99
|
tests/resources/test_whatsapp_transfers.py,sha256=4Dmrsbytx7LRrLQo9M8TAL7cGKJufPStkp51UdRCnYU,1030
|
|
100
|
-
cuenca-2.0.0.
|
|
101
|
-
cuenca-2.0.0.
|
|
102
|
-
cuenca-2.0.0.
|
|
103
|
-
cuenca-2.0.0.
|
|
104
|
-
cuenca-2.0.0.
|
|
100
|
+
cuenca-2.0.0.dev3.dist-info/LICENSE,sha256=aWv5PmUiAcNENEAdghcVQSeU56pXJHWexJYgklK9XLg,1063
|
|
101
|
+
cuenca-2.0.0.dev3.dist-info/METADATA,sha256=4ZODycRpMFrrrWaCGM8rKzUmihnE1VCFzGfVMnDz5LI,4774
|
|
102
|
+
cuenca-2.0.0.dev3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
103
|
+
cuenca-2.0.0.dev3.dist-info/top_level.txt,sha256=5h3K7XJTmJniDloPq4sIJHni_xLw-Uoc6ZJ5mcw_lZY,13
|
|
104
|
+
cuenca-2.0.0.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|