client-created
v0.0.1

A client has been created in Sirius

Context

In order to increase the performance of some queries, the finance hub needs access to the court reference for the finance client from its own schema. This event populates that field on creation of a client.

Trigger

A client is created.

Effect

The supervision_finance.finance_client table is updated, setting the value of court_ref.

Consumer / Producer Diagram

Examples

1{
2  "clientId": 1,
3  "courtRef": "12345678"
4}
5
client-created Schema (json)
{
  "$id": "https://opg.service.justice.gov.uk/opg.supervision.sirius/client-created.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "opg.supervision.sirius/client-created",
  "type": "object",
  "properties": {
    "clientId": {
      "type": "integer",
      "description": "The client's ID"
    },
    "courtRef": {
      "type": "string",
      "description": "The client's court reference number"
    }
  },
  "required": [
    "clientId",
    "courtRef"
  ]
}
Edit this pageLast updated on 2024/11/22