04.01.2021 - 11:59 Uhr
AXC-1410
Bookingoptions: Vererbungslogik implementiert
Als JSON-Example inkl. Vererbungslogik anhand exemplarisch ausgewählter Attribute, zum einfacheren Verständnis. Die Menge der Attribute soll wie bisher erhalten bleiben.
{
"data": {
"campaignBuyer": {
"findCampaigns": [
{
"id": "420a2265-cf91-418c-9589-003b49cb1624",
"bookingOptionPresetting": {
"doubleOccupancyPerHour": null,
"doubleOccupancyPerBlock": null,
"spotsPerDayMin": 4,
"spotsPerDayMax": 8,
"spotsPerWeekMin": null,
"spotsPerWeekMax": null
},
"campaignElements": [
{
"id": "5adcf811-0bf6-41de-bbf5-e4ff6c1b2f74",
"bookingOptionPresetting": {
"spotsPerWeekMin": 10,
"spotsPerWeekMax": 20
},
"plan": {
"bookingOptionPresetting": {
"spotsPerWeekMax": 40
},
"planElement": {
"bookingOptionPresetting": {
"spotsPerDayMin": 2,
},
"bookingOption": { // Endresultat der Vererbungskette
"doubleOccupancyPerHour": { "value": "null", "origin": "default" },
"doubleOccupancyPerBlock": { "value": "null", "origin": "default" },
"spotsPerDayMin": {"value": "2", "origin": "planElement"},
"spotsPerDayMax": {"value": "8", "origin": "campaign"},
"spotsPerWeekMin": {"value": "10", "origin": "campaignElements"},
"spotsPerWeekMax": {"value": "40", "origin": "plan"}
}
}
}
}
]
}
]
}
}
}