def assert_type(self):
    if (self.code is not None):
        for value in self.code:
            if ((value is not None) and (value.lower() not in ['transaction', 'batch', 'search-system', 'history-system'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'transaction, batch, search-system, history-system'))
def assert_type(self):
    if (self.code is not None):
        for value in self.code:
            if ((value is not None) and (value.lower() not in ['transaction', 'batch', 'search-system', 'history-system'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'transaction, batch, search-system, history-system'))