{"allOf":[{"description":"Base type for all commands 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":"Command"},{"type":"object","description":"Command to book a foreign-exchange conversion between two accounts","required":["debit","credit","fixedAmountSide","amount"],"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, expressed in the currency of the side identified by `fixedAmountSide`","x-parser-schema-id":"<anonymous-schema-9>"}},"x-parser-schema-id":"<anonymous-schema-4>"}],"x-parser-schema-id":"ExchangeCurrency"}