2019-06-17 06:14:48 +00:00
|
|
|
module.exports = Self => {
|
|
|
|
Self.validatesPresenceOf('name', {
|
2021-01-15 10:24:32 +00:00
|
|
|
message: 'Name cannot be blank'
|
2019-11-28 11:54:34 +00:00
|
|
|
});
|
|
|
|
Self.validatesPresenceOf('bic', {
|
2021-01-15 10:24:32 +00:00
|
|
|
message: 'Swift / BIC cannot be empty'
|
|
|
|
});
|
|
|
|
Self.validatesUniquenessOf('bic', {
|
|
|
|
message: 'This BIC already exist.'
|
2019-06-17 06:14:48 +00:00
|
|
|
});
|
|
|
|
};
|