Ejemplo n.º 1
0
        /// <summary>
        /// Creates a FilingParty from a strongly typed Pria Respond to Party
        /// </summary>
        /// <returns>A FilingParty Object</returns>
        internal static FilingParty FromPriaRespondToParty(PRIALibraryV24.PRIA_RESPOND_TO_PARTY_Type g)
        {
            FilingParty p = new FilingParty();

            p.Address1   = g._StreetAddress;
            p.Address2   = g._StreetAddress2;
            p.City       = g._City;
            p.PostalCode = g._PostalCode;
            p.State      = g._State;
            p.Name       = g._Name;


            return(p);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves a pending Real estate package from the GSCCCA eFiling system.
        /// </summary>
        /// <param name="gscccaID">The GSCCCAID of the package being requested.</param>
        /// <returns>A Package object that contains infromation about the pending filings including document images.  If the package
        /// could not be retrieved or does not exist, a NULL Package Object is returned.  Check the Status property of the FilingHandler
        /// and the RawXMLResponse Property for more information</returns>
        public Package GetPendingPackage(Guid gscccaID)
        {
            //reset variables
            clearStatus();
            this.rawrequest = "<getPendingPackage>" + gscccaID.ToString() + "</getPendingPackage>";

            //make the request and record the reponse
            string xml = PRIAGetPendingPackage(gscccaID.ToString());

            this.rawresponse = xml;

            //process the response.
            Package p          = null;
            bool    responseOK = processResponse(xml, "RECEIVED");

            if (responseOK)
            {
                PRIA_RESPONSE_GROUP_Type response = createPriaResponse(xml);
                if (response.RESPONSE[0].RESPONSE_DATA != null &&
                    response.RESPONSE[0].RESPONSE_DATA.Count > 0 &&
                    response.RESPONSE[0].RESPONSE_DATA[0] != null &&
                    response.RESPONSE[0].RESPONSE_DATA[0].PACKAGE != null)
                {
                    p = Package.FromPriaPackage(response.RESPONSE[0].RESPONSE_DATA[0].PACKAGE);
                    if (p == null)
                    {
                        this.status = "Error in response package.  Please check the xml that was returned";
                    }
                    else
                    {
                        //set the filer informatoin
                        if (response.RESPOND_TO_PARTY != null)
                        {
                            FilingParty filer = FilingParty.FromPriaRespondToParty(response.RESPOND_TO_PARTY);
                            p.OriginalFiler = filer;
                        }
                    }
                }
                else
                {
                    this.status = "Error in response package.  Please check the xml that was returned";
                }
            }

            return(p);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a FilingParty from a strongly typed Pria Grantee
        /// </summary>
        /// <returns>A FilingParty Object</returns>
        internal static FilingParty FromPriaGrantee(PRIALibraryV24.PRIA_GRANTEE_Type g)
        {
            FilingParty p = new FilingParty();

            p.Address1   = g._StreetAddress;
            p.Address2   = g._StreetAddress2;
            p.City       = g._City;
            p.Identifier = g._ID;
            p.PostalCode = g._PostalCode;
            p.State      = g._State;
            p.Name       = g._UnparsedName;

            if (!string.IsNullOrEmpty(g.NonPersonEntityIndicator) && g.NonPersonEntityIndicator.ToUpper() == "Y")
            {
                p.nonPersonEntity = true;
            }

            return(p);
        }