Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var exclusiveCategoryId = db.getCollection('categories').findOne({name: "Exclusive", status: "ACTIVE"})._id;
- var mercedesBenzG500Id = db.getCollection('manufactureinfos').findOne({name: "Mercedes-Benz G500", status: "ACTIVE"})._id;
- db.packagetemplates.insert({
- "title": "30 дней",
- "type": "CUSTOM",
- "categories": [],
- "manufacturers": [mercedesBenzG500Id],
- "schedule": {
- "duration": {
- "minimum": 30,
- "maximum": 30
- }
- },
- "price" : {
- "amount" : 240000.0,
- "currency" : "RUB"
- },
- "features": {
- "rent" : {
- "source" : "PACKAGE",
- "price" : {
- "amount" : 8000.0,
- "currency" : "RUB"
- }
- },
- "delivery" : {
- "source" : "PACKAGE",
- "price" : {
- "amount" : 0.0,
- "currency" : "RUB"
- }
- },
- "washing" : {
- "prices" : [
- {
- "price" : {
- "amount" : 800.0,
- "currency" : "RUB"
- }
- }
- ]
- },
- "unlimitedMileage" : {
- "included" : false
- },
- "carReplace": {
- "filter": "ALL",
- "categories": [],
- "prices": []
- }
- },
- "sorting" : 100.0,
- "status" : "ACTIVE",
- "updatedAt" : new Date(),
- "createdAt" : new Date(),
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement