cuenca-validations 2.1.32.dev3__py3-none-any.whl → 2.1.33.dev0__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.
@@ -45,6 +45,7 @@ __all__ = [
45
45
  'FileRequest',
46
46
  'FileUploadRequest',
47
47
  'FraudFundsTransferAcceptedResponse',
48
+ 'FraudFundsTransferQuery',
48
49
  'FraudFundsTransferRequest',
49
50
  'FraudFundsTransferResultEvent',
50
51
  'Gender',
@@ -210,6 +211,7 @@ from .queries import (
210
211
  DepositQuery,
211
212
  EventQuery,
212
213
  FileQuery,
214
+ FraudFundsTransferQuery,
213
215
  IdentityQuery,
214
216
  PostalCodeQuery,
215
217
  QueryParams,
@@ -24,6 +24,7 @@ from .enums import (
24
24
  KYCFileType,
25
25
  SessionType,
26
26
  TermsOfService,
27
+ TransactionStatus,
27
28
  TransferNetwork,
28
29
  UserStatus,
29
30
  )
@@ -153,6 +154,11 @@ class WalletTransactionQuery(QueryParams):
153
154
  wallet_uri: Optional[str] = None
154
155
 
155
156
 
157
+ class FraudFundsTransferQuery(QueryParams):
158
+ request_id: Optional[str] = None
159
+ status: Optional[TransactionStatus] = None
160
+
161
+
156
162
  class UserQuery(QueryParams):
157
163
  phone_number: Optional[str] = None
158
164
  email_address: Optional[EmailStr] = None
@@ -458,9 +458,8 @@ class CurpValidationRequest(BaseRequest):
458
458
  @classmethod
459
459
  def validate_state_of_birth(cls, values: DictStrAny) -> DictStrAny:
460
460
  if (
461
- 'country_of_birth' in values
462
- and values['country_of_birth'] == 'MX'
463
- and 'state_of_birth' not in values
461
+ values.get('country_of_birth') == 'MX'
462
+ and values.get('state_of_birth') is None
464
463
  ):
465
464
  raise ValueError('state_of_birth required')
466
465
  return values
@@ -476,7 +475,7 @@ class CurpValidationRequest(BaseRequest):
476
475
  'country_of_birth',
477
476
  'gender',
478
477
  ]
479
- missing = [r for r in required if r not in values.keys()]
478
+ missing = [r for r in required if values.get(r) is None]
480
479
  if not manual_curp and missing:
481
480
  raise ValueError(f'values required: {",".join(missing)}')
482
481
  return values
@@ -1 +1 @@
1
- __version__ = '2.1.32.dev3'
1
+ __version__ = '2.1.33.dev0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cuenca_validations
3
- Version: 2.1.32.dev3
3
+ Version: 2.1.33.dev0
4
4
  Summary: Cuenca common validations
5
5
  Home-page: https://github.com/cuenca-mx/cuenca-validations
6
6
  Author: Cuenca
@@ -4,8 +4,8 @@ cuenca_validations/errors.py,sha256=OtM8EgiKqYdz9Hn66AbBO96orL1or7efkyt0vh0Zxbs,
4
4
  cuenca_validations/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  cuenca_validations/typing.py,sha256=1QCu81IbVZZpyInjyeAuO-nF36gpT5Gi4o6V9PozuOU,204
6
6
  cuenca_validations/validators.py,sha256=zXSnU5-EMbQZBD-PfFXgP4Z6G7cm7KFDWXB7Nie6WUk,2682
7
- cuenca_validations/version.py,sha256=-Fzb_6WSdjWAEIeyiJ9bnPDiBuGSzfSZ6-WHjBOakV8,28
8
- cuenca_validations/types/__init__.py,sha256=Kds2j53zUHdjz8LtjDh8CG6d7CN2yTXs0tvi9VBLZ5U,5737
7
+ cuenca_validations/version.py,sha256=LceWrYOLYdxyVrNUwu1UWz3FMpgMge4_DMv3REwUFkA,28
8
+ cuenca_validations/types/__init__.py,sha256=i4xe2OvJN8_hUjYicyMq5I2a8X6Aw_l_8IB1X5mWcB8,5797
9
9
  cuenca_validations/types/card.py,sha256=UGzz8NTFAverUmdUKAK1oGHnOnjSNTpIRUm93vKSSGY,1295
10
10
  cuenca_validations/types/enums.py,sha256=f-qMUdxLZsAqRvEwh3EcUsB2K-loufvPzdcK0JFQ1JY,20586
11
11
  cuenca_validations/types/files.py,sha256=2CszbwF9ytXV9suFFwyDjYG4XxY8UhCjRw3HttVXXNw,269
@@ -13,9 +13,9 @@ cuenca_validations/types/general.py,sha256=eYFYwyx_a4_J480GYpqW3DFbZabDFcUjvLRMQ
13
13
  cuenca_validations/types/helpers.py,sha256=4veeLZbugHHqZk0ezSim978VhH6Vq8XTrEhe1eE_r3A,1531
14
14
  cuenca_validations/types/identities.py,sha256=j2xxh3UYHJe6IbAwr9yNXJkebTth_-g3SUmHeiPez8M,5513
15
15
  cuenca_validations/types/morals.py,sha256=davabh5hAnFVQyM7-yCyDaT5ewXnm0cr1BtqDIwzkX8,1833
16
- cuenca_validations/types/queries.py,sha256=iVr6Z8ahXon0rlqQLu7aqRY6WtRxkN-1C7A2zeVt2-4,5314
17
- cuenca_validations/types/requests.py,sha256=eqk9Th3hhHZNzK8E9SwtUyff74NrHJe7lC0KC6Gvsk0,25815
18
- cuenca_validations-2.1.32.dev3.dist-info/licenses/LICENSE,sha256=wR76FmxBbfnQpwELkkE5iMF8sFIafEMgXLTE4N4WPTc,1063
16
+ cuenca_validations/types/queries.py,sha256=PSEr13A5z9hALknxpQTPgDDhbbBfqcUM8S37KE5VotU,5467
17
+ cuenca_validations/types/requests.py,sha256=tRxlYFd1Huz9KiRdOnDetaMl6_IDrf0MwtzaFjP4HVY,25779
18
+ cuenca_validations-2.1.33.dev0.dist-info/licenses/LICENSE,sha256=wR76FmxBbfnQpwELkkE5iMF8sFIafEMgXLTE4N4WPTc,1063
19
19
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  tests/test_card.py,sha256=QAfRz7e11gWICPnFJZ2tiYgUsFV3C9TwzJXrDnDNXFw,1202
21
21
  tests/test_errors.py,sha256=ixiIgEuBuzfsL5p4uCFdF32XqFRtTPF6EVhGJ0keOrI,930
@@ -24,7 +24,7 @@ tests/test_requests.py,sha256=lQgOPjLsogpMphl5wg--vxj9JF2DJF0A2DzQVG5dOEU,3072
24
24
  tests/test_statement.py,sha256=IOE0rRRBgBZSJv_FLaETEyn5NzzXKMNTqgjv99GX-68,1436
25
25
  tests/test_types.py,sha256=9KPibwJy6JYDTly9hViJH1IiepwkSiLqNywSz2d-qmA,23700
26
26
  tests/test_validators.py,sha256=Jjr9gWTT4cRntGiKvQK4fncqx3JkEuTWkKm1VqpRHTs,1829
27
- cuenca_validations-2.1.32.dev3.dist-info/METADATA,sha256=XfcYUiBZSQX5oxU_19xQM9IRfjhMS7joU1_GmOqfsx4,1600
28
- cuenca_validations-2.1.32.dev3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
29
- cuenca_validations-2.1.32.dev3.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
30
- cuenca_validations-2.1.32.dev3.dist-info/RECORD,,
27
+ cuenca_validations-2.1.33.dev0.dist-info/METADATA,sha256=kd5eVtb1OANtkPn3p7gx48wdxUuSWamn2R3lEhkWPB0,1600
28
+ cuenca_validations-2.1.33.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
29
+ cuenca_validations-2.1.33.dev0.dist-info/top_level.txt,sha256=4233xdOs2HtuT-GFRjcDcwK0IwdwvWdczOtk0fPB6Gw,25
30
+ cuenca_validations-2.1.33.dev0.dist-info/RECORD,,