{"allOf":[{"description":"Base type for all events in the system","allOf":[{"type":"object","description":"Base message type that all commands and events inherit from","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for the message, typically a UUID","default":"UUID generated string","x-parser-schema-id":"<anonymous-schema-3>"}},"x-parser-schema-id":"Message"}],"x-parser-schema-id":"Event"},{"type":"object","description":"Event published when a foreign-exchange conversion has been booked successfully","required":["conversionId","debited","credited","fixedAmountSide","rate"],"properties":{"conversionId":{"type":"string","description":"Identifier assigned by the external provider to the completed conversion","x-parser-schema-id":"<anonymous-schema-11>"},"debited":{"type":"object","description":"Details of the debited side of a completed currency exchange","required":["currency","amount"],"properties":{"accountId":{"type":"string","format":"uri","description":"Unique identifier for the debited account. The URI format is used to identify the underlying core\n(i.e. `<core-name>:<identifier>`).\n","x-parser-schema-id":"<anonymous-schema-12>"},"currency":{"type":"string","description":"Currency of the debited amount, in ISO 4217 format","x-parser-schema-id":"<anonymous-schema-13>"},"amount":{"type":"number","description":"Amount debited from the source account","x-parser-schema-id":"<anonymous-schema-14>"}},"x-parser-schema-id":"Debited"},"credited":{"type":"object","description":"Details of the credited side of a completed currency exchange","required":["currency","amount"],"properties":{"accountId":{"type":"string","format":"uri","description":"Unique identifier for the credited account. The URI format is used to identify the underlying core\n(i.e. `<core-name>:<identifier>`).\n","x-parser-schema-id":"<anonymous-schema-15>"},"currency":{"type":"string","description":"Currency of the credited amount, in ISO 4217 format","x-parser-schema-id":"<anonymous-schema-16>"},"amount":{"type":"number","description":"Amount credited to the destination account","x-parser-schema-id":"<anonymous-schema-17>"}},"x-parser-schema-id":"Credited"},"fixedAmountSide":{"type":"string","description":"Indicates which side of the exchange is fixed. When `DEBIT`, the debit amount is fixed and the credit\namount is derived from the rate. When `CREDIT`, the credit amount is fixed and the debit amount is\nderived from the rate.\n","enum":["DEBIT","CREDIT"],"x-parser-schema-id":"FixedAmountSide"},"rate":{"type":"number","description":"Exchange rate applied to the conversion","x-parser-schema-id":"<anonymous-schema-18>"}},"x-parser-schema-id":"<anonymous-schema-10>"}],"x-parser-schema-id":"CurrencyExchanged"}