Source code for worldline.connect.sdk.v1.domain.validation_bank_account_check
# -*- 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 ValidationBankAccountCheck(DataObject):
__code: Optional[str] = None
__description: Optional[str] = None
__result: Optional[str] = None
@property
def code(self) -> Optional[str]:
"""
| Code of the bank account validation check
Type: str
"""
return self.__code
@code.setter
def code(self, value: Optional[str]) -> None:
self.__code = value
@property
def description(self) -> Optional[str]:
"""
| Description of check performed
Type: str
"""
return self.__description
@description.setter
def description(self, value: Optional[str]) -> None:
self.__description = value
@property
def result(self) -> Optional[str]:
"""
| Result of the bank account validation check performed, with the following possible results:
* PASSED - The check passed
* ERROR - The check did not pass
* WARNING - Depending on your needs this either needs to be treated as a passed or error response. It depends on your business logic and for what purpose you want to use the validated bank account details.
* NOTCHECKED - This check was not performed, usually because one of the earlier checks already caused an error response to be triggered
Type: str
"""
return self.__result
@result.setter
def result(self, value: Optional[str]) -> None:
self.__result = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(ValidationBankAccountCheck, self).to_dictionary()
if self.code is not None:
dictionary['code'] = self.code
if self.description is not None:
dictionary['description'] = self.description
if self.result is not None:
dictionary['result'] = self.result
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'ValidationBankAccountCheck':
super(ValidationBankAccountCheck, self).from_dictionary(dictionary)
if 'code' in dictionary:
self.code = dictionary['code']
if 'description' in dictionary:
self.description = dictionary['description']
if 'result' in dictionary:
self.result = dictionary['result']
return self