python-amcards 1.3.0__tar.gz → 1.3.1__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.0 → python_amcards-1.3.1}/PKG-INFO +1 -1
- {python_amcards-1.3.0 → python_amcards-1.3.1}/amcards/models.py +8 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/python_amcards.egg-info/PKG-INFO +1 -1
- {python_amcards-1.3.0 → python_amcards-1.3.1}/setup.py +1 -1
- {python_amcards-1.3.0 → python_amcards-1.3.1}/LICENSE +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/README.rst +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/amcards/__helpers.py +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/amcards/__init__.py +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/amcards/amcards.py +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/amcards/exceptions.py +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/python_amcards.egg-info/SOURCES.txt +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/python_amcards.egg-info/dependency_links.txt +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/python_amcards.egg-info/requires.txt +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/python_amcards.egg-info/top_level.txt +0 -0
- {python_amcards-1.3.0 → python_amcards-1.3.1}/setup.cfg +0 -0
|
@@ -353,6 +353,7 @@ class Card:
|
|
|
353
353
|
shipping_address: dict,
|
|
354
354
|
return_address: dict,
|
|
355
355
|
gifts: List[Gift],
|
|
356
|
+
extra_data: dict,
|
|
356
357
|
) -> None:
|
|
357
358
|
self._id = id
|
|
358
359
|
self._amount_charged = amount_charged
|
|
@@ -369,6 +370,7 @@ class Card:
|
|
|
369
370
|
self._shipping_address = shipping_address
|
|
370
371
|
self._return_address = return_address
|
|
371
372
|
self._gifts = gifts
|
|
373
|
+
self._extra_data = extra_data
|
|
372
374
|
|
|
373
375
|
__repr__ = helpers.repr
|
|
374
376
|
|
|
@@ -489,6 +491,11 @@ class Card:
|
|
|
489
491
|
"""Gifts attached to this card."""
|
|
490
492
|
return self._gifts
|
|
491
493
|
|
|
494
|
+
@property
|
|
495
|
+
def extra_data(self) -> dict:
|
|
496
|
+
"""Extra data attached to this card."""
|
|
497
|
+
return self._gifts
|
|
498
|
+
|
|
492
499
|
@classmethod
|
|
493
500
|
def _from_json(cls, json: dict):
|
|
494
501
|
return cls(
|
|
@@ -512,6 +519,7 @@ class Card:
|
|
|
512
519
|
base_cost=gift['price'],
|
|
513
520
|
shipping_and_handling_cost=gift['shipping_and_handling'],
|
|
514
521
|
) for gift in json['gifts']],
|
|
522
|
+
extra_data=json.get('extra_data') or {},
|
|
515
523
|
)
|
|
516
524
|
|
|
517
525
|
class MailingStatus(Enum):
|
|
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
|