payservedb 9.7.2 → 9.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -109,6 +109,29 @@ const waterMeterSettingsSchema = new mongoose.Schema({
|
|
|
109
109
|
enabled: {
|
|
110
110
|
type: Boolean,
|
|
111
111
|
default: false
|
|
112
|
+
},
|
|
113
|
+
// Who receives the statement when statements are enabled
|
|
114
|
+
statementOwner: {
|
|
115
|
+
name: {
|
|
116
|
+
type: String,
|
|
117
|
+
trim: true
|
|
118
|
+
},
|
|
119
|
+
email: {
|
|
120
|
+
type: String,
|
|
121
|
+
trim: true,
|
|
122
|
+
lowercase: true,
|
|
123
|
+
validate: {
|
|
124
|
+
validator: function (v) {
|
|
125
|
+
if (!v) return true; // allow empty
|
|
126
|
+
return /^\w+([\.-]?\w+)@\w+([\.-]?\w+)(\.\w{2,3})+$/.test(v);
|
|
127
|
+
},
|
|
128
|
+
message: "Please enter a valid email address"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
phone: {
|
|
132
|
+
type: String,
|
|
133
|
+
trim: true
|
|
134
|
+
}
|
|
112
135
|
}
|
|
113
136
|
},
|
|
114
137
|
// Payment reminder notifications
|