{"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-1>"}},"x-parser-schema-id":"Message"}],"x-parser-schema-id":"Event"},{"type":"object","description":"Event published when a new individual lead has been created","required":["qualifiedOriginPartyId","leadId","status","createdAt"],"properties":{"qualifiedOriginPartyId":{"type":"string","format":"uri","description":"The qualified origin system identifier assigned to the newly created party","x-parser-schema-id":"<anonymous-schema-94>"},"leadId":{"type":"string","description":"The unique identifier assigned to the newly created lead","x-parser-schema-id":"<anonymous-schema-95>"},"status":{"type":"string","description":"Represents the activity status of a party","enum":["INACTIVE","ACTIVE"],"example":"ACTIVE","x-parser-schema-id":"Status"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the lead was created","x-parser-schema-id":"<anonymous-schema-96>"},"salutation":{"type":"string","nullable":true,"description":"Formal greeting prefix (e.g., Mr, Mrs, Ms, Dr)","x-parser-schema-id":"<anonymous-schema-97>"},"title":{"type":"string","nullable":true,"description":"Honorary, professional, or academic title","x-parser-schema-id":"<anonymous-schema-98>"},"firstName":{"type":"string","nullable":true,"description":"The individual's first name or given name","x-parser-schema-id":"<anonymous-schema-99>"},"lastName":{"type":"string","nullable":true,"description":"The individual's last name or family name","x-parser-schema-id":"<anonymous-schema-100>"},"middleNames":{"type":"string","nullable":true,"description":"Any middle names or initials","x-parser-schema-id":"<anonymous-schema-101>"},"dateOfBirth":{"type":"string","format":"date","nullable":true,"description":"The individual's date of birth in ISO format (YYYY-MM-DD)","x-parser-schema-id":"<anonymous-schema-102>"},"phoneNumber":{"type":"string","nullable":true,"description":"Contact phone number","x-parser-schema-id":"<anonymous-schema-103>"},"email":{"type":"string","nullable":true,"description":"Email address","x-parser-schema-id":"<anonymous-schema-104>"},"personalId":{"type":"string","nullable":true,"description":"Personal identification number or code","x-parser-schema-id":"<anonymous-schema-105>"},"preferredLanguage":{"type":"string","nullable":true,"description":"The individual's preferred language for communication","x-parser-schema-id":"<anonymous-schema-106>"},"registrationAddress":{"type":"object","description":"Structured representation of a physical address","properties":{"streetName":{"type":"string","nullable":true,"description":"The name of the street","x-parser-schema-id":"<anonymous-schema-13>"},"buildingNumber":{"type":"string","nullable":true,"description":"The building number on the street","x-parser-schema-id":"<anonymous-schema-14>"},"buildingName":{"type":"string","nullable":true,"description":"The name of the building, if applicable","x-parser-schema-id":"<anonymous-schema-15>"},"floor":{"type":"string","nullable":true,"description":"The floor number within the building","x-parser-schema-id":"<anonymous-schema-16>"},"postBox":{"type":"string","nullable":true,"description":"Post box or mail box identifier","x-parser-schema-id":"<anonymous-schema-17>"},"suite":{"type":"string","nullable":true,"description":"Suite or apartment number","x-parser-schema-id":"<anonymous-schema-18>"},"postCode":{"type":"string","nullable":true,"description":"Postal or ZIP code","x-parser-schema-id":"<anonymous-schema-19>"},"townName":{"type":"string","nullable":true,"description":"The name of the town or city","x-parser-schema-id":"<anonymous-schema-20>"},"townLocationName":{"type":"string","nullable":true,"description":"A specific location within the town","x-parser-schema-id":"<anonymous-schema-21>"},"districtName":{"type":"string","nullable":true,"description":"District, county, or regional division","x-parser-schema-id":"<anonymous-schema-22>"},"countrySubDivision":{"type":"string","nullable":true,"description":"Sub-division of the country (e.g., state, province)","x-parser-schema-id":"<anonymous-schema-23>"},"country":{"type":"string","nullable":true,"description":"The country, typically as a two-letter ISO country code","x-parser-schema-id":"<anonymous-schema-24>"}},"example":{"streetName":"High Street","buildingNumber":"42","buildingName":"Willow House","floor":"3","postCode":"SW1A 1AA","townName":"London","countrySubDivision":"Greater London","country":"GB"},"x-parser-schema-id":"Address"},"postalAddress":{"$ref":"#/components/schemas/Address"},"taxIdentifications":{"type":"array","nullable":true,"description":"List of tax identification information","items":{"type":"object","description":"Represents tax-related identification information for a party","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for the tax identification record","x-parser-schema-id":"<anonymous-schema-26>"},"tin":{"type":"string","nullable":true,"description":"Tax Identification Number","x-parser-schema-id":"<anonymous-schema-27>"},"country":{"type":"string","nullable":true,"description":"The country to which the tax identification applies","x-parser-schema-id":"<anonymous-schema-28>"},"reasonNoTin":{"type":"string","nullable":true,"description":"Reason code explaining why there is no TIN, if applicable","x-parser-schema-id":"<anonymous-schema-29>"},"reasonDescription":{"type":"string","nullable":true,"description":"Textual description explaining why there is no TIN","x-parser-schema-id":"<anonymous-schema-30>"},"primary":{"type":"boolean","nullable":true,"description":"Indicates whether this is the primary tax identification for the party","x-parser-schema-id":"<anonymous-schema-31>"}},"example":{"id":"tax-id-12345","tin":"AB123456C","country":"GB","primary":true},"x-parser-schema-id":"TaxIdentification"},"x-parser-schema-id":"<anonymous-schema-107>"},"documents":{"type":"array","nullable":true,"description":"List of identification documents","items":{"type":"object","description":"Represents an identification document such as passport or ID card","required":["setType","type","number"],"properties":{"setType":{"type":"string","description":"The category or set type of the document","x-parser-schema-id":"<anonymous-schema-33>"},"type":{"type":"string","description":"The specific type of document within the category","x-parser-schema-id":"<anonymous-schema-34>"},"number":{"type":"string","description":"The document's unique identifier or number","x-parser-schema-id":"<anonymous-schema-35>"}},"examples":[{"setType":"PASSPORT","type":"CURRENT","number":"GB9876543"},{"setType":"DRIVERS_LICENSE","type":"FULL","number":"SMITH907152AB9XY"}],"x-parser-schema-id":"Document"},"x-parser-schema-id":"<anonymous-schema-108>"},"additionalDetails":{"type":"object","additionalProperties":true,"nullable":true,"description":"Additional custom details stored as key-value pairs (maps to Java Map<String, Object>)","x-parser-schema-id":"<anonymous-schema-109>"}},"x-parser-schema-id":"<anonymous-schema-93>"}],"x-parser-schema-id":"IndividualLeadCreated"}