python-amcards 1.3.1__py3-none-any.whl → 1.3.2__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/models.py +3 -2
- {python_amcards-1.3.1.dist-info → python_amcards-1.3.2.dist-info}/METADATA +1 -1
- python_amcards-1.3.2.dist-info/RECORD +10 -0
- python_amcards-1.3.1.dist-info/RECORD +0 -10
- {python_amcards-1.3.1.dist-info → python_amcards-1.3.2.dist-info}/LICENSE +0 -0
- {python_amcards-1.3.1.dist-info → python_amcards-1.3.2.dist-info}/WHEEL +0 -0
- {python_amcards-1.3.1.dist-info → python_amcards-1.3.2.dist-info}/top_level.txt +0 -0
amcards/models.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import ast
|
|
1
2
|
from enum import Enum
|
|
2
3
|
from datetime import datetime
|
|
3
4
|
from typing import List, Optional
|
|
@@ -494,7 +495,7 @@ class Card:
|
|
|
494
495
|
@property
|
|
495
496
|
def extra_data(self) -> dict:
|
|
496
497
|
"""Extra data attached to this card."""
|
|
497
|
-
return self.
|
|
498
|
+
return self._extra_data
|
|
498
499
|
|
|
499
500
|
@classmethod
|
|
500
501
|
def _from_json(cls, json: dict):
|
|
@@ -519,7 +520,7 @@ class Card:
|
|
|
519
520
|
base_cost=gift['price'],
|
|
520
521
|
shipping_and_handling_cost=gift['shipping_and_handling'],
|
|
521
522
|
) for gift in json['gifts']],
|
|
522
|
-
extra_data=json.get('extra_data') or {},
|
|
523
|
+
extra_data=ast.literal_eval(json.get('extra_data') or '{}'),
|
|
523
524
|
)
|
|
524
525
|
|
|
525
526
|
class MailingStatus(Enum):
|
|
@@ -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=e_8xSulvtRVT40iOl9mQNWnq0QZnH9WyCYpNaOFpSqs,61560
|
|
4
|
+
amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
|
|
5
|
+
amcards/models.py,sha256=ZuO5268HrIdYjhnzrDk1B0tDeMuQ2GekKkonOqttwEI,30973
|
|
6
|
+
python_amcards-1.3.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
7
|
+
python_amcards-1.3.2.dist-info/METADATA,sha256=DYFIFN351smg3g6hyOnUGWDDYn34I16b-OXD3oh6OTo,3077
|
|
8
|
+
python_amcards-1.3.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
9
|
+
python_amcards-1.3.2.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
|
|
10
|
+
python_amcards-1.3.2.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
amcards/__helpers.py,sha256=iQ3L-79XyDBoE8ZsenCac7xii-1LN86Go3w_yu95VaE,5466
|
|
2
|
-
amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
|
|
3
|
-
amcards/amcards.py,sha256=e_8xSulvtRVT40iOl9mQNWnq0QZnH9WyCYpNaOFpSqs,61560
|
|
4
|
-
amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
|
|
5
|
-
amcards/models.py,sha256=Yk9l6TZ5AUB6h-ArBvIR0Da_XuVcupXGA8MxL0HWzkE,30937
|
|
6
|
-
python_amcards-1.3.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
7
|
-
python_amcards-1.3.1.dist-info/METADATA,sha256=Y7bVDNFQblUsgA7mzcB2c-vJZg9W47yfBW7EpEE97ss,3077
|
|
8
|
-
python_amcards-1.3.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
9
|
-
python_amcards-1.3.1.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
|
|
10
|
-
python_amcards-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|