python-amcards 1.7.5__tar.gz → 1.7.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.7.5 → python_amcards-1.7.6}/PKG-INFO +1 -1
- {python_amcards-1.7.5 → python_amcards-1.7.6}/amcards/models.py +9 -1
- {python_amcards-1.7.5 → python_amcards-1.7.6}/python_amcards.egg-info/PKG-INFO +1 -1
- {python_amcards-1.7.5 → python_amcards-1.7.6}/setup.py +1 -1
- {python_amcards-1.7.5 → python_amcards-1.7.6}/LICENSE +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/README.rst +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/amcards/__helpers.py +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/amcards/__init__.py +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/amcards/amcards.py +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/amcards/exceptions.py +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/python_amcards.egg-info/SOURCES.txt +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/python_amcards.egg-info/dependency_links.txt +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/python_amcards.egg-info/requires.txt +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/python_amcards.egg-info/top_level.txt +0 -0
- {python_amcards-1.7.5 → python_amcards-1.7.6}/setup.cfg +0 -0
|
@@ -28,6 +28,7 @@ class User:
|
|
|
28
28
|
international_postage_cost: int,
|
|
29
29
|
domestic_postage_countries: set,
|
|
30
30
|
greeting_card_cost: int,
|
|
31
|
+
monthly_report_emails: List[str],
|
|
31
32
|
) -> None:
|
|
32
33
|
self._id = id
|
|
33
34
|
self._first_name = first_name
|
|
@@ -46,6 +47,7 @@ class User:
|
|
|
46
47
|
self._international_postage_cost = international_postage_cost
|
|
47
48
|
self._domestic_postage_countries = domestic_postage_countries
|
|
48
49
|
self._greeting_card_cost = greeting_card_cost
|
|
50
|
+
self._monthly_report_emails = monthly_report_emails
|
|
49
51
|
|
|
50
52
|
__repr__ = helpers.repr
|
|
51
53
|
|
|
@@ -135,6 +137,11 @@ class User:
|
|
|
135
137
|
"""User's base cost of a greeting card excluding postage."""
|
|
136
138
|
return self._greeting_card_cost
|
|
137
139
|
|
|
140
|
+
@property
|
|
141
|
+
def monthly_report_emails(self) -> List[str]:
|
|
142
|
+
"""Email addresses that receive monthly reports."""
|
|
143
|
+
return self._monthly_report_emails
|
|
144
|
+
|
|
138
145
|
@classmethod
|
|
139
146
|
def _from_json(cls, json: dict):
|
|
140
147
|
user_id = json['resource_uri']
|
|
@@ -157,7 +164,8 @@ class User:
|
|
|
157
164
|
domestic_postage_cost=json['postage']['domestic_cost'],
|
|
158
165
|
international_postage_cost=json['postage']['international_cost'],
|
|
159
166
|
domestic_postage_countries=set(json['postage']['domestic_countries']),
|
|
160
|
-
greeting_card_cost=json['product_pricing_info']['5x7greetingcard']
|
|
167
|
+
greeting_card_cost=json['product_pricing_info']['5x7greetingcard'],
|
|
168
|
+
monthly_report_emails=(json.get('monthly_report_emails') or []),
|
|
161
169
|
)
|
|
162
170
|
|
|
163
171
|
class Gift:
|
|
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
|