Esempio n. 1
0
 public TitleInsuranceRequestCommand(TitleInsuranceRequest titleInsuranceRequest, FirstTitleCredential firstTitleCredential)
 {
     TitleInsuranceRequest = titleInsuranceRequest;
     FirstTitleCredential  = firstTitleCredential;
 }
Esempio n. 2
0
        public TitleInsuranceRequest MapToFirstTitleInsuranceRequest(FTActionstepMatter wCAMatter, RequestPolicyOptions options)
        {
            var result = new TitleInsuranceRequest()
            {
                Identifier = new Identifier()
                {
                    UniqueID = Guid.NewGuid().ToString()
                },
                Application = new Application()
                {
                    Identifier = new Identifier[] { new Identifier()
                                                    {
                                                        UniqueID = Guid.NewGuid().ToString()
                                                    } }
                },
                TitleInsuranceSegment = new TitleInsuranceSegment()
            };

            var financialSegments = new ValueItem[1];

            financialSegments[0] = new ValueItem()
            {
                Identifier = new Identifier[] { new Identifier()
                                                {
                                                    UniqueID = Guid.NewGuid().ToString()
                                                } },
                Asset = new Asset()
                {
                    RealEstate = new RealEstate()
                    {
                        Location = new Location()
                    }
                }
            };

            if (wCAMatter.Title.TitleInfoType == TitleInfoType.Reference)
            {
                financialSegments[0].Asset.RealEstate.Location.Title = new Title()
                {
                    TorrensTitleRef  = wCAMatter.Title.TitleReference,
                    LegalDescription = wCAMatter.Title.LegalDescription,
                    TitleType        = TitleTitleType.Torrens,
                    TenureType       = TitleTenureType.Freehold
                };
            }
            else
            {
                financialSegments[0].Asset.RealEstate.Location.Title = new Title()
                {
                    TorrensVolume    = wCAMatter.Title.TitleVolume,
                    TorrensFolio     = wCAMatter.Title.TitleFolio,
                    LegalDescription = wCAMatter.Title.LegalDescription,
                    TitleType        = TitleTitleType.Torrens,
                    TenureType       = TitleTenureType.Freehold
                };
            }

            // PropertyAddress
            // - StreetNo
            // - StreetName
            // - StreetType
            // - City
            // - PostCode
            // - Country
            var sourcePropertyAddress = wCAMatter.SourceProperty;

            if (!(sourcePropertyAddress is null))
            {
                financialSegments[0].Asset.RealEstate.Location.Item = new Address();

                ConvertAddress(sourcePropertyAddress, financialSegments[0].Asset.RealEstate.Location.Item as Address);
            }