python-amcards 1.3.5__py3-none-any.whl → 1.3.6__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.
amcards/amcards.py CHANGED
@@ -1011,11 +1011,11 @@ class AMcardsClient:
1011
1011
 
1012
1012
  # Validate birth_date
1013
1013
  if 'birth_date' in shipping_address and not helpers.is_valid_birthdate(shipping_address['birth_date']):
1014
- error_message = 'Invalid birth_date format, please specify date as "YYYY-MM-DD", or omit it'
1014
+ error_message = f'Invalid birth_date format of "{shipping_address["birth_date"]}", please specify date as "YYYY-MM-DD", or omit it'
1015
1015
  raise exceptions.DateFormatError(error_message)
1016
1016
  # Validate anniversary_date
1017
1017
  if 'anniversary_date' in shipping_address and not helpers.is_valid_date(shipping_address['anniversary_date']):
1018
- error_message = 'Invalid anniversary_date format, please specify date as "YYYY-MM-DD", or omit it'
1018
+ error_message = f'Invalid anniversary_date format of "{shipping_address["anniversary_date"]}", please specify date as "YYYY-MM-DD", or omit it'
1019
1019
  raise exceptions.DateFormatError(error_message)
1020
1020
  # Validate phone_number
1021
1021
  if 'phone_number' in shipping_address and not helpers.is_valid_phone(shipping_address['phone_number']):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amcards
3
- Version: 1.3.5
3
+ Version: 1.3.6
4
4
  Summary: A wrapper for the AMcards API.
5
5
  Home-page: https://github.com/simonesestili/python-amcards
6
6
  Author: Simone Sestili
@@ -0,0 +1,10 @@
1
+ amcards/__helpers.py,sha256=CQXc1e95mGZvsHgvtKBP-CAnNhF3ITzPonQrGvC-x4U,5745
2
+ amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
3
+ amcards/amcards.py,sha256=25egbZkDZu94uoNEQvwKcgVnc3IieyXRX755wiYPozk,63112
4
+ amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
5
+ amcards/models.py,sha256=ZuO5268HrIdYjhnzrDk1B0tDeMuQ2GekKkonOqttwEI,30973
6
+ python_amcards-1.3.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
+ python_amcards-1.3.6.dist-info/METADATA,sha256=C7F7AN3SrrnbEpDAWv7cSbEX-2cEc8LJhSRzgbucplY,3076
8
+ python_amcards-1.3.6.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
9
+ python_amcards-1.3.6.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
10
+ python_amcards-1.3.6.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- amcards/__helpers.py,sha256=CQXc1e95mGZvsHgvtKBP-CAnNhF3ITzPonQrGvC-x4U,5745
2
- amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
3
- amcards/amcards.py,sha256=NPNbscI4MawIWW0ZlfDCB7xtiwqSfUi1R-WF98pSEwk,63028
4
- amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
5
- amcards/models.py,sha256=ZuO5268HrIdYjhnzrDk1B0tDeMuQ2GekKkonOqttwEI,30973
6
- python_amcards-1.3.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
- python_amcards-1.3.5.dist-info/METADATA,sha256=jvZC9ACJgMV1cl6q5tb8erJXY26o1Xq0J8OfcPN5SjY,3076
8
- python_amcards-1.3.5.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
9
- python_amcards-1.3.5.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
10
- python_amcards-1.3.5.dist-info/RECORD,,