CoachRePairedEvent
v2

Phoenix parcours B2C course

Details

Example event payload

1{
2  "id": 6134644,
3  "createdAt": "2023-07-10T12:34:20.557Z",
4  "updatedAt": "2023-07-10T12:34:20.587Z",
5  "eventName": "CoachRePairedEvent",
6  "keyId": "b8254929-d9f0-4010-97f4-9e25a71c59b6",
7  "eventData": {
8    "name": "CoachRePairedEvent",
9    "type": "event",
10    "keyId": "b8254929-d9f0-4010-97f4-9e25a71c59b6",
11    "payload": {
12      "talent": {
13        "id": "e0c01796-c52d-4ab7-a659-29dc889e7aef"
14      },
15      "userTalent": {
16        "id": "zearzer-c52d-4ab7-a659-29dc889e7aef",
17        "firstName": "John",
18        "lastName": "Doe",
19        "email": "j.do@mail.com"
20      },
21      "oldCoach": {
22        "id": "e0c01796-c52d-4ab7-a659-2azeazeaze"
23      },
24      "userOldCoach": {
25        "id": "zearzer-c52d-4ab7-a659-ddddsss",
26        "firstName": "old",
27        "lastName": "coach",
28        "email": "o.coach@mail.com"
29      },
30      "newCoach": {
31        "id": "e0c01796-c52d-4ab7-a659-qsdqsdq"
32      },
33      "userNewCoach": {
34        "id": "zearzer-c52d-4ab7-a659-sdfdsf",
35        "firstName": "new",
36        "lastName": "coach",
37        "email": "n.coach@mail.com"
38      }
39    },
40    "version": 2
41  },
42  "status": "ACKNOWLEDGED",
43  "publisherNodeId": "phoenix-production-788774c7f-9dccm",
44  "processorNodeId": "phoenix-production-788774c7f-8xmfs",
45  "version": 2,
46  "userId": "zearzer-c52d-4ab7-a659-29dc889e7aef",
47  "talentId": null
48}
49

CoachRePairedEvent payload

CoachRePairedEvent Schema (json)
{
  "$id": "CoachRePairedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "talent": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "userTalent": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "firstName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "lastName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "email": { "type": "string" }
      },
      "required": ["id", "email"]
    },
    "oldCoach": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "userOldCoach": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "firstName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "lastName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "email": { "type": "string" }
      },
      "required": ["id", "email"]
    },
    "newCoach": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "userNewCoach": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "firstName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "lastName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "email": { "type": "string" }
      },
      "required": ["id", "email"]
    }
  },
  "required": [
    "talent",
    "userTalent",
    "oldCoach",
    "userOldCoach",
    "newCoach",
    "userNewCoach"
  ]
}


Edit this pageLast updated on 2024/8/5