@@ -35,7 +35,9 @@ class DatabaseDocument(BaseModel):
3535 year : SkipValidation [Optional [str ]] = Field (alias = "year" , default = None , description = "The year when the document was issued." )
3636 sovereignty : SkipValidation [Optional [str ]] = Field (alias = "sovereignty" , default = None , description = "Guardian country." )
3737 deprecated : SkipValidation [Optional [bool ]] = Field (alias = "deprecated" , default = None , description = "Whether the document is no longer in circulation." )
38- __properties : ClassVar [List [str ]] = ["barcode_fields" , "country" , "createad" , "doc_type" , "document" , "graphic_fields" , "id" , "mrz" , "region" , "rfid_chip" , "text_fields" , "updated" , "year" , "sovereignty" , "deprecated" ]
38+ icao_code : SkipValidation [Optional [str ]] = Field (alias = "icao_code" , default = None , description = "ICAO country code." )
39+ doc_codes : SkipValidation [Optional [str ]] = Field (alias = "doc_codes" , default = None , description = "Document codes." )
40+ __properties : ClassVar [List [str ]] = ["barcode_fields" , "country" , "createad" , "doc_type" , "document" , "graphic_fields" , "id" , "mrz" , "region" , "rfid_chip" , "text_fields" , "updated" , "year" , "sovereignty" , "deprecated" , "icao_code" , "doc_codes" ]
3941
4042 model_config = ConfigDict (
4143 populate_by_name = True ,
@@ -104,7 +106,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104106 "updated" : obj .get ("updated" ),
105107 "year" : obj .get ("year" ),
106108 "sovereignty" : obj .get ("sovereignty" ),
107- "deprecated" : obj .get ("deprecated" )
109+ "deprecated" : obj .get ("deprecated" ),
110+ "icao_code" : obj .get ("icao_code" ),
111+ "doc_codes" : obj .get ("doc_codes" )
108112 })
109113 return _obj
110114
0 commit comments