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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amcards
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A wrapper for the AMcards API.
5
5
  Home-page: https://github.com/simonesestili/python-amcards
6
6
  Author: Simone Sestili
@@ -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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amcards
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A wrapper for the AMcards API.
5
5
  Home-page: https://github.com/simonesestili/python-amcards
6
6
  Author: Simone Sestili
@@ -7,7 +7,7 @@ def README():
7
7
 
8
8
  setup(
9
9
  name='python-amcards',
10
- version='1.3.0',
10
+ version='1.3.1',
11
11
  description='A wrapper for the AMcards API.',
12
12
  long_description=README(),
13
13
  long_description_content_type='text/x-rst',
File without changes
File without changes