payservedb 8.2.8 → 8.3.0

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/index.js CHANGED
@@ -233,7 +233,8 @@ const models = {
233
233
  AgentRole: require("./src/models/agent_roles"),
234
234
  CustomerSatisfactionSurvey: require("./src/models/customer_satisfaction_survey"),
235
235
  AgentDepartment: require("./src/models/agent_departments"),
236
- DocumentType: require("./src/models/document_type")
236
+ DocumentType: require("./src/models/document_type"),
237
+ Counter: require("./src/models/counter_schema")
237
238
  };
238
239
 
239
240
  // Function to get models dynamically from a specific database connection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "8.2.8",
3
+ "version": "8.3.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -25,6 +25,10 @@ const BankDetailsSchema = new mongoose.Schema({
25
25
  type: String,
26
26
  required: false,
27
27
  },
28
+ swiftCode: {
29
+ type: String,
30
+ required: false,
31
+ },
28
32
  bankPaybill: {
29
33
  type: String,
30
34
  required: false,
@@ -0,0 +1,22 @@
1
+ const mongoose = require('mongoose');
2
+
3
+ const counterSchema = new mongoose.Schema({
4
+ facilityId: {
5
+ type: mongoose.Schema.Types.ObjectId,
6
+ ref: 'Facility',
7
+ required: true,
8
+ },
9
+ name: {
10
+ type: String,
11
+ required: true,
12
+ unique: true
13
+ },
14
+ sequence: {
15
+ type: Number,
16
+ default: 10000
17
+ }
18
+ }, {
19
+ timestamps: true,
20
+ });
21
+
22
+ module.exports = mongoose.model('Counter', counterSchema);
@@ -141,10 +141,6 @@ const ticketSchema = new mongoose.Schema({
141
141
  type: String,
142
142
  required: false,
143
143
  },
144
- cancellationReason: {
145
- type: String,
146
- required: false,
147
- },
148
144
  cancelledAt: {
149
145
  type: Date,
150
146
  required: false,