We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b6af0 commit eb16429Copy full SHA for eb16429
yoti_python_sdk/attribute_issuance_details.py
@@ -4,13 +4,24 @@
4
import base64
5
6
7
+class Definition(object):
8
+ def __init__(self, name):
9
+ self.__name = name
10
+
11
+ @property
12
+ def name(self):
13
+ return self.__name
14
15
16
class AttributeIssuanceDetails(object):
17
def __init__(self, data_entry):
18
self.__token = base64.b64encode(data_entry.issuance_token)
19
self.__expiry_date = date_parser.datetime_with_microsecond(
20
data_entry.issuing_attributes.expiry_date
21
)
- self.__attributes = data_entry.issuing_attributes.definitions
22
+ self.__attributes = [
23
+ Definition(a.name) for a in data_entry.issuing_attributes.definitions
24
+ ]
25
26
@property
27
def token(self):
0 commit comments