// 不动产买卖合约模板 // 覆盖:CN/HK/SG/AE/US/DE/FR/JP/KR/AU/GB // 每个辖区的不动产合约都有其独特的法律要求 use crate::{ContractField, ContractTemplate, ContractTemplateType, FieldType}; pub fn get_template(jurisdiction: &str) -> Option { match jurisdiction.to_uppercase().as_str() { "CN" => Some(cn_real_estate_template()), "HK" => Some(hk_real_estate_template()), "SG" => Some(sg_real_estate_template()), "AE" => Some(ae_real_estate_template()), "US" => Some(us_real_estate_template()), "DE" => Some(de_real_estate_template()), "FR" => Some(fr_real_estate_template()), "JP" => Some(jp_real_estate_template()), "KR" => Some(kr_real_estate_template()), "AU" => Some(au_real_estate_template()), "GB" => Some(gb_real_estate_template()), _ => None, } } fn cn_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-CN-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "CN".to_string(), counterpart_jurisdiction: None, name: "中国不动产买卖合同(网签版)".to_string(), description: "适用于中国境内不动产(住宅/商业/工业)买卖,须在房管局网签备案".to_string(), legal_system: "大陆法系".to_string(), required_fields: vec![ ContractField { name: "seller_name".to_string(), label: "出卖人姓名/名称".to_string(), field_type: FieldType::Text, required: true, description: "出卖人的完整法定姓名或企业名称".to_string(), legal_basis: Some("《合同法》第12条".to_string()), example: Some("张三 / 北京某房地产有限公司".to_string()), }, ContractField { name: "seller_id".to_string(), label: "出卖人身份证/统一社会信用代码".to_string(), field_type: FieldType::Text, required: true, description: "出卖人的有效身份证件号码".to_string(), legal_basis: Some("《不动产登记暂行条例》第16条".to_string()), example: None, }, ContractField { name: "buyer_name".to_string(), label: "买受人姓名/名称".to_string(), field_type: FieldType::Text, required: true, description: "买受人的完整法定姓名或企业名称".to_string(), legal_basis: Some("《合同法》第12条".to_string()), example: None, }, ContractField { name: "buyer_id".to_string(), label: "买受人身份证/统一社会信用代码".to_string(), field_type: FieldType::Text, required: true, description: "买受人的有效身份证件号码".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "房屋坐落地址".to_string(), field_type: FieldType::Address, required: true, description: "不动产的完整地址,与不动产权证一致".to_string(), legal_basis: Some("《不动产登记暂行条例》".to_string()), example: Some("北京市朝阳区某街道某号某楼某单元某室".to_string()), }, ContractField { name: "property_certificate_no".to_string(), label: "不动产权证书编号".to_string(), field_type: FieldType::Text, required: true, description: "不动产权证书的唯一编号".to_string(), legal_basis: Some("《不动产登记暂行条例》第22条".to_string()), example: None, }, ContractField { name: "land_use_right_type".to_string(), label: "土地使用权性质".to_string(), field_type: FieldType::Enum(vec!["出让".to_string(), "划拨".to_string(), "集体".to_string()]), required: true, description: "土地使用权的取得方式,影响交易合法性".to_string(), legal_basis: Some("《城镇国有土地使用权出让和转让暂行条例》".to_string()), example: None, }, ContractField { name: "land_use_years_remaining".to_string(), label: "土地使用权剩余年限".to_string(), field_type: FieldType::Number, required: true, description: "土地使用权证上的剩余年限".to_string(), legal_basis: None, example: Some("70(住宅)/ 40(商业)/ 50(工业)".to_string()), }, ContractField { name: "building_area".to_string(), label: "建筑面积(平方米)".to_string(), field_type: FieldType::Number, required: true, description: "不动产权证上的建筑面积".to_string(), legal_basis: None, example: None, }, ContractField { name: "transaction_price".to_string(), label: "成交价格(人民币元)".to_string(), field_type: FieldType::Currency { currency_code: "CNY".to_string() }, required: true, description: "买卖双方协商确定的成交价格".to_string(), legal_basis: Some("《合同法》第12条".to_string()), example: None, }, ContractField { name: "payment_method".to_string(), label: "付款方式".to_string(), field_type: FieldType::Enum(vec!["全款".to_string(), "按揭贷款".to_string(), "公积金贷款".to_string(), "组合贷款".to_string()]), required: true, description: "买受人的付款方式".to_string(), legal_basis: None, example: None, }, ContractField { name: "delivery_date".to_string(), label: "交房日期".to_string(), field_type: FieldType::Date, required: true, description: "出卖人向买受人交付房屋的约定日期".to_string(), legal_basis: None, example: None, }, ContractField { name: "household_registration_commitment".to_string(), label: "户口迁出承诺".to_string(), field_type: FieldType::Boolean, required: true, description: "出卖人承诺在交房前迁出户口".to_string(), legal_basis: None, example: None, }, ], optional_fields: vec![ ContractField { name: "mortgage_status".to_string(), label: "抵押状态".to_string(), field_type: FieldType::Enum(vec!["无抵押".to_string(), "有抵押(须还清)".to_string()]), required: false, description: "房屋是否存在抵押".to_string(), legal_basis: None, example: None, }, ContractField { name: "decoration_status".to_string(), label: "装修状况".to_string(), field_type: FieldType::Enum(vec!["毛坯".to_string(), "简装".to_string(), "精装".to_string()]), required: false, description: "房屋的装修状况".to_string(), legal_basis: None, example: None, }, ], required_attachments: vec![ "不动产权证书(原件)".to_string(), "出卖人身份证(复印件)".to_string(), "买受人身份证(复印件)".to_string(), "婚姻状况证明(已婚须配偶同意书)".to_string(), "网签备案回执".to_string(), ], special_requirements: vec![ "须在当地房管局进行网签备案(住宅必须)".to_string(), "须缴纳契税(买方)、增值税(卖方)、个人所得税(卖方)".to_string(), "须在不动产登记中心完成产权转移登记".to_string(), "外资买家须提供在华工作/学习证明(住宅)".to_string(), ], applicable_taxes: vec![ "契税:1%-3%(买方,首套1%,二套3%)".to_string(), "增值税:5%(不满2年),满2年普通住宅免征".to_string(), "个人所得税:差价×20%(满5年唯一住房免征)".to_string(), "印花税:0.05%".to_string(), ], dispute_resolution_suggestion: "适用中华人民共和国法律;争议提交不动产所在地人民法院或CIETAC仲裁".to_string(), language_requirements: vec!["中文(正本)".to_string()], } } fn hk_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-HK-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "HK".to_string(), counterpart_jurisdiction: None, name: "香港物业买卖合约(PASP + ASP)".to_string(), description: "适用于香港不动产买卖,包含临时买卖合约和正式买卖合约".to_string(), legal_system: "普通法系".to_string(), required_fields: vec![ ContractField { name: "vendor_name".to_string(), label: "卖方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "卖方的完整法定姓名或公司名称".to_string(), legal_basis: Some("《印花税条例》".to_string()), example: None, }, ContractField { name: "purchaser_name".to_string(), label: "买方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "买方的完整法定姓名或公司名称".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "物业地址".to_string(), field_type: FieldType::Address, required: true, description: "物业的完整地址,与土地注册处记录一致".to_string(), legal_basis: None, example: Some("香港九龙某街道某号某楼某室".to_string()), }, ContractField { name: "lot_number".to_string(), label: "地段编号(Lot Number)".to_string(), field_type: FieldType::Text, required: true, description: "土地注册处的地段编号".to_string(), legal_basis: Some("《土地注册条例》".to_string()), example: None, }, ContractField { name: "purchase_price".to_string(), label: "成交价格(港元)".to_string(), field_type: FieldType::Currency { currency_code: "HKD".to_string() }, required: true, description: "买卖双方协商的成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "initial_deposit".to_string(), label: "临时订金(港元)".to_string(), field_type: FieldType::Currency { currency_code: "HKD".to_string() }, required: true, description: "签署PASP时支付的临时订金,通常为成交价的3%-5%".to_string(), legal_basis: None, example: None, }, ContractField { name: "completion_date".to_string(), label: "成交日期".to_string(), field_type: FieldType::Date, required: true, description: "完成交割的约定日期".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_nationality".to_string(), label: "买方国籍".to_string(), field_type: FieldType::Text, required: true, description: "用于确定适用的印花税税率(外资买家须缴纳BSD)".to_string(), legal_basis: Some("《印花税条例》BSD条款".to_string()), example: None, }, ], optional_fields: vec![ ContractField { name: "mortgage_redemption".to_string(), label: "按揭赎回安排".to_string(), field_type: FieldType::Text, required: false, description: "如物业有按揭,须说明赎回安排".to_string(), legal_basis: None, example: None, }, ], required_attachments: vec![ "临时买卖合约(PASP)".to_string(), "正式买卖合约(ASP)".to_string(), "土地查册文件(Land Search)".to_string(), "印花税缴纳证明(IRAS)".to_string(), "律师行转让契(Assignment)".to_string(), ], special_requirements: vec![ "须在14天内缴纳从价印花税(AVD)".to_string(), "外资买家须额外缴纳买家印花税(BSD)15%".to_string(), "须通过持牌律师行完成转让".to_string(), "须在土地注册处完成产权登记".to_string(), ], applicable_taxes: vec![ "从价印花税(AVD):最高15%(住宅)".to_string(), "买家印花税(BSD):15%(非香港永久居民)".to_string(), ], dispute_resolution_suggestion: "适用香港法律;争议提交香港高等法院或HKIAC仲裁".to_string(), language_requirements: vec!["中文或英文(均具法律效力)".to_string()], } } fn sg_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-SG-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "SG".to_string(), counterpart_jurisdiction: None, name: "新加坡房产买卖协议(OTP + S&P)".to_string(), description: "适用于新加坡私人住宅和商业不动产买卖".to_string(), legal_system: "普通法系".to_string(), required_fields: vec![ ContractField { name: "vendor_name".to_string(), label: "卖方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "purchaser_name".to_string(), label: "买方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "物业地址".to_string(), field_type: FieldType::Address, required: true, description: "物业完整地址".to_string(), legal_basis: None, example: None, }, ContractField { name: "title_number".to_string(), label: "地契编号(Title Number)".to_string(), field_type: FieldType::Text, required: true, description: "SLA土地注册处的地契编号".to_string(), legal_basis: Some("《土地所有权法》".to_string()), example: None, }, ContractField { name: "purchase_price".to_string(), label: "成交价格(新加坡元)".to_string(), field_type: FieldType::Currency { currency_code: "SGD".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_residency_status".to_string(), label: "买方居民身份".to_string(), field_type: FieldType::Enum(vec![ "新加坡公民".to_string(), "新加坡永久居民".to_string(), "外国人".to_string(), "公司实体".to_string(), ]), required: true, description: "用于确定ABSD税率".to_string(), legal_basis: Some("《印花税法》ABSD条款".to_string()), example: None, }, ContractField { name: "completion_date".to_string(), label: "完成日期".to_string(), field_type: FieldType::Date, required: true, description: "完成交割的约定日期".to_string(), legal_basis: None, example: None, }, ], optional_fields: vec![], required_attachments: vec![ "购房意向书(OTP)".to_string(), "买卖合约(S&P)".to_string(), "IRAS印花税缴纳证明".to_string(), "律师行转让文件".to_string(), ], special_requirements: vec![ "须在14天内缴纳BSD印花税".to_string(), "外资买家须缴纳ABSD 60%(2023年4月起)".to_string(), "须在SLA完成产权转移登记".to_string(), ], applicable_taxes: vec![ "买方印花税(BSD):最高4%".to_string(), "额外买方印花税(ABSD):外国人60%,PR 5%-15%,公民0%-15%".to_string(), ], dispute_resolution_suggestion: "适用新加坡法律;争议提交新加坡高等法院或SIAC仲裁".to_string(), language_requirements: vec!["英文".to_string()], } } fn ae_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-AE-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "AE".to_string(), counterpart_jurisdiction: None, name: "阿联酋(迪拜)不动产买卖合约(MOU + Form F)".to_string(), description: "适用于迪拜Freehold区域不动产买卖,须通过DLD完成登记".to_string(), legal_system: "混合法系(民法+伊斯兰法)".to_string(), required_fields: vec![ ContractField { name: "seller_name".to_string(), label: "卖方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_name".to_string(), label: "买方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "物业地址".to_string(), field_type: FieldType::Address, required: true, description: "物业完整地址,须在DLD Freehold区域内".to_string(), legal_basis: Some("迪拜土地局条例".to_string()), example: None, }, ContractField { name: "title_deed_no".to_string(), label: "产权证编号(Title Deed No.)".to_string(), field_type: FieldType::Text, required: true, description: "DLD颁发的产权证编号".to_string(), legal_basis: Some("《不动产登记法》".to_string()), example: None, }, ContractField { name: "purchase_price".to_string(), label: "成交价格(阿联酋迪拉姆)".to_string(), field_type: FieldType::Currency { currency_code: "AED".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "noc_required".to_string(), label: "是否需要NOC(无异议证明)".to_string(), field_type: FieldType::Boolean, required: true, description: "期房或有开发商管理的物业须获取NOC".to_string(), legal_basis: Some("DLD要求".to_string()), example: None, }, ], optional_fields: vec![], required_attachments: vec![ "MOU(备忘录)".to_string(), "NOC(无异议证明,开发商出具)".to_string(), "Form A(卖方委托书)".to_string(), "Form B(买方委托书)".to_string(), "Form F(最终合约)".to_string(), "护照复印件(买卖双方)".to_string(), ], special_requirements: vec![ "须在DLD完成产权转移,缴纳4%转让费".to_string(), "NOC须在交割前获取".to_string(), "须通过DLD认证的房产中介或律师".to_string(), ], applicable_taxes: vec![ "DLD转让费:4%(买方)".to_string(), "VAT:5%(商业不动产)".to_string(), "阿联酋无资本利得税、无遗产税".to_string(), ], dispute_resolution_suggestion: "适用阿联酋法律;争议提交RERA(迪拜房地产监管局)或DIAC仲裁".to_string(), language_requirements: vec!["阿拉伯文(正本)".to_string(), "英文(副本)".to_string()], } } fn us_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-US-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "US".to_string(), counterpart_jurisdiction: None, name: "美国房地产买卖合同(Purchase Agreement)".to_string(), description: "适用于美国不动产买卖,各州法律有差异,本模板基于通用原则".to_string(), legal_system: "普通法系".to_string(), required_fields: vec![ ContractField { name: "seller_name".to_string(), label: "卖方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_name".to_string(), label: "买方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "物业地址".to_string(), field_type: FieldType::Address, required: true, description: "物业完整地址,含州、县、邮编".to_string(), legal_basis: None, example: None, }, ContractField { name: "legal_description".to_string(), label: "法律描述(Legal Description)".to_string(), field_type: FieldType::Text, required: true, description: "地契上的法律描述,用于精确识别不动产".to_string(), legal_basis: Some("各州产权登记法".to_string()), example: None, }, ContractField { name: "purchase_price".to_string(), label: "成交价格(美元)".to_string(), field_type: FieldType::Currency { currency_code: "USD".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "earnest_money".to_string(), label: "诚意金(Earnest Money)".to_string(), field_type: FieldType::Currency { currency_code: "USD".to_string() }, required: true, description: "买方支付的诚意金,通常为成交价的1%-3%".to_string(), legal_basis: None, example: None, }, ContractField { name: "closing_date".to_string(), label: "交割日期(Closing Date)".to_string(), field_type: FieldType::Date, required: true, description: "完成交割的约定日期".to_string(), legal_basis: None, example: None, }, ContractField { name: "seller_is_foreign_person".to_string(), label: "卖方是否为外国人(FIRPTA)".to_string(), field_type: FieldType::Boolean, required: true, description: "用于确定是否适用FIRPTA预扣税要求".to_string(), legal_basis: Some("《外国人房地产投资税法》(FIRPTA)".to_string()), example: None, }, ], optional_fields: vec![ ContractField { name: "inspection_contingency".to_string(), label: "房屋检查条件(Inspection Contingency)".to_string(), field_type: FieldType::Boolean, required: false, description: "买方是否保留房屋检查后退出的权利".to_string(), legal_basis: None, example: None, }, ContractField { name: "financing_contingency".to_string(), label: "融资条件(Financing Contingency)".to_string(), field_type: FieldType::Boolean, required: false, description: "买方是否保留贷款未获批后退出的权利".to_string(), legal_basis: None, example: None, }, ], required_attachments: vec![ "产权保险(Title Insurance)".to_string(), "地契(Deed:Warranty Deed/Quitclaim Deed)".to_string(), "结算声明(Closing Disclosure)".to_string(), "FIRPTA证明(外资卖方)".to_string(), ], special_requirements: vec![ "须购买产权保险(Title Insurance)".to_string(), "须通过托管(Escrow)完成资金交割".to_string(), "须在县级登记处完成地契记录(Deed Recording)".to_string(), "外资卖方须遵守FIRPTA预扣15%税款".to_string(), "涉及军事基地附近须通过CFIUS审查".to_string(), ], applicable_taxes: vec![ "转让税:各州不同,约0.1%-2%".to_string(), "FIRPTA预扣税:外资卖方15%".to_string(), "资本利得税:长期20%,短期按普通所得税率".to_string(), ], dispute_resolution_suggestion: "适用物业所在州法律;争议提交所在州法院或AAA仲裁".to_string(), language_requirements: vec!["英文".to_string()], } } fn de_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-DE-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "DE".to_string(), counterpart_jurisdiction: None, name: "德国不动产买卖公证合同(Notarvertrag)".to_string(), description: "适用于德国不动产买卖,须通过公证人签署,否则合同无效(BGB §311b)".to_string(), legal_system: "大陆法系".to_string(), required_fields: vec![ ContractField { name: "verkaeufer_name".to_string(), label: "出卖人姓名/公司名称(Verkäufer)".to_string(), field_type: FieldType::Text, required: true, description: "出卖人完整法定姓名".to_string(), legal_basis: Some("BGB §311b".to_string()), example: None, }, ContractField { name: "kaeufer_name".to_string(), label: "买受人姓名/公司名称(Käufer)".to_string(), field_type: FieldType::Text, required: true, description: "买受人完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "grundbuch_info".to_string(), label: "土地登记册信息(Grundbuchinformation)".to_string(), field_type: FieldType::Text, required: true, description: "土地登记册(Grundbuch)中的地块编号和登记信息".to_string(), legal_basis: Some("《土地登记条例》(GBO)".to_string()), example: Some("Amtsgericht XXX, Grundbuch von XXX, Blatt XXX".to_string()), }, ContractField { name: "flurstueck_nr".to_string(), label: "地块编号(Flurstücknummer)".to_string(), field_type: FieldType::Text, required: true, description: "地籍图上的地块编号".to_string(), legal_basis: None, example: None, }, ContractField { name: "kaufpreis".to_string(), label: "成交价格(欧元)(Kaufpreis)".to_string(), field_type: FieldType::Currency { currency_code: "EUR".to_string() }, required: true, description: "买卖双方协商的成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "uebergabedatum".to_string(), label: "交付日期(Übergabedatum)".to_string(), field_type: FieldType::Date, required: true, description: "不动产交付日期".to_string(), legal_basis: None, example: None, }, ContractField { name: "notar_name".to_string(), label: "公证人姓名(Notar)".to_string(), field_type: FieldType::Text, required: true, description: "负责公证的公证人姓名和执照号".to_string(), legal_basis: Some("《公证人法》(BNotO)".to_string()), example: None, }, ], optional_fields: vec![], required_attachments: vec![ "土地登记摘录(Grundbuchauszug)".to_string(), "能源证书(Energieausweis)".to_string(), "土地转让税完税证明(Unbedenklichkeitsbescheinigung)".to_string(), "建筑许可证(如适用)".to_string(), ], special_requirements: vec![ "必须通过公证人(Notar)签署公证合同,否则合同无效(BGB §311b)".to_string(), "须申请预告登记(Auflassungsvormerkung)保护买方权益".to_string(), "须缴纳土地转让税(GrESt)3.5%-6.5%(各州不同)".to_string(), "须在土地登记处(Grundbuchamt)完成产权转移登记(Auflassung)".to_string(), ], applicable_taxes: vec![ "土地转让税(GrESt):3.5%-6.5%(各州不同)".to_string(), "公证费:约1%-1.5%".to_string(), "土地登记费:约0.5%".to_string(), "资本利得税:25%(持有10年以上免征)".to_string(), ], dispute_resolution_suggestion: "适用德国法律;争议提交不动产所在地法院或DIS仲裁".to_string(), language_requirements: vec!["德文(正本)".to_string()], } } fn fr_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-FR-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "FR".to_string(), counterpart_jurisdiction: None, name: "法国不动产买卖公证合同(Acte authentique de vente)".to_string(), description: "适用于法国不动产买卖,须通过公证人签署".to_string(), legal_system: "大陆法系".to_string(), required_fields: vec![ ContractField { name: "vendeur_name".to_string(), label: "出卖人姓名/公司名称(Vendeur)".to_string(), field_type: FieldType::Text, required: true, description: "出卖人完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "acquereur_name".to_string(), label: "买受人姓名/公司名称(Acquéreur)".to_string(), field_type: FieldType::Text, required: true, description: "买受人完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "adresse_bien".to_string(), label: "物业地址(Adresse du bien)".to_string(), field_type: FieldType::Address, required: true, description: "物业完整地址".to_string(), legal_basis: None, example: None, }, ContractField { name: "reference_cadastrale".to_string(), label: "地籍参考编号(Référence cadastrale)".to_string(), field_type: FieldType::Text, required: true, description: "法国地籍局的地块参考编号".to_string(), legal_basis: Some("《土地公示法》".to_string()), example: None, }, ContractField { name: "prix_vente".to_string(), label: "成交价格(欧元)(Prix de vente)".to_string(), field_type: FieldType::Currency { currency_code: "EUR".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "date_signature".to_string(), label: "签署日期".to_string(), field_type: FieldType::Date, required: true, description: "公证合同签署日期".to_string(), legal_basis: None, example: None, }, ], optional_fields: vec![], required_attachments: vec![ "预售合同(Compromis de vente)".to_string(), "诊断报告(DPE能源诊断、铅/石棉检测等)".to_string(), "产权证明文件".to_string(), "税务证明".to_string(), ], special_requirements: vec![ "必须通过公证人(Notaire)签署公证合同".to_string(), "买方享有10天冷静期(Délai de rétractation)".to_string(), "须在土地公示局完成登记".to_string(), "须缴纳注册税(Droits d'enregistrement)约5.8%(旧房)".to_string(), ], applicable_taxes: vec![ "注册税(旧房):约5.8%".to_string(), "增值税(新房):20%".to_string(), "资本利得税:30%(含社会税17.2%)".to_string(), ], dispute_resolution_suggestion: "适用法国法律;争议提交法国法院或ICC仲裁".to_string(), language_requirements: vec!["法文(正本)".to_string()], } } fn jp_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-JP-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "JP".to_string(), counterpart_jurisdiction: None, name: "日本不動産売買契約書".to_string(), description: "适用于日本不动产买卖,须通过司法书士办理登记".to_string(), legal_system: "大陆法系".to_string(), required_fields: vec![ ContractField { name: "seller_name".to_string(), label: "売主(卖方)".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_name".to_string(), label: "買主(买方)".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_location".to_string(), label: "物件の所在地(物业地址)".to_string(), field_type: FieldType::Address, required: true, description: "不动产完整地址".to_string(), legal_basis: None, example: None, }, ContractField { name: "chiban".to_string(), label: "地番(地块编号)".to_string(), field_type: FieldType::Text, required: true, description: "法务局登记的地块编号".to_string(), legal_basis: Some("《不動産登記法》".to_string()), example: None, }, ContractField { name: "sale_price".to_string(), label: "売買代金(成交价格,日元)".to_string(), field_type: FieldType::Currency { currency_code: "JPY".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "handover_date".to_string(), label: "引渡日(交付日期)".to_string(), field_type: FieldType::Date, required: true, description: "不动产交付日期".to_string(), legal_basis: None, example: None, }, ], optional_fields: vec![], required_attachments: vec![ "登記識別情報(登记识别信息)".to_string(), "印鑑証明書(印章证明)".to_string(), "固定資産評価証明書(固定资产评价证明)".to_string(), "住民票/护照".to_string(), ], special_requirements: vec![ "须委托司法书士(Judicial Scrivener)办理所有权移转登记".to_string(), "须缴纳不動産取得税(不动产取得税)4%".to_string(), "须缴纳登記免許税(登记免许税)2%(所有权移转)".to_string(), "外资须遵守外为法申报要求".to_string(), ], applicable_taxes: vec![ "不動産取得税:4%(土地3%)".to_string(), "登記免許税:2%(所有权移转)".to_string(), "印紙税:按合同金额".to_string(), "固定資産税:1.4%/年".to_string(), ], dispute_resolution_suggestion: "适用日本法律;争议提交日本法院或JCAA仲裁".to_string(), language_requirements: vec!["日文(正本)".to_string()], } } fn kr_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-KR-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "KR".to_string(), counterpart_jurisdiction: None, name: "한국 부동산 매매계약서(韩国不动产买卖合同)".to_string(), description: "适用于韩国不动产买卖".to_string(), legal_system: "大陆法系".to_string(), required_fields: vec![ ContractField { name: "seller_name".to_string(), label: "매도인(卖方)".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_name".to_string(), label: "매수인(买方)".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "부동산 소재지(物业地址)".to_string(), field_type: FieldType::Address, required: true, description: "不动产完整地址".to_string(), legal_basis: None, example: None, }, ContractField { name: "sale_price".to_string(), label: "매매대금(成交价格,韩元)".to_string(), field_type: FieldType::Currency { currency_code: "KRW".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_is_foreigner".to_string(), label: "외국인 여부(买方是否为外国人)".to_string(), field_type: FieldType::Boolean, required: true, description: "用于确定外国人土地取得申报要求".to_string(), legal_basis: Some("《외국인토지법》(外国人土地法)".to_string()), example: None, }, ], optional_fields: vec![], required_attachments: vec![ "등기권리증(登记权利证)".to_string(), "인감증명서(印章证明)".to_string(), "외국인토지취득신고서(外国人土地取得申报书,外资)".to_string(), ], special_requirements: vec![ "外资须向土地管理事务所提交外国人土地取得申报".to_string(), "须缴纳취득세(取得税)1%-4%".to_string(), "须在登记所完成所有权移转登记".to_string(), ], applicable_taxes: vec![ "취득세(取得税):1%-4%".to_string(), "양도소득세(转让所得税):最高45%(短期持有)".to_string(), "부가가치세(增值税):10%(商业不动产)".to_string(), ], dispute_resolution_suggestion: "适用韩国法律;争议提交韩国法院或KCAB仲裁".to_string(), language_requirements: vec!["韩文(正本)".to_string()], } } fn au_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-AU-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "AU".to_string(), counterpart_jurisdiction: None, name: "澳大利亚房产买卖合同(Contract of Sale)".to_string(), description: "适用于澳大利亚不动产买卖,各州合同格式略有不同".to_string(), legal_system: "普通法系".to_string(), required_fields: vec![ ContractField { name: "vendor_name".to_string(), label: "卖方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "purchaser_name".to_string(), label: "买方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "物业地址".to_string(), field_type: FieldType::Address, required: true, description: "物业完整地址,含州、邮编".to_string(), legal_basis: None, example: None, }, ContractField { name: "title_reference".to_string(), label: "地契参考号(Title Reference)".to_string(), field_type: FieldType::Text, required: true, description: "州土地产权局的地契参考号".to_string(), legal_basis: Some("《托伦斯土地所有权法》".to_string()), example: None, }, ContractField { name: "purchase_price".to_string(), label: "成交价格(澳元)".to_string(), field_type: FieldType::Currency { currency_code: "AUD".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_is_foreign_person".to_string(), label: "买方是否为外国人(FIRB)".to_string(), field_type: FieldType::Boolean, required: true, description: "用于确定是否需要FIRB批准".to_string(), legal_basis: Some("《外国收购和接管法》(FATA)".to_string()), example: None, }, ContractField { name: "settlement_date".to_string(), label: "交割日期(Settlement Date)".to_string(), field_type: FieldType::Date, required: true, description: "完成交割的约定日期".to_string(), legal_basis: None, example: None, }, ], optional_fields: vec![], required_attachments: vec![ "FIRB批准函(外资买家)".to_string(), "印花税缴纳证明".to_string(), "产权转移文件(Transfer of Land)".to_string(), ], special_requirements: vec![ "外资须事先获得FIRB批准".to_string(), "须缴纳印花税(各州不同)".to_string(), "外资须缴纳外资附加印花税(各州7%-8%)".to_string(), "须在州土地产权局完成产权转移登记".to_string(), ], applicable_taxes: vec![ "印花税:各州3%-5.5%".to_string(), "外资附加印花税:各州7%-8%".to_string(), "资本利得税:最高45%(持有1年以上享50%折扣)".to_string(), "GST:10%(新建住宅)".to_string(), ], dispute_resolution_suggestion: "适用物业所在州法律;争议提交州法院或ACICA仲裁".to_string(), language_requirements: vec!["英文".to_string()], } } fn gb_real_estate_template() -> ContractTemplate { ContractTemplate { template_id: "RE-GB-001".to_string(), template_type: ContractTemplateType::RealEstateSale, jurisdiction: "GB".to_string(), counterpart_jurisdiction: None, name: "英国房产买卖合同(Contract for Sale)".to_string(), description: "适用于英格兰和威尔士不动产买卖".to_string(), legal_system: "普通法系".to_string(), required_fields: vec![ ContractField { name: "seller_name".to_string(), label: "卖方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "卖方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_name".to_string(), label: "买方姓名/公司名称".to_string(), field_type: FieldType::Text, required: true, description: "买方完整法定姓名".to_string(), legal_basis: None, example: None, }, ContractField { name: "property_address".to_string(), label: "物业地址".to_string(), field_type: FieldType::Address, required: true, description: "物业完整地址,含邮编".to_string(), legal_basis: None, example: None, }, ContractField { name: "title_number".to_string(), label: "产权编号(Title Number)".to_string(), field_type: FieldType::Text, required: true, description: "HM Land Registry的产权编号".to_string(), legal_basis: Some("《土地登记法》2002".to_string()), example: None, }, ContractField { name: "purchase_price".to_string(), label: "成交价格(英镑)".to_string(), field_type: FieldType::Currency { currency_code: "GBP".to_string() }, required: true, description: "成交价格".to_string(), legal_basis: None, example: None, }, ContractField { name: "buyer_is_overseas_entity".to_string(), label: "买方是否为海外实体(ROE)".to_string(), field_type: FieldType::Boolean, required: true, description: "用于确定是否需要在海外实体登记册(ROE)登记".to_string(), legal_basis: Some("《经济犯罪(透明度和执法)法》2022".to_string()), example: None, }, ContractField { name: "completion_date".to_string(), label: "完成日期(Completion Date)".to_string(), field_type: FieldType::Date, required: true, description: "完成交割的约定日期".to_string(), legal_basis: None, example: None, }, ], optional_fields: vec![], required_attachments: vec![ "产权文件(Official Copies from HMLR)".to_string(), "SDLT申报表(SDLT1)".to_string(), "转让契约(TR1 Transfer Deed)".to_string(), "海外实体登记证明(海外实体买家)".to_string(), ], special_requirements: vec![ "须在30天内缴纳印花税土地税(SDLT)".to_string(), "海外实体须在ROE登记并披露最终受益所有人(UBO)".to_string(), "须在HM Land Registry完成产权登记".to_string(), "须通过持牌律师完成交割".to_string(), ], applicable_taxes: vec![ "印花税土地税(SDLT):住宅最高12%".to_string(), "海外买家附加税:2%".to_string(), "资本利得税(CGT):不动产24%(2024年起)".to_string(), "增值税(VAT):20%(商业不动产)".to_string(), ], dispute_resolution_suggestion: "适用英格兰和威尔士法律;争议提交高等法院或LCIA仲裁".to_string(), language_requirements: vec!["英文".to_string()], } }