{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/if/main/json-schema/if-generic-transaction-update-response-schema.json", "title": "GenericTransactionUpdateResponse", "description": "response model", "x-generated": "2026-10-14", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/if-generic-transaction-api-openapi.yml#/components/schemas/GenericTransactionUpdateResponse", "required": [ "connect", "data", "metadata", "workflow" ], "type": "object", "properties": { "workflow": { "$ref": "#/$defs/GenericTransactionUpdateWorkflowContainer" }, "data": { "$ref": "#/$defs/GenericTransactionUpdateDataContainer" }, "connect": { "$ref": "#/$defs/GenericTransactionUpdateConnectContainer" }, "metadata": { "$ref": "#/$defs/GenericTransactionMetadataConnectContainer" } }, "$defs": { "AttributeMap": { "type": "object", "description": "Generic Transaction Attributes" }, "GenericTransactionMetadataConnectContainer": { "type": "object", "description": "metadata container" }, "GenericTransactionResource": { "type": "object", "properties": { "id": { "type": "string", "description": "ID of generic transaction", "format": "uuid" }, "type": { "type": "string", "description": "type" }, "owner": { "$ref": "#/$defs/Owner" }, "clientId": { "type": "string", "description": "id of client", "format": "uuid" }, "accountId": { "type": "string", "description": "id of account", "format": "uuid" }, "transactionNumber": { "type": "string", "description": "transaction number" }, "amount": { "type": "number", "description": "transaction amount" }, "currency": { "type": "string", "description": "transaction currency" }, "status": { "$ref": "#/$defs/GenericTransactionStatus" }, "attributes": { "$ref": "#/$defs/AttributeMap" }, "narrative": { "type": "string", "description": "Generic Transaction Narrative" }, "creationDateTime": { "type": "string", "description": "Generic Transaction Creation Date Time", "format": "date-time" } }, "description": "generic transaction model", "readOnly": true }, "GenericTransactionStatus": { "type": "string", "description": "Generic Transaction Status", "enum": [ "completed" ] }, "GenericTransactionUpdateConnectContainer": { "type": "object", "description": "connect container" }, "GenericTransactionUpdateDataContainer": { "required": [ "genericTransaction" ], "type": "object", "properties": { "genericTransaction": { "$ref": "#/$defs/GenericTransactionResource" } }, "description": "data container" }, "GenericTransactionUpdateWorkflowContainer": { "required": [ "code" ], "type": "object", "properties": { "code": { "type": "string", "description": "workflow code", "enum": [ "direct" ] } }, "description": "workflow container" }, "Owner": { "type": "string", "description": "owner of generic transaction", "enum": [ "organization", "client" ] } } }