Catalogul de evenimente
Cele cinci evenimente pe care le trimite sistemul, când este trimis fiecare și ce conține data.
Pe această pagină
Fiecare eveniment este trimis în plicul descris în Plicul evenimentului. type identifică evenimentul; aggregateId și aggregateRevision identifică înregistrarea și revizia pe care o avea când s‑a petrecut evenimentul. Prima încercare de livrare se face imediat.
| Tip | Înregistrare | Trimis când |
|---|---|---|
com.rdcopilot.selfcheckout.basket.completed.v1 | basket | Plata unui coș a fost aprobată. |
com.rdcopilot.selfcheckout.intervention.raised.v1 | intervention | O casă s‑a oprit și cere o persoană. |
com.rdcopilot.selfcheckout.intervention.resolved.v1 | intervention | O intervenție a fost aprobată, refuzată sau anulată. |
com.rdcopilot.selfcheckout.device.faulted.v1 | device | Un dispozitiv a raportat o defecțiune pe care nu o avea înainte. |
com.rdcopilot.selfcheckout.rollout.completed.v1 | rollout | Ultimul inel al unei lansări a primit configurația. |
Coș încheiat
Conține numărul bonului, totalul și TVA‑ul. Folosește‑l ca să tipărești, să înregistrezi în contabilitate sau să eliberezi casa.
{
"specversion": "1.0",
"id": "160fafb3-c9e8-48e7-89cf-fc8c1c5f89cd",
"type": "com.rdcopilot.selfcheckout.basket.completed.v1",
"source": "/selfcheckout/v1",
"time": "2026-11-23T07:07:15Z",
"customerOrgId": "0bcc088a-2bc8-4fa4-9ff9-85b990d9f8a9",
"legalCompanyId": "77453003-5e7c-439c-b9d8-07386b8a18ec",
"aggregateType": "basket",
"aggregateId": "b6402596-2e53-4abd-bdc0-df8cdb8dba98",
"aggregateRevision": 1,
"correlationId": "66ca815d-31be-4304-b58e-8b1164afe2e0",
"causationId": "25f0cd3c-0878-4f93-a838-8387888b3467",
"actor": {
"serviceId": "lane"
},
"data": {
"basketId": "b6402596-2e53-4abd-bdc0-df8cdb8dba98",
"receipt": "Bon 1042",
"total": "67.23",
"vat": "7.85",
"currency": "RON"
}
} Intervenție deschisă
Conține casa, coșul, motivul și, pentru o greutate diferită, greutatea așteptată și pe cea măsurată. Folosește‑l ca să pui cererea pe ecranul operatorului.
{
"specversion": "1.0",
"id": "c2d05260-08ff-406e-9875-3bce61a3657c",
"type": "com.rdcopilot.selfcheckout.intervention.raised.v1",
"source": "/selfcheckout/v1",
"time": "2026-11-23T07:10:15Z",
"customerOrgId": "0bcc088a-2bc8-4fa4-9ff9-85b990d9f8a9",
"legalCompanyId": "77453003-5e7c-439c-b9d8-07386b8a18ec",
"aggregateType": "intervention",
"aggregateId": "a4b81f78-a572-439e-86af-ca4a0637ed9e",
"aggregateRevision": 1,
"correlationId": "9b1f24fe-8614-400e-8ecd-daac753e3d1d",
"causationId": "7b0096e4-75e8-41de-b74f-337e356171a9",
"actor": {
"serviceId": "lane"
},
"data": {
"laneId": "b52ad788-5852-40fe-aa11-ed923e9fe3f3",
"basketId": "e65dfec1-bfa1-46db-9978-a72896b6f0b2",
"reason": "weight_differs",
"expectedGrams": 930,
"measuredGrams": 1120
}
} Intervenție rezolvată
Conține rezultatul și decidedBy. Pentru o verificare de vârstă este evidența persoanei care a aprobat.
{
"specversion": "1.0",
"id": "77906bc8-7a4c-4c15-bf91-7945bf6ef74b",
"type": "com.rdcopilot.selfcheckout.intervention.resolved.v1",
"source": "/selfcheckout/v1",
"time": "2026-11-23T06:21:02Z",
"customerOrgId": "0bcc088a-2bc8-4fa4-9ff9-85b990d9f8a9",
"legalCompanyId": "77453003-5e7c-439c-b9d8-07386b8a18ec",
"aggregateType": "intervention",
"aggregateId": "fe5178d1-c332-45f2-93ed-39a340998de8",
"aggregateRevision": 2,
"correlationId": "5ff58811-04ef-4bd7-a1c6-082634aca9a5",
"causationId": "56fda5ea-89fc-46ee-934d-b6a927d0212e",
"actor": {
"userId": "cristina-lungu"
},
"data": {
"laneId": "93745be9-35d3-4b71-a2a6-dfcafee63996",
"reason": "age_check",
"status": "approved",
"decidedBy": "cristina-lungu"
}
} Dispozitiv defect
Conține casa, tipul dispozitivului și defecțiunea. Casa este deja scoasă din uz când evenimentul este trimis.
{
"specversion": "1.0",
"id": "d4535a90-87ec-418f-bd9a-bd9219c30a16",
"type": "com.rdcopilot.selfcheckout.device.faulted.v1",
"source": "/selfcheckout/v1",
"time": "2026-11-23T07:03:10Z",
"customerOrgId": "0bcc088a-2bc8-4fa4-9ff9-85b990d9f8a9",
"legalCompanyId": "77453003-5e7c-439c-b9d8-07386b8a18ec",
"aggregateType": "device",
"aggregateId": "672442ce-99e1-408f-8056-ea7ae55718e7",
"aggregateRevision": 1,
"correlationId": "4d962956-e342-43ea-bb92-2ca29501f6c4",
"causationId": "6b573259-9c0b-4c43-bfdf-3002f8c6f28f",
"actor": {
"serviceId": "device"
},
"data": {
"laneId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
"kind": "printer",
"fault": "paper_out"
}
} Lansare încheiată
Conține magazinul și configurația. Toate casele magazinului o rulează de acum.
{
"specversion": "1.0",
"id": "15cad869-f877-431f-9f96-e0e700eb68f9",
"type": "com.rdcopilot.selfcheckout.rollout.completed.v1",
"source": "/selfcheckout/v1",
"time": "2026-11-22T16:20:00Z",
"customerOrgId": "0bcc088a-2bc8-4fa4-9ff9-85b990d9f8a9",
"legalCompanyId": "77453003-5e7c-439c-b9d8-07386b8a18ec",
"aggregateType": "rollout",
"aggregateId": "d315256b-df5d-4b15-b9d0-2948b7cebcaa",
"aggregateRevision": 4,
"correlationId": "e87cd6d9-45dc-433f-8fbc-a21ee64b8af0",
"causationId": "db5a2466-d618-4516-bc1d-9dbec0c963db",
"actor": {
"serviceId": "selfcheckout"
},
"data": {
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"config": "2026.11.1",
"status": "completed"
}
}