Source code for worldline.connect.sdk.v1.domain.abstract_token

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from worldline.connect.sdk.domain.data_object import DataObject


[docs]class AbstractToken(DataObject): __alias = None @property def alias(self): """ | An alias for the token. This can be used to visually represent the token. | If no alias is given in Create token calls, a payment product specific default is used, e.g. the obfuscated card number for card payment products. | Do not include any unobfuscated sensitive data in the alias. Type: str """ return self.__alias @alias.setter def alias(self, value): self.__alias = value
[docs] def to_dictionary(self): dictionary = super(AbstractToken, self).to_dictionary() if self.alias is not None: dictionary['alias'] = self.alias return dictionary
[docs] def from_dictionary(self, dictionary): super(AbstractToken, self).from_dictionary(dictionary) if 'alias' in dictionary: self.alias = dictionary['alias'] return self