{"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 could not be completed","required":["failure"],"properties":{"debit":{"type":"object","description":"Debit side of a currency exchange (the currency being sold)","required":["currency"],"properties":{"currency":{"type":"string","description":"Currency being debited, in ISO 4217 format","x-parser-schema-id":"<anonymous-schema-5>"},"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>`). Optional when the debit account is not represented in the platform.\n","x-parser-schema-id":"<anonymous-schema-6>"}},"x-parser-schema-id":"Debit"},"credit":{"type":"object","description":"Credit side of a currency exchange (the currency being bought)","required":["currency"],"properties":{"currency":{"type":"string","description":"Currency being credited, in ISO 4217 format","x-parser-schema-id":"<anonymous-schema-7>"},"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>`). Optional when the credit account is not represented in the platform.\n","x-parser-schema-id":"<anonymous-schema-8>"}},"x-parser-schema-id":"Credit"},"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"},"amount":{"type":"number","description":"The fixed amount from the original command, if known","x-parser-schema-id":"<anonymous-schema-20>"},"failure":{"type":"object","description":"Details about the failure","required":["code","reason"],"properties":{"code":{"type":"string","description":"The error code identifying the type of failure","enum":["urn:plmr:forex:connector:EXCHANGE_CURRENCY:CURRENCY_EXCHANGE_FAILED"],"x-parser-schema-id":"<anonymous-schema-21>"},"reason":{"type":"string","description":"Human-readable description of the failure","x-parser-schema-id":"<anonymous-schema-22>"}},"x-parser-schema-id":"Failure"}},"x-parser-schema-id":"<anonymous-schema-19>"}],"x-parser-schema-id":"CurrencyExchangeFailed"}