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

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

from worldline.connect.sdk.domain.data_object import DataObject


[docs] class MerchantRiskAssessment(DataObject): __website_url: Optional[str] = None @property def website_url(self) -> Optional[str]: """ | The website from which the purchase was made Type: str """ return self.__website_url @website_url.setter def website_url(self, value: Optional[str]) -> None: self.__website_url = value
[docs] def to_dictionary(self) -> dict: dictionary = super(MerchantRiskAssessment, self).to_dictionary() if self.website_url is not None: dictionary['websiteUrl'] = self.website_url return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'MerchantRiskAssessment': super(MerchantRiskAssessment, self).from_dictionary(dictionary) if 'websiteUrl' in dictionary: self.website_url = dictionary['websiteUrl'] return self