Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ozerich/07c3e8f51e9d51688fdb56a2ace0173d to your computer and use it in GitHub Desktop.
Save Ozerich/07c3e8f51e9d51688fdb56a2ace0173d to your computer and use it in GitHub Desktop.
{
"Promotion8": {
"promotion": {
"clientId": 246258,
"templateId": 8,
"awardBonus": 0,
"saleBonus": 0,
"burntBonus": 0,
"discount": "3.11"
},
"activeCampaignsLimits": []
},
"Address4": {
"address": {
"clientId": 246258,
"templateId": 4
}
},
"Communication6": {
"communication": {
"clientId": 246258,
"templateId": 6,
"isPrivateOffice": false
}
},
"Social9": {
"social": {
"birthday": "1981-04-08",
"clientId": 246258,
"isPensioner": false,
"age": 38,
"sex": "female",
"templateId": 9
}
},
"AccumulationProfile3": {
"profile": {
"clientId": 246258,
"pureTotal": "2832.23",
"checkCount": 45,
"wallDate": "2019-02-02 00:00:00",
"createdAt": "2017-09-06 09:55:01",
"updatedAt": "2019-05-03 03:23:42"
},
"settings": {
"daysCount": 90
}
},
"AccumulationPastYear12": {
"clientId": 246258,
"total": 91.11,
"level": 1,
"levelSetDate": "2019-04-27 03:15:00"
},
"Preference7": {
"common": {
"clientId": 246258,
"templateId": 7,
"avgItemsCount": 3,
"minItemsCount": 1,
"maxItemsCount": 6,
"avgUniqItemsCount": 1,
"minUniqItemsCount": 1,
"maxUniqItemsCount": 2,
"avgSameTypeCount": 3,
"minSameTypeCount": 1,
"maxSameTypeCount": 5,
"buyTime": "afternoon",
"checkCount": 4,
"campaignRatio": 0,
"campaignItemsRatio": 0
},
"buyTime": {
"startTime": "12:00:00",
"stopTime": "16:00:00"
},
"goods": [
{
"sku": "007813",
"name": "Смесь молочная Сэмпер Lemolac 325 г ",
"avgCount": 1,
"checkCount": 1
},
{
"sku": "251382",
"name": "Автошампунь \"Autoluxe\" (Автолюкс) 500 мл",
"avgCount": 4,
"checkCount": 2
},
{
"sku": "595422",
"name": "Колбаса Московская мясн в/к в/с изд колб Велес-Мит",
"avgCount": 1,
"checkCount": 3
}
],
"days": [
{
"dayNum": 4,
"level": "high"
},
{
"dayNum": 5,
"level": "high"
}
],
"preferredLocations": {
"locationsByCheck": [],
"locationsByTotal": []
}
},
"Behavior5": {
"behavior": {
"clientId": 246258,
"templateId": 5,
"total": {
"firstDate": "2017-09-14 18:05:14",
"lastDate": "2019-05-02 12:28:22",
"lifeValue": "26185.35",
"reviewsCount": 0,
"friendsCount": 0,
"globalCheckCount": 687,
"globalAvgInterval": 0,
"globalAvgCheck": "38.12"
},
"current": {
"maxCheck": "34.80",
"minCheck": "5.89",
"totalCheckCount": 4,
"totalInterval": 148,
"maxInterval": 6,
"minInterval": 0,
"categoriesCount": 3,
"outflowValue": 0.75,
"loyaltyValue": 0.5
},
"period0": {
"checkCount": 4,
"total": "97.00",
"avgCheckValue": "24.25",
"avgInterval": 7
},
"period1": {
"checkCount": 1,
"total": "5.89",
"avgCheckValue": "5.89",
"avgInterval": 29
},
"period2": {
"checkCount": 4,
"total": "143.48",
"avgCheckValue": "35.87",
"avgInterval": 7
},
"rfm": {
"recency": 0,
"frequency": 0,
"monetary": 0
},
"levels": {
"avgcheck": "high",
"avginterval": "high",
"checkcount": "low",
"lifevalue": "high"
},
"dynamics": {
"avgcheck": 16.14,
"avginterval": -61.11,
"checkcount": 60,
"total": 29.88
}
},
"categories": 31122,
"segment": "Активные клиенты",
"maxTotal": "97.00",
"maxAvgCheck": "24.25",
"kpiLevels": [
{
"kpiType": "avgcheck",
"text": " > 16.00"
},
{
"kpiType": "avginterval",
"text": " < 7.00"
},
{
"kpiType": "checkcount",
"text": " < 5.00"
},
{
"kpiType": "lifevalue",
"text": " > 250.00"
}
],
"periods": {
"current": {
"from": "2019-04-03 03:15:01",
"till": "2019-05-03 03:15:01"
},
"period1": {
"from": "2019-04-01 00:00:00",
"till": "2019-04-30 23:59:59"
},
"period2": {
"from": "2019-03-01 00:00:00",
"till": "2019-03-31 23:59:59"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment