tango-api-schema 2.0.9 → 2.0.10

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
@@ -3,7 +3,8 @@ import otpModel from "./schema/otp.model.js";
3
3
  import storeModel from "./schema/store.model.js";
4
4
  import countryCodesModel from './schema/countryCodes.model.js';
5
5
  import clientModel from "./schema/client.model.js";
6
- import tangoTicket from "./schema/tangoTicket.model.js"
6
+ import tangoTicketModel from "./schema/tangoTicket.model.js"
7
+ import virtualAccountModel from "./schema/virtualAccount.model.js"
7
8
 
8
9
  export default {
9
10
  leadModel,
@@ -11,5 +12,6 @@ export default {
11
12
  storeModel,
12
13
  countryCodesModel,
13
14
  clientModel,
14
- tangoTicket
15
+ tangoTicketModel,
16
+ virtualAccountModel,
15
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -63,7 +63,123 @@ const client = new mongoose.Schema(
63
63
  },
64
64
  },
65
65
  ],
66
-
66
+ subscribedFeatures: {
67
+ tangoTraffic: {
68
+ active: {
69
+ type:Boolean,
70
+ default:true
71
+ },
72
+ status:{
73
+ type:String,
74
+ enum: ["pending", "trail", "live"],
75
+ default:"pending"
76
+ },
77
+ trailStartDate:{
78
+ type:Date,
79
+ },
80
+ trailEndDate: {
81
+ type:Date
82
+ },
83
+ subscribedDate:{
84
+ type:Date
85
+ },
86
+ Price:{
87
+ type:Number
88
+ }
89
+ },
90
+ tangoZone: {
91
+ active: {
92
+ type: Boolean,
93
+ default: false
94
+ },
95
+ status: {
96
+ type: String,
97
+ enum: ["pending", "trail", "live"],
98
+ default: "pending"
99
+ },
100
+ trailStartDate: {
101
+ type: Date,
102
+ },
103
+ trailEndDate: {
104
+ type: Date
105
+ },
106
+ subscribedDate: {
107
+ type: Date
108
+ },
109
+ Price: {
110
+ type: Number
111
+ },
112
+ },
113
+ revops: {
114
+ active: {
115
+ type: Boolean,
116
+ default: false
117
+ },
118
+ status: {
119
+ type: String,
120
+ enum: ["pending", "trail", "live"],
121
+ default: "pending"
122
+ },
123
+ trailStartDate: {
124
+ type: Date,
125
+ },
126
+ trailEndDate: {
127
+ type: Date
128
+ },
129
+ subscribedDate: {
130
+ type: Date
131
+ },
132
+ Price: {
133
+ type: Number
134
+ },
135
+ },
136
+ sop: {
137
+ active: {
138
+ type: Boolean,
139
+ default: false
140
+ },
141
+ status: {
142
+ type: String,
143
+ enum: ["pending", "trail", "live"],
144
+ default: "pending"
145
+ },
146
+ trailStartDate: {
147
+ type: Date,
148
+ },
149
+ trailEndDate: {
150
+ type: Date
151
+ },
152
+ subscribedDate: {
153
+ type: Date
154
+ },
155
+ Price: {
156
+ type: Number
157
+ },
158
+ },
159
+ support: {
160
+ active: {
161
+ type: Boolean,
162
+ default: false
163
+ },
164
+ status: {
165
+ type: String,
166
+ enum: ["pending", "trail", "live"],
167
+ default: "pending"
168
+ },
169
+ trailStartDate: {
170
+ type: Date,
171
+ },
172
+ trailEndDate: {
173
+ type: Date
174
+ },
175
+ subscribedDate: {
176
+ type: Date
177
+ },
178
+ Price: {
179
+ type: Number
180
+ },
181
+ }
182
+ },
67
183
  },
68
184
  status: {
69
185
  type: String,
@@ -303,6 +419,40 @@ const client = new mongoose.Schema(
303
419
  },
304
420
 
305
421
  },
422
+ paymentInvoic: {
423
+ paymentCycle: {
424
+ type:String,
425
+ },
426
+ paymentType: {
427
+ type:String
428
+ },
429
+ extendPaymentPeriodDays: {
430
+ type:Number
431
+ },
432
+ currencyType: {
433
+ type:String
434
+ },
435
+ invoiceTo:{
436
+ type:Array
437
+ },
438
+ paymentAgreementTo:{
439
+ type:Array
440
+ },
441
+ invoiceOn: {
442
+ date: {
443
+ type:Date
444
+ },
445
+ type: {
446
+ type:String
447
+ }
448
+ },
449
+ proRate:{
450
+ type:Boolean
451
+ }
452
+ },
453
+ price:{
454
+ type:Number
455
+ }
306
456
  },
307
457
  {
308
458
  strict: true,
@@ -24,6 +24,10 @@ const store = new mongoose.Schema(
24
24
  trim: true,
25
25
  required: true,
26
26
  },
27
+ client: {
28
+ type: mongoose.Schema.Types.ObjectId,
29
+ required: true,
30
+ },
27
31
  businessType: {
28
32
  type: String,
29
33
  },
@@ -0,0 +1,34 @@
1
+ import mongoose, { Mongoose } from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const vitualSchema = new mongoose.Schema({
5
+ paymentType: {
6
+ type:String,
7
+ required:true
8
+ },
9
+ accNo:{
10
+ type:String,
11
+ required:true
12
+ },
13
+ IFSCCode:{
14
+ type: String,
15
+ required: true
16
+ },
17
+ swiftCode:{
18
+ type: String,
19
+ required: true
20
+ },
21
+ branch:{
22
+ type: String,
23
+ required: true
24
+ }
25
+ }, {
26
+ strict: true,
27
+ versionKey: false,
28
+ timestamps: true,
29
+ },)
30
+ vitualSchema.plugin(mongooseUniqueValidator);
31
+
32
+ const vitualModel = mongoose.model('virtualAccount',vitualSchema);
33
+
34
+ export default vitualModel;