def assert_type(self):
    if (self.category is not None):
        for value in self.category:
            if ((value is not None) and (value.lower() not in ['consequence', 'currency', 'notification'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'Consequence, Currency, Notification'))
    if (self.mode is not None):
        for value in self.mode:
            if ((value is not None) and (value.lower() not in ['sender', 'receiver'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'sender, receiver'))
def assert_type(self):
    if (self.category is not None):
        for value in self.category:
            if ((value is not None) and (value.lower() not in ['consequence', 'currency', 'notification'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'Consequence, Currency, Notification'))
    if (self.mode is not None):
        for value in self.mode:
            if ((value is not None) and (value.lower() not in ['sender', 'receiver'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'sender, receiver'))