finance-admin-upload
v0.0.1

The payment report has been uploaded

Context

When a payment report is uploaded from the finance admin system, the finance hub API needs to download the report and process it's contents. This event indicates to the finance hub that a file has been uploaded, and provides its location.

Trigger

A payment report is uploaded.

Effect

The finance hub API downloads the report from S3 and processes its payments.

Consumer / Producer Diagram

Examples

1{
2  "emailAddress": "test@email.com",
3  "filename": "moto-card-payments/feemoto_01/01/2024normal.csv",
4  "uploadType": "PAYMENTS_MOTO_CARD"
5}
6
finance-admin-upload Schema (json)
{
  "$id": "https://opg.service.justice.gov.uk/opg.supervision.sirius/finance-admin-upload.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "opg.supervision.sirius/finance-admin-upload-processed",
  "type": "object",
  "properties": {
    "emailAddress": {
      "type": "string",
      "description": "The email address of the user who uploaded the report"
    },
    "filename": {
      "type": "string",
      "description": "The sub-directory and filename of the report in the async S3 bucket"
    },
    "uploadType": {
      "type": "string",
      "description": "The key for the upload type that has been uploaded"
    }
  },
  "required": ["emailAddress", "filename"]
}
Edit this pageLast updated on 2024/11/22