{"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-2>"}},"x-parser-schema-id":"Message"}],"x-parser-schema-id":"Command"},{"type":"object","description":"Command to initiate Anti-Money Laundering screening for a payment","required":["paymentId","userId","debtorName","debtorAccount","creditorName","creditorAccount","instructedAmount"],"properties":{"paymentId":{"type":"string","format":"uuid","description":"Payment unique identifier in version 4 UUID format","x-parser-schema-id":"<anonymous-schema-64>"},"userId":{"type":"string","description":"Unique identifier of the user initiating the payment","x-parser-schema-id":"<anonymous-schema-65>"},"debtorName":{"type":"string","description":"Name of the debtor","x-parser-schema-id":"<anonymous-schema-66>"},"debtorAccount":{"type":"object","description":"Contains account details used in Anti-Money Laundering screening","required":["iban"],"properties":{"iban":{"type":"string","description":"International Bank Account Number of the account","x-parser-schema-id":"<anonymous-schema-67>"}},"x-parser-schema-id":"AmlAccount"},"debtorAddress":{"type":"object","description":"Contains the address details","properties":{"streetName":{"type":"string","description":"Street name","x-parser-schema-id":"<anonymous-schema-47>"},"buildingNumber":{"type":"string","description":"Building number","x-parser-schema-id":"<anonymous-schema-48>"},"buildingName":{"type":"string","description":"Building name","x-parser-schema-id":"<anonymous-schema-49>"},"floor":{"type":"string","description":"Floor number","x-parser-schema-id":"<anonymous-schema-50>"},"postBox":{"type":"string","description":"Post box","x-parser-schema-id":"<anonymous-schema-51>"},"suite":{"type":"string","description":"Suite number","x-parser-schema-id":"<anonymous-schema-52>"},"postCode":{"type":"string","description":"Postal code","x-parser-schema-id":"<anonymous-schema-53>"},"townName":{"type":"string","description":"Name of the town","x-parser-schema-id":"<anonymous-schema-54>"},"townLocationName":{"type":"string","description":"Location name of the town","x-parser-schema-id":"<anonymous-schema-55>"},"districtName":{"type":"string","description":"Name of the district","x-parser-schema-id":"<anonymous-schema-56>"},"countrySubDivision":{"type":"string","description":"Subdivision of the country","x-parser-schema-id":"<anonymous-schema-57>"},"country":{"type":"string","description":"Country code in ISO 3166 alpha-2 format","x-parser-schema-id":"<anonymous-schema-58>"}},"x-parser-schema-id":"Address"},"creditorName":{"type":"string","description":"Name of the creditor","x-parser-schema-id":"<anonymous-schema-68>"},"creditorAccount":{"$ref":"#/components/schemas/AmlAccount"},"creditorAddress":{"$ref":"#/components/schemas/Address"},"instructedAmount":{"type":"object","description":"Contains the payment amount and currency code","required":["value","currency"],"properties":{"value":{"type":"number","description":"The payment amount","x-parser-schema-id":"<anonymous-schema-28>"},"currency":{"type":"string","description":"The payment currency code in ISO 4217 format","x-parser-schema-id":"<anonymous-schema-29>"}},"x-parser-schema-id":"Amount"},"remittanceInformationUnstructured":{"type":"string","description":"Additional details about the payment","x-parser-schema-id":"<anonymous-schema-69>"}},"x-parser-schema-id":"<anonymous-schema-63>"}],"x-parser-schema-id":"InitiateAmlScreening"}