cuenca-validations 2.1.44__tar.gz → 2.1.46__tar.gz
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-2.1.44 → cuenca_validations-2.1.46}/PKG-INFO +1 -1
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/__init__.py +10 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/enums.py +5 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/queries.py +6 -2
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/requests.py +48 -0
- cuenca_validations-2.1.46/cuenca_validations/version.py +1 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/PKG-INFO +1 -1
- cuenca_validations-2.1.44/cuenca_validations/version.py +0 -1
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/LICENSE +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/README.md +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/__init__.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/card_bins.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/errors.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/py.typed +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/card.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/files.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/general.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/helpers.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/identities.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/morals.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/typing.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/validators.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/SOURCES.txt +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/dependency_links.txt +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/requires.txt +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/top_level.txt +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/setup.cfg +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/setup.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/__init__.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_card.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_errors.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_helpers.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_requests.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_statement.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_types.py +0 -0
- {cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/tests/test_validators.py +0 -0
{cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/__init__.py
RENAMED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
__all__ = [
|
|
2
2
|
'AccountUseType',
|
|
3
3
|
'AccountQuery',
|
|
4
|
+
'AccountRequest',
|
|
5
|
+
'AccountUpdateRequest',
|
|
6
|
+
'AccountValidationStatus',
|
|
4
7
|
'Address',
|
|
5
8
|
'AgentQuery',
|
|
6
9
|
'AgentRequest',
|
|
@@ -43,6 +46,7 @@ __all__ = [
|
|
|
43
46
|
'FileExtension',
|
|
44
47
|
'FileFormat',
|
|
45
48
|
'FileQuery',
|
|
49
|
+
'ClabeQuery',
|
|
46
50
|
'FileBatchUploadRequest',
|
|
47
51
|
'FileRequest',
|
|
48
52
|
'FileUploadRequest',
|
|
@@ -77,6 +81,7 @@ __all__ = [
|
|
|
77
81
|
'PosCapability',
|
|
78
82
|
'Profession',
|
|
79
83
|
'QueryParams',
|
|
84
|
+
'ReferencedClabeRequest',
|
|
80
85
|
'LegalRfc',
|
|
81
86
|
'Rfc',
|
|
82
87
|
'QuestionnairesRequest',
|
|
@@ -138,6 +143,7 @@ __all__ = [
|
|
|
138
143
|
from .card import StrictPaymentCardNumber
|
|
139
144
|
from .enums import (
|
|
140
145
|
AccountUseType,
|
|
146
|
+
AccountValidationStatus,
|
|
141
147
|
AuthorizerTransaction,
|
|
142
148
|
BankAccountStatus,
|
|
143
149
|
CardErrorType,
|
|
@@ -220,6 +226,7 @@ from .queries import (
|
|
|
220
226
|
BillPaymentQuery,
|
|
221
227
|
CardQuery,
|
|
222
228
|
CardTransactionQuery,
|
|
229
|
+
ClabeQuery,
|
|
223
230
|
DepositQuery,
|
|
224
231
|
EventQuery,
|
|
225
232
|
FileQuery,
|
|
@@ -238,6 +245,8 @@ from .queries import (
|
|
|
238
245
|
WalletTransactionQuery,
|
|
239
246
|
)
|
|
240
247
|
from .requests import (
|
|
248
|
+
AccountRequest,
|
|
249
|
+
AccountUpdateRequest,
|
|
241
250
|
AgentRequest,
|
|
242
251
|
ApiKeyUpdateRequest,
|
|
243
252
|
BankAccountValidationRequest,
|
|
@@ -261,6 +270,7 @@ from .requests import (
|
|
|
261
270
|
PasswordResetRequest,
|
|
262
271
|
PlatformRequest,
|
|
263
272
|
QuestionnairesRequest,
|
|
273
|
+
ReferencedClabeRequest,
|
|
264
274
|
SavingRequest,
|
|
265
275
|
SavingUpdateRequest,
|
|
266
276
|
SessionRequest,
|
|
@@ -748,6 +748,11 @@ class RequiredAction(str, Enum):
|
|
|
748
748
|
wait_validation = 'wait_validation'
|
|
749
749
|
|
|
750
750
|
|
|
751
|
+
class AccountValidationStatus(str, Enum):
|
|
752
|
+
verified = 'verified'
|
|
753
|
+
pending = 'pending'
|
|
754
|
+
|
|
755
|
+
|
|
751
756
|
class OperatorRole(str, Enum):
|
|
752
757
|
operator = 'operator'
|
|
753
758
|
authorizer = 'authorizer'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import datetime as dt
|
|
2
|
-
from typing import Annotated, Optional
|
|
2
|
+
from typing import Annotated, Optional, Union
|
|
3
3
|
|
|
4
4
|
from clabe import Clabe
|
|
5
5
|
from pydantic import (
|
|
@@ -28,7 +28,7 @@ from .enums import (
|
|
|
28
28
|
UserStatus,
|
|
29
29
|
)
|
|
30
30
|
from .general import NormalizedName
|
|
31
|
-
from .identities import Curp
|
|
31
|
+
from .identities import Curp, Rfc
|
|
32
32
|
|
|
33
33
|
MAX_PAGE_SIZE = 100
|
|
34
34
|
|
|
@@ -206,6 +206,10 @@ class FileQuery(QueryParams):
|
|
|
206
206
|
id: Optional[str] = None
|
|
207
207
|
|
|
208
208
|
|
|
209
|
+
class ClabeQuery(QueryParams):
|
|
210
|
+
allowed_curp_rfc: Union[Curp, Rfc]
|
|
211
|
+
|
|
212
|
+
|
|
209
213
|
class BankAccountValidationQuery(QueryParams):
|
|
210
214
|
account_number: Optional[str] = None
|
|
211
215
|
status: Optional[BankAccountStatus] = None
|
{cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/requests.py
RENAMED
|
@@ -18,6 +18,7 @@ from pydantic_extra_types.coordinate import Coordinate
|
|
|
18
18
|
|
|
19
19
|
from ..types.enums import (
|
|
20
20
|
AccountUseType,
|
|
21
|
+
AccountValidationStatus,
|
|
21
22
|
AuthorizerTransaction,
|
|
22
23
|
CardDesign,
|
|
23
24
|
CardFundingType,
|
|
@@ -737,6 +738,39 @@ class LimitedWalletRequest(BaseRequest):
|
|
|
737
738
|
allowed_rfc: Optional[Rfc] = None
|
|
738
739
|
|
|
739
740
|
|
|
741
|
+
class AccountRequest(BaseRequest):
|
|
742
|
+
name: StrictStr
|
|
743
|
+
account_number: Clabe
|
|
744
|
+
alias: Optional[StrictStr] = None
|
|
745
|
+
curp: Optional[Curp] = None
|
|
746
|
+
rfc: Optional[Rfc] = None
|
|
747
|
+
|
|
748
|
+
model_config = ConfigDict(
|
|
749
|
+
json_schema_extra={
|
|
750
|
+
'example': {
|
|
751
|
+
'name': 'Aceros del Norte SA de CV',
|
|
752
|
+
'account_number': '072691004495711499',
|
|
753
|
+
'alias': 'Proveedor acero',
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
)
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
class AccountUpdateRequest(BaseRequest):
|
|
760
|
+
name: Optional[StrictStr] = None
|
|
761
|
+
alias: Optional[StrictStr] = None
|
|
762
|
+
validation_status: Optional[AccountValidationStatus] = None
|
|
763
|
+
|
|
764
|
+
model_config = ConfigDict(
|
|
765
|
+
json_schema_extra={
|
|
766
|
+
'example': {
|
|
767
|
+
'alias': 'Fletes',
|
|
768
|
+
'validation_status': 'verified',
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
|
|
740
774
|
class PlatformRequest(BaseModel):
|
|
741
775
|
name: str
|
|
742
776
|
rfc: Optional[str] = None
|
|
@@ -959,5 +993,19 @@ class OperatorLoginRequest(BaseRequest):
|
|
|
959
993
|
return normalize_email(email)
|
|
960
994
|
|
|
961
995
|
|
|
996
|
+
class ReferencedClabeRequest(BaseRequest):
|
|
997
|
+
legal_person_id: str
|
|
998
|
+
allowed_curp_rfc: Union[Curp, Rfc]
|
|
999
|
+
|
|
1000
|
+
model_config = ConfigDict(
|
|
1001
|
+
json_schema_extra={
|
|
1002
|
+
'example': {
|
|
1003
|
+
'legal_person_id': 'USbIRH85qFQP5ggPKKQAu5PA',
|
|
1004
|
+
'allowed_curp_rfc': 'LOPJ900101XXX',
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
)
|
|
1008
|
+
|
|
1009
|
+
|
|
962
1010
|
class PhoneVerificationAssociationRequest(BaseRequest):
|
|
963
1011
|
verification_id: str
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.1.46'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.1.44'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations/types/identities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/requires.txt
RENAMED
|
File without changes
|
{cuenca_validations-2.1.44 → cuenca_validations-2.1.46}/cuenca_validations.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|