python-amcards 1.5.0__tar.gz → 1.5.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.5.0 → python_amcards-1.5.1}/PKG-INFO +11 -2
- {python_amcards-1.5.0 → python_amcards-1.5.1}/amcards/models.py +9 -1
- {python_amcards-1.5.0 → python_amcards-1.5.1}/python_amcards.egg-info/PKG-INFO +11 -2
- {python_amcards-1.5.0 → python_amcards-1.5.1}/setup.py +1 -1
- {python_amcards-1.5.0 → python_amcards-1.5.1}/LICENSE +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/README.rst +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/amcards/__helpers.py +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/amcards/__init__.py +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/amcards/amcards.py +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/amcards/exceptions.py +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/python_amcards.egg-info/SOURCES.txt +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/python_amcards.egg-info/dependency_links.txt +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/python_amcards.egg-info/requires.txt +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/python_amcards.egg-info/top_level.txt +0 -0
- {python_amcards-1.5.0 → python_amcards-1.5.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-amcards
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.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
|
|
@@ -14,6 +14,15 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
14
14
|
Description-Content-Type: text/x-rst
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
Requires-Dist: requests>=2
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: summary
|
|
17
26
|
|
|
18
27
|
Getting Started | See the full docs at `Read the Docs <https://python-amcards.readthedocs.io/en/latest/>`_
|
|
19
28
|
==========================================================================================================
|
|
@@ -19,6 +19,7 @@ class User:
|
|
|
19
19
|
phone: str,
|
|
20
20
|
date_joined: datetime,
|
|
21
21
|
address_line_1: str,
|
|
22
|
+
address_line_2: str,
|
|
22
23
|
city: str,
|
|
23
24
|
state: str,
|
|
24
25
|
postal_code: str,
|
|
@@ -36,6 +37,7 @@ class User:
|
|
|
36
37
|
self._phone = phone
|
|
37
38
|
self._date_joined = date_joined
|
|
38
39
|
self._address_line_1 = address_line_1
|
|
40
|
+
self._address_line_2 = address_line_2
|
|
39
41
|
self._city = city
|
|
40
42
|
self._state = state
|
|
41
43
|
self._postal_code = postal_code
|
|
@@ -88,9 +90,14 @@ class User:
|
|
|
88
90
|
"""Primary address line of user."""
|
|
89
91
|
return self._address_line_1
|
|
90
92
|
|
|
93
|
+
@property
|
|
94
|
+
def address_line_2(self) -> str:
|
|
95
|
+
"""Secondary address line of user."""
|
|
96
|
+
return self._address_line_2
|
|
97
|
+
|
|
91
98
|
@property
|
|
92
99
|
def city(self) -> str:
|
|
93
|
-
"""User's
|
|
100
|
+
"""User's city."""
|
|
94
101
|
return self._city
|
|
95
102
|
|
|
96
103
|
@property
|
|
@@ -142,6 +149,7 @@ class User:
|
|
|
142
149
|
phone=json['phone'],
|
|
143
150
|
date_joined=helpers.to_datetime(json['date_joined']),
|
|
144
151
|
address_line_1=json['address_line_1'],
|
|
152
|
+
address_line_2=json.get('address_line_2', ''),
|
|
145
153
|
city=json['city'],
|
|
146
154
|
state=json['state'],
|
|
147
155
|
postal_code=json['postal'],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-amcards
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.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
|
|
@@ -14,6 +14,15 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
14
14
|
Description-Content-Type: text/x-rst
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
Requires-Dist: requests>=2
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: summary
|
|
17
26
|
|
|
18
27
|
Getting Started | See the full docs at `Read the Docs <https://python-amcards.readthedocs.io/en/latest/>`_
|
|
19
28
|
==========================================================================================================
|
|
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
|