tango-api-schema 2.0.9 → 2.0.11
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 +6 -2
- package/package.json +1 -1
- package/schema/basePricing.model.js +25 -0
- package/schema/client.model.js +151 -1
- package/schema/store.model.js +4 -0
- package/schema/virtualAccount.model.js +34 -0
package/index.js
CHANGED
|
@@ -3,7 +3,9 @@ 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
|
|
6
|
+
import tangoTicketModel from "./schema/tangoTicket.model.js";
|
|
7
|
+
import virtualModel from "./schema/virtualAccount.model.js";
|
|
8
|
+
import basePricingModel from "./schema/basePricing.model.js";
|
|
7
9
|
|
|
8
10
|
export default {
|
|
9
11
|
leadModel,
|
|
@@ -11,5 +13,7 @@ export default {
|
|
|
11
13
|
storeModel,
|
|
12
14
|
countryCodesModel,
|
|
13
15
|
clientModel,
|
|
14
|
-
|
|
16
|
+
tangoTicketModel,
|
|
17
|
+
virtualModel,
|
|
18
|
+
basePricingModel,
|
|
15
19
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mongoose from 'mongoose'
|
|
2
|
+
import mongooseUniqueValidator from 'mongoose-unique-validator'
|
|
3
|
+
|
|
4
|
+
let pricingSchema = new mongoose.Schema(
|
|
5
|
+
{
|
|
6
|
+
product_name:{
|
|
7
|
+
type:String,
|
|
8
|
+
required:true
|
|
9
|
+
},
|
|
10
|
+
base_price: {
|
|
11
|
+
type:Number,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
discout_percentage: {
|
|
15
|
+
type:Number,
|
|
16
|
+
required:true
|
|
17
|
+
},
|
|
18
|
+
camara_per_stores: {
|
|
19
|
+
type:Array
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
pricingSchema.plugin(mongooseUniqueValidator);
|
|
25
|
+
export default mongoose.model('basepricing', pricingSchema);
|
package/schema/client.model.js
CHANGED
|
@@ -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,
|
package/schema/store.model.js
CHANGED
|
@@ -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;
|