Source code for ingenico.connect.sdk.domain.product.definitions.regular_expression_validator

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/
#
from ingenico.connect.sdk.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