python-amcards 1.3.5__tar.gz → 1.3.6__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.
- {python_amcards-1.3.5 → python_amcards-1.3.6}/PKG-INFO +1 -1
- {python_amcards-1.3.5 → python_amcards-1.3.6}/amcards/amcards.py +2 -2
- {python_amcards-1.3.5 → python_amcards-1.3.6}/python_amcards.egg-info/PKG-INFO +1 -1
- {python_amcards-1.3.5 → python_amcards-1.3.6}/setup.py +1 -1
- {python_amcards-1.3.5 → python_amcards-1.3.6}/LICENSE +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/README.rst +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/amcards/__helpers.py +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/amcards/__init__.py +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/amcards/exceptions.py +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/amcards/models.py +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/python_amcards.egg-info/SOURCES.txt +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/python_amcards.egg-info/dependency_links.txt +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/python_amcards.egg-info/requires.txt +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/python_amcards.egg-info/top_level.txt +0 -0
- {python_amcards-1.3.5 → python_amcards-1.3.6}/setup.cfg +0 -0
|
@@ -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']):
|
|
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
|