Source code for worldline.connect.sdk.v1.domain.test_connection
# -*- 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 TestConnection(DataObject):
__result: Optional[str] = None
@property
def result(self) -> Optional[str]:
"""
| OK result on the connection to the payment engine.
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(TestConnection, self).to_dictionary()
if self.result is not None:
dictionary['result'] = self.result
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'TestConnection':
super(TestConnection, self).from_dictionary(dictionary)
if 'result' in dictionary:
self.result = dictionary['result']
return self