Files

2749 lines
66 KiB
JSON

{
"ledger": {
"v1.0.0": {
"COMMITTED_TRANSACTIONS": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"txid": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"reference",
"metadata",
"txid",
"timestamp"
]
}
}
},
"required": [
"ledger",
"transactions"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"REVERTED_TRANSACTION": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"revertedTransaction": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"txid": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"reference",
"metadata",
"txid",
"timestamp"
]
},
"revertTransaction": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"txid": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"reference",
"metadata",
"txid",
"timestamp"
]
}
},
"required": [
"ledger",
"revertedTransaction",
"revertTransaction"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_METADATA": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"targetType": {
"type": "string"
},
"targetId": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"ledger",
"targetType",
"targetId",
"metadata"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
},
"v2.0.0": {
"COMMITTED_TRANSACTIONS": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"id": {
"type": "number"
},
"timestamp": {
"type": "string"
},
"reverted": {
"type": "boolean"
}
},
"required": [
"postings",
"metadata",
"id",
"timestamp",
"reverted"
]
}
}
},
"required": [
"ledger",
"transactions"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"DELETED_METADATA": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"targetType": {
"type": "string"
},
"targetId": {
"type": "string"
},
"key": {
"type": "string"
}
},
"required": [
"ledger",
"targetType",
"targetId",
"key"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"REVERTED_TRANSACTION": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"revertedTransaction": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"id": {
"type": "number"
},
"timestamp": {
"type": "string"
},
"reverted": {
"type": "boolean"
}
},
"required": [
"postings",
"metadata",
"id",
"timestamp",
"reverted"
]
},
"revertTransaction": {
"type": "object",
"properties": {
"postings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"amount": {
"type": "number"
},
"asset": {
"type": "string"
}
},
"required": [
"source",
"destination",
"amount",
"asset"
]
}
},
"reference": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {},
"required": []
},
"id": {
"type": "number"
},
"timestamp": {
"type": "string"
}
},
"required": [
"postings",
"metadata",
"id",
"timestamp"
]
}
},
"required": [
"ledger",
"revertedTransaction",
"revertTransaction"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_METADATA": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"ledger": {
"type": "string"
},
"targetType": {
"type": "string"
},
"targetId": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"ledger",
"targetType",
"targetId",
"metadata"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
}
},
"orchestration": {
"v2.0.0": {
"FAILED_TRIGGER": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"triggerID": {
"type": "string",
"minLength": 1
},
"error": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"triggerID",
"error"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"FAILED_WORKFLOW": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"instanceID": {
"type": "string",
"minLength": 1
},
"error": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"instanceID",
"error"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"FAILED_WORKFLOW_STAGE": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"instanceID": {
"type": "string",
"minLength": 1
},
"number": {
"type": "integer",
"minLength": 1
},
"error": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"instanceID",
"number",
"error"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"STARTED_WORKFLOW": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"instanceID": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"instanceID"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"STARTED_WORKFLOW_STAGE": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"instanceID": {
"type": "string",
"minLength": 1
},
"number": {
"type": "integer",
"minLength": 1
}
},
"required": [
"id",
"instanceID",
"number"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SUCCEEDED_TRIGGER": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"triggerID": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"triggerID",
"workflowInstanceID"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SUCCEEDED_WORKFLOW": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"instanceID": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"instanceID"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SUCCEEDED_WORKFLOW_STAGE": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"instanceID": {
"type": "string",
"minLength": 1
},
"number": {
"type": "integer",
"minLength": 1
}
},
"required": [
"id",
"instanceID",
"number"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
}
},
"payments": {
"v0.0.0": {
"CONNECTOR_RESET": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"createdAt": {
"type": "string"
},
"connector": {
"type": "string"
}
},
"required": [
"createdAt",
"connector"
]
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_ACCOUNT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"reference",
"createdAt",
"provider",
"defaultAsset",
"accountName",
"type"
],
"properties": {
"id": {
"type": "string"
},
"reference": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"provider": {
"type": "string"
},
"defaultAsset": {
"type": "string"
},
"accountName": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"UNKNOWN",
"INTERNAL",
"EXTERNAL"
]
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_BALANCE": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"accountID",
"createdAt",
"asset",
"balance"
],
"properties": {
"accountID": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"asset": {
"type": "string"
},
"balance": {
"type": "number",
"format": "bigint"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_PAYMENT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"reference",
"createdAt",
"provider",
"type",
"status",
"scheme",
"asset",
"amount",
"initialAmount"
],
"properties": {
"id": {
"type": "string"
},
"reference": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"provider": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"PAY-IN",
"PAYOUT",
"TRANSFER",
"OTHER"
]
},
"status": {
"type": "string"
},
"scheme": {
"type": "string",
"enum": [
"unknown",
"other",
"visa",
"mastercard",
"amex",
"diners",
"discover",
"jcb",
"unionpay",
"alipay",
"cup",
"sepa debit",
"sepa credit",
"sepa",
"apple pay",
"google pay",
"doku",
"dragonpay",
"maestro",
"molpay",
"a2a",
"ach debit",
"ach",
"rtp"
]
},
"asset": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"initialAmount": {
"type": "number",
"format": "bigint"
},
"sourceAccountId": {
"type": "string"
},
"destinationAccountId": {
"type": "string"
},
"links": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"uri": {
"type": "string"
}
}
}
},
"rawData": {
"type": "object"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
},
"v2.0.0": {
"CONNECTOR_RESET": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"createdAt",
"connectorID"
],
"properties": {
"createdAt": {
"type": "string"
},
"connectorID": {
"type": "string"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"DELETED_POOL": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"DELETED_TRANSFER_INITIATION": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_ACCOUNT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"reference",
"createdAt",
"connectorId",
"provider",
"defaultAsset",
"accountName",
"type"
],
"properties": {
"id": {
"type": "string"
},
"reference": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"connectorId": {
"type": "string"
},
"provider": {
"type": "string"
},
"defaultAsset": {
"type": "string"
},
"accountName": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"UNKNOWN",
"INTERNAL",
"EXTERNAL"
]
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_BALANCE": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"accountID",
"connectorId",
"createdAt",
"asset",
"balance"
],
"properties": {
"accountID": {
"type": "string"
},
"connectorId": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"asset": {
"type": "string"
},
"balance": {
"type": "number",
"format": "bigint"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_BANK_ACCOUNT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt",
"name",
"country"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"accountNumber": {
"type": "string"
},
"iban": {
"type": "string"
},
"swiftBicCode": {
"type": "string"
},
"adjustments": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"id",
"createdAt",
"accountID",
"connectorID",
"provider"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"accountID": {
"type": "string"
},
"connectorID": {
"type": "string"
},
"provider": {
"type": "string"
}
}
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_PAYMENT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"reference",
"createdAt",
"connectorId",
"provider",
"type",
"status",
"scheme",
"asset",
"amount",
"initialAmount"
],
"properties": {
"id": {
"type": "string"
},
"reference": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"connectorId": {
"type": "string"
},
"provider": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"PAY-IN",
"PAYOUT",
"TRANSFER",
"OTHER"
]
},
"status": {
"type": "string"
},
"scheme": {
"type": "string",
"enum": [
"unknown",
"other",
"visa",
"mastercard",
"amex",
"diners",
"discover",
"jcb",
"unionpay",
"alipay",
"cup",
"sepa debit",
"sepa credit",
"sepa",
"apple pay",
"google pay",
"doku",
"dragonpay",
"maestro",
"molpay",
"a2a",
"ach debit",
"ach",
"rtp"
]
},
"asset": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"initialAmount": {
"type": "number",
"format": "bigint"
},
"sourceAccountId": {
"type": "string"
},
"destinationAccountId": {
"type": "string"
},
"links": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"uri": {
"type": "string"
}
}
}
},
"rawData": {
"type": "object"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_POOL": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"name",
"createdAt",
"accountIDs"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"accountIDs": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_TRANSFER_INITIATION": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt",
"scheduledAt",
"connectorId",
"provider",
"description",
"type",
"destinationAccountId",
"amount",
"asset",
"attempts",
"status",
"error"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"scheduledAt": {
"type": "string",
"format": "date-time"
},
"connectorId": {
"type": "string"
},
"provider": {
"type": "string"
},
"description": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"TRANSFER",
"PAYOUT"
]
},
"sourceAccountId": {
"type": "string"
},
"destinationAccountId": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"asset": {
"type": "string"
},
"attempts": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"WAITING_FOR_VALIDATION",
"PROCESSING",
"PROCESSED",
"FAILED",
"REJECTED",
"VALIDATED",
"ASK_RETRIED",
"ASK_REVERSED",
"REVERSE_PROCESSING",
"REVERSE_FAILED",
"PARTIALLY_REVERSED",
"REVERSED"
]
},
"error": {
"type": "string"
},
"relatedPayments": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"transferInitiationId",
"paymentId",
"createdAt",
"status",
"error"
],
"properties": {
"transferInitiationId": {
"type": "string"
},
"paymentId": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string"
},
"error": {
"type": "string"
}
}
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
},
"v3.0.0": {
"CONNECTOR_RESET": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"createdAt",
"connectorID"
],
"properties": {
"createdAt": {
"type": "string"
},
"connectorID": {
"type": "string"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"DELETED_POOL": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_ACCOUNT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"provider",
"connectorID",
"createdAt",
"reference",
"type"
],
"properties": {
"id": {
"type": "string"
},
"provider": {
"type": "string"
},
"connectorID": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"reference": {
"type": "string"
},
"type": {
"type": "string"
},
"rawData": {
"type": "object"
},
"defaultAsset": {
"type": "string"
},
"name": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_BALANCE": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"accountID",
"connectorID",
"provider",
"createdAt",
"lastUpdatedAt",
"asset",
"balance"
],
"properties": {
"accountID": {
"type": "string"
},
"connectorID": {
"type": "string"
},
"provider": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"lastUpdatedAt": {
"type": "string",
"format": "date-time"
},
"asset": {
"type": "string"
},
"balance": {
"type": "number",
"format": "bigint"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_BANK_ACCOUNT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt",
"name"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"accountNumber": {
"type": "string"
},
"iban": {
"type": "string"
},
"swiftBicCode": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"relatedAccounts": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"createdAt",
"accountID",
"connectorID",
"provider"
],
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"accountID": {
"type": "string"
},
"connectorID": {
"type": "string"
},
"provider": {
"type": "string"
}
}
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_PAYMENT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"connectorID",
"provider",
"reference",
"createdAt",
"type",
"status",
"scheme",
"asset",
"amount",
"initialAmount"
],
"properties": {
"id": {
"type": "string"
},
"connectorID": {
"type": "string"
},
"provider": {
"type": "string"
},
"reference": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"status": {
"type": "string"
},
"scheme": {
"type": "string"
},
"asset": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"initialAmount": {
"type": "number",
"format": "bigint"
},
"sourceAccountID": {
"type": "string"
},
"destinationAccountID": {
"type": "string"
},
"links": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"uri": {
"type": "string"
}
}
}
},
"rawData": {
"type": "object"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_PAYMENT_INITIATION": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"connectorID",
"provider",
"reference",
"createdAt",
"scheduledAt",
"description",
"type",
"amount",
"asset"
],
"properties": {
"id": {
"type": "string"
},
"connectorID": {
"type": "string"
},
"provider": {
"type": "string"
},
"reference": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"scheduledAt": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"type": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"asset": {
"type": "string"
},
"sourceAccountID": {
"type": "string"
},
"destinationAccountID": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_PAYMENT_INITIATION_ADJUSTMENT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"paymentInitiationID",
"status"
],
"properties": {
"id": {
"type": "string"
},
"paymentInitiationID": {
"type": "string"
},
"status": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"asset": {
"type": "string"
},
"error": {
"type": "object"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_PAYMENT_INITIATION_RELATED_PAYMENT": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"paymentInitiationID",
"paymentID"
],
"properties": {
"paymentInitiationID": {
"type": "string"
},
"paymentID": {
"type": "string"
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
},
"SAVED_POOL": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"name",
"createdAt",
"accountIDs"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"accountIDs": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}
}
}
}