python-amcards 1.2.29__py3-none-any.whl → 1.2.30__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/__helpers.py CHANGED
@@ -73,7 +73,7 @@ def format_cents(price_in_cents: int) -> str:
73
73
  def get_missing_required_shipping_address_fields(shipping_address: dict) -> list:
74
74
  missings = []
75
75
  for req in REQUIRED_SHIPPING_ADDRESS_FIELDS:
76
- if shipping_address.get(req, '').strip(): continue
76
+ if (shipping_address.get(req, '') or '').strip(): continue
77
77
  missings.append(req)
78
78
  return missings
79
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amcards
3
- Version: 1.2.29
3
+ Version: 1.2.30
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=iQ3L-79XyDBoE8ZsenCac7xii-1LN86Go3w_yu95VaE,5466
2
+ amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
3
+ amcards/amcards.py,sha256=yuAHFbOc0nGzjneJQz1ztiVrrqQVGPB5Xnyf_19Z-dI,58080
4
+ amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
5
+ amcards/models.py,sha256=wSbqsMCJFtIASxEfev0ScO1Z8QdRTXgyjhWJQyn45bQ,27301
6
+ python_amcards-1.2.30.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
+ python_amcards-1.2.30.dist-info/METADATA,sha256=no6RWjlKFjJUyezLHDfINXsUGVQoXo-FlBiuBF4oLY8,3078
8
+ python_amcards-1.2.30.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
+ python_amcards-1.2.30.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
10
+ python_amcards-1.2.30.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- amcards/__helpers.py,sha256=di7zwgM-NSwfH2g90MlS-KkHosvPoeWlXzrj-d1LlQ4,5458
2
- amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
3
- amcards/amcards.py,sha256=yuAHFbOc0nGzjneJQz1ztiVrrqQVGPB5Xnyf_19Z-dI,58080
4
- amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
5
- amcards/models.py,sha256=wSbqsMCJFtIASxEfev0ScO1Z8QdRTXgyjhWJQyn45bQ,27301
6
- python_amcards-1.2.29.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
- python_amcards-1.2.29.dist-info/METADATA,sha256=XPApCSDqPXkQLl128E7ZM_nvkDnRvznMPpMTmSOzqAI,3078
8
- python_amcards-1.2.29.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
- python_amcards-1.2.29.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
10
- python_amcards-1.2.29.dist-info/RECORD,,