IndividualHelpingActRespondToHRAddedEvent
v1

Add a helping act when a member responds to another member help request
You are currently viewing an old version of this event (1).Read latest version →

Details

IndividualHelpingActRespondToHRAddedEvent payload

IndividualHelpingActRespondToHRAddedEvent Schema (json)
{
  "$id": "IndividualHelpingActRespondToHRAddedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "helpingAct": {
      "type": "object",
      "properties": {
        "createdAt": { "format": "datetime", "type": "string" },
        "id": { "type": "string" },
        "category": {
          "anyOf": [
            { "const": "INDIVIDUAL", "type": "string" },
            { "const": "COLLECTIVE", "type": "string" }
          ]
        },
        "type": {
          "anyOf": [
            { "const": "HELP_REQUEST_RESPONSE", "type": "string" },
            { "const": "REFERRAL", "type": "string" },
            { "const": "MY_CIRCLE", "type": "string" },
            { "const": "LIVE", "type": "string" },
            { "const": "SOLIDARITY_COOPTATION", "type": "string" }
          ]
        },
        "version": { "type": "number" },
        "payload": {
          "anyOf": [
            {
              "$id": "HelpRequestResponsePayloadDTO",
              "additionalProperties": true,
              "type": "object",
              "properties": {
                "helpRequestId": {
                  "anyOf": [{ "type": "string" }, { "type": "null" }]
                }
              }
            },
            { "type": "null" }
          ]
        }
      },
      "required": ["createdAt", "id", "category", "type", "version"]
    },
    "helpingUser": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "helpedUser": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    }
  },
  "required": ["helpingAct", "helpingUser", "helpedUser"]
}


Edit this pageLast updated on 2024/8/5