Source code for worldline.connect.sdk.v1.domain.regular_expression_validator
# -*- 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 RegularExpressionValidator(DataObject):
__regular_expression = None
@property
def regular_expression(self):
"""
| Contains the regular expression that the value of the field needs to be validated against
Type: str
"""
return self.__regular_expression
@regular_expression.setter
def regular_expression(self, value):
self.__regular_expression = value
[docs] def to_dictionary(self):
dictionary = super(RegularExpressionValidator, self).to_dictionary()
if self.regular_expression is not None:
dictionary['regularExpression'] = self.regular_expression
return dictionary
[docs] def from_dictionary(self, dictionary):
super(RegularExpressionValidator, self).from_dictionary(dictionary)
if 'regularExpression' in dictionary:
self.regular_expression = dictionary['regularExpression']
return self