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 worldline.connect.sdk.domain.data_object import DataObject
[docs]class TestConnection(DataObject):
__result = None
@property
def result(self):
"""
| OK result on the connection to the payment engine.
Type: str
"""
return self.__result
@result.setter
def result(self, value):
self.__result = value
[docs] def to_dictionary(self):
dictionary = super(TestConnection, self).to_dictionary()
if self.result is not None:
dictionary['result'] = self.result
return dictionary
[docs] def from_dictionary(self, dictionary):
super(TestConnection, self).from_dictionary(dictionary)
if 'result' in dictionary:
self.result = dictionary['result']
return self