Source code for worldline.connect.sdk.v1.domain.risk_assessment_card
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from worldline.connect.sdk.v1.domain.card import Card
from worldline.connect.sdk.v1.domain.risk_assessment import RiskAssessment
[docs]class RiskAssessmentCard(RiskAssessment):
__card = None
@property
def card(self):
"""
| Object containing Card object
Type: :class:`worldline.connect.sdk.v1.domain.card.Card`
"""
return self.__card
@card.setter
def card(self, value):
self.__card = value
[docs] def to_dictionary(self):
dictionary = super(RiskAssessmentCard, self).to_dictionary()
if self.card is not None:
dictionary['card'] = self.card.to_dictionary()
return dictionary
[docs] def from_dictionary(self, dictionary):
super(RiskAssessmentCard, self).from_dictionary(dictionary)
if 'card' in dictionary:
if not isinstance(dictionary['card'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['card']))
value = Card()
self.card = value.from_dictionary(dictionary['card'])
return self