Source code for worldline.connect.sdk.v1.domain.customer_device_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 CustomerDeviceRiskAssessment(DataObject): """ | Object containing information on the device and browser of the customer """ __default_form_fill: Optional[str] = None __device_fingerprint_transaction_id: Optional[str] = None @property def default_form_fill(self) -> Optional[str]: """ | Degree of default form fill, with the following possible values: * automatically - All fields filled automatically * automatically-but-modified - All fields filled automatically, but some fields were modified manually * manually - All fields were entered manually Type: str """ return self.__default_form_fill @default_form_fill.setter def default_form_fill(self, value: Optional[str]) -> None: self.__default_form_fill = value @property def device_fingerprint_transaction_id(self) -> Optional[str]: """ | One must set the deviceFingerprintTransactionId received by the response of the endpoint /{merchant}/products/{paymentProductId}/deviceFingerprint Type: str """ return self.__device_fingerprint_transaction_id @device_fingerprint_transaction_id.setter def device_fingerprint_transaction_id(self, value: Optional[str]) -> None: self.__device_fingerprint_transaction_id = value
[docs] def to_dictionary(self) -> dict: dictionary = super(CustomerDeviceRiskAssessment, self).to_dictionary() if self.default_form_fill is not None: dictionary['defaultFormFill'] = self.default_form_fill if self.device_fingerprint_transaction_id is not None: dictionary['deviceFingerprintTransactionId'] = self.device_fingerprint_transaction_id return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'CustomerDeviceRiskAssessment': super(CustomerDeviceRiskAssessment, self).from_dictionary(dictionary) if 'defaultFormFill' in dictionary: self.default_form_fill = dictionary['defaultFormFill'] if 'deviceFingerprintTransactionId' in dictionary: self.device_fingerprint_transaction_id = dictionary['deviceFingerprintTransactionId'] return self