Esempio n. 1
0
        /// <summary>
        /// Конструктор, использующийся для инициализации WebMoneyAccessor ключом Keeper Classic
        /// </summary>
        public WebMoneyAccessor()
        {
            var wmAccountDictionary = WebMoneyUtil.Instance.GetWmAccountSettings();

            if (wmAccountDictionary == null)
            {
                Logger.Error("WebMoneyAccessor() - не удалось прочитать необходимые для инициализировать WebMoney параметры (wmId, purseNumber и др.)");
                return;
            }

            keeperKeyValue    = wmAccountDictionary["WmKeeperKeyValue"].ToString();
            targetPurseNumber = (ulong)wmAccountDictionary["WmTargetPurseNumber"];
            wmId = (WmId)(ulong)wmAccountDictionary["WmId"];
            var targetPurseType = WebMoneyUtil.StrToCurrency(wmAccountDictionary["WmPurseCurrency"].ToString());

            purse = new Purse
            {
                Number = targetPurseNumber,
                Type   = targetPurseType
            };

            var keeperKey = new KeeperKey(keeperKeyValue);

            initializer = new Initializer(wmId, keeperKey)
            {
                StartDate = new DateTime(1983, 1, 1).ToUniversalTime()
            };
            initializer.Apply();

            wmServerTimeDifference = (WmDateTime.ServerTime2UtcTime(DateTime.Now).Hour - DateTime.Now.ToUniversalTime().Hour);
        }
Esempio n. 2
0
 public OriginalInvoice(uint orderId, WmId sourceWmId, Purse targetPurse, Amount amount)
 {
     OrderId     = orderId;
     SourceWmId  = sourceWmId;
     TargetPurse = targetPurse;
     Amount      = amount;
 }
        public OriginalPurse(WmId wmId, WmCurrency purseType, Description description)
        {
            if (string.IsNullOrEmpty(description))
            {
                throw new ArgumentNullException(nameof(description));
            }

            WmId        = wmId;
            PurseType   = purseType;
            Description = description;
        }
Esempio n. 4
0
        public OriginalMessage(WmId wmId, Description subject, Message content)
        {
            if (string.IsNullOrEmpty(content))
            {
                throw new ArgumentNullException(nameof(content));
            }

            WmId    = wmId;
            Subject = subject;
            Content = content;
        }
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

            xmlRequestBuilder.WriteStartElement("invoicerefuse"); // <invoicerefuse>

            xmlRequestBuilder.WriteElement("wmid", WmId.ToString());
            xmlRequestBuilder.WriteElement("wminvid", InvoiceId);

            xmlRequestBuilder.WriteEndElement(); // </invoicerefuse>
        }
Esempio n. 6
0
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

            xmlRequestBuilder.WriteStartElement("testsign"); // <testsign>

            xmlRequestBuilder.WriteElement("wmid", WmId.ToString());
            xmlRequestBuilder.WriteElement("plan", Message);
            xmlRequestBuilder.WriteElement("sign", Signature);

            xmlRequestBuilder.WriteEndElement(); // </testsign>
        }
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

            xmlRequestBuilder.WriteStartElement("createpurse"); // <createpurse>

            xmlRequestBuilder.WriteElement("wmid", WmId.ToString());
            xmlRequestBuilder.WriteElement("pursetype", Purse.CurrencyToLetter(PurseType).ToString());
            xmlRequestBuilder.WriteElement("desc", Description);

            xmlRequestBuilder.WriteEndElement(); // </createpurse>
        }
Esempio n. 8
0
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

            xmlRequestBuilder.WriteStartElement("message"); // <message>

            xmlRequestBuilder.WriteElement("receiverwmid", WmId.ToString());
            xmlRequestBuilder.WriteElement("msgsubj", Subject);
            xmlRequestBuilder.WriteElement("msgtext", Content);

            xmlRequestBuilder.WriteEndElement(); // </message>
        }
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

            xmlRequestBuilder.WriteStartElement("getininvoices"); // <getininvoices>

            xmlRequestBuilder.WriteElement("wmid", WmId.ToString());
            xmlRequestBuilder.WriteElement("wminvid", InvoiceId);
            xmlRequestBuilder.WriteElement("datestart", StartTime.ToServerString());
            xmlRequestBuilder.WriteElement("datefinish", FinishTime.ToServerString());

            xmlRequestBuilder.WriteEndElement(); // </getininvoices>
        }
Esempio n. 10
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="wmId">WM-identifier of the client to be authenticated.</param>
        /// <param name="message">The line that the client must have signed.</param>
        /// <param name="signature">Line signature passed in the testsign\plan parameter, generated by the client to be authenticated.</param>
        public SignatureInspector(WmId wmId, Message message, Description signature)
        {
            if (string.IsNullOrEmpty(message))
            {
                throw new ArgumentNullException(nameof(message));
            }

            if (string.IsNullOrEmpty(signature))
            {
                throw new ArgumentNullException(nameof(signature));
            }

            WmId      = wmId;
            Message   = message;
            Signature = signature;
        }
Esempio n. 11
0
        public WmId SelectWmId(string xPath)
        {
            if (string.IsNullOrEmpty(xPath))
            {
                throw new ArgumentNullException(nameof(xPath));
            }

            string text = SelectNotEmptyString(xPath);
            WmId   wmId;

            if (!WmId.TryParse(text, out wmId))
            {
                throw new FormatException(string.Format(CultureInfo.InvariantCulture,
                                                        "The value of the element '{0}' is not in a correct format.",
                                                        xPath));
            }

            return(wmId);
        }
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

            xmlRequestBuilder.WriteStartElement("testwmpurse"); // <testwmpurse>

            if (WmId.HasValue)
            {
                xmlRequestBuilder.WriteElement("wmid", WmId.ToString());
            }

            if (Purse.HasValue)
            {
                xmlRequestBuilder.WriteElement("purse", Purse.ToString());
            }

            xmlRequestBuilder.WriteEndElement(); // </testwmpurse>
        }
Esempio n. 13
0
        internal override void Fill(WmXmlPackage wmXmlPackage)
        {
            if (null == wmXmlPackage)
            {
                throw new ArgumentNullException(nameof(wmXmlPackage));
            }

            PrimaryId    = wmXmlPackage.SelectInt64("invoice/@id");
            SecondaryId  = wmXmlPackage.SelectInt64("invoice/@ts");
            OrderId      = wmXmlPackage.SelectInt32("invoice/orderid");
            SourceWmId   = wmXmlPackage.SelectWmId("invoice/customerwmid");
            TargetPurse  = wmXmlPackage.SelectPurse("invoice/storepurse");
            Amount       = wmXmlPackage.SelectAmount("invoice/amount");
            Description  = (Description)wmXmlPackage.SelectString("invoice/desc");
            Address      = (Description)wmXmlPackage.SelectString("invoice/address");
            Period       = wmXmlPackage.SelectUInt8("invoice/period");
            Expiration   = wmXmlPackage.SelectUInt8("invoice/expiration");
            InvoiceState = (InvoiceState)wmXmlPackage.SelectInt32("invoice/state");
            CreateTime   = wmXmlPackage.SelectWmDateTime("invoice/datecrt");
            UpdateTime   = wmXmlPackage.SelectWmDateTime("invoice/dateupd");
        }
Esempio n. 14
0
        public WmId?SelectWmIdIfExists(string xPath)
        {
            if (string.IsNullOrEmpty(xPath))
            {
                throw new ArgumentNullException(nameof(xPath));
            }

            string text = TrySelectNotEmptyString(xPath);

            if (null == text)
            {
                return(null);
            }

            if (!WmId.TryParse(text, out var wmId))
            {
                throw new FormatException(string.Format(CultureInfo.InvariantCulture,
                                                        "The value '{0}' of the element '{1}' is not in a correct format.", text, xPath));
            }

            return(wmId);
        }
Esempio n. 15
0
        public ExpressPaymentRequest(
            Purse storePurse,
            uint orderId,
            Amount amount,
            Description description,
            WmId clientWmId,
            ConfirmationType confirmationType,
            CultureInfo culture = null)
        {
            if (null == culture)
            {
                culture = Thread.CurrentThread.CurrentUICulture;
            }

            StorePurse       = storePurse;
            OrderId          = orderId;
            Amount           = amount;
            Description      = description;
            ClientWmId       = clientWmId;
            ClientIdType     = ClientIdType.WmId;
            ConfirmationType = confirmationType;
            Culture          = culture;
        }
        public ExpressTrustRequest(
            Purse storePurse,
            Amount dayLimit,
            Amount weekLimit,
            Amount monthLimit,
            WmId clientWmId,
            ConfirmationType confirmationType,
            CultureInfo culture = null)
        {
            if (null == culture)
            {
                culture = Thread.CurrentThread.CurrentUICulture;
            }

            StorePurse       = storePurse;
            DayLimit         = dayLimit;
            WeekLimit        = weekLimit;
            MonthLimit       = monthLimit;
            ClientWmId       = clientWmId;
            ClientIdType     = ClientIdType.WmId;
            ConfirmationType = confirmationType;
            Culture          = culture;
        }
Esempio n. 17
0
        public NuWmTransfer(decimal amount, DateTime createTime, string description, uint id, Purse targetPurse,
                uint ts, DateTime updateTime, decimal commission, uint invoiceId, bool isLocked, uint orderId,
                WmId partner, byte period, decimal rest, Purse sourcePurse, uint transferId, TransferType transferType)
        {
            Amount = (Amount) amount;
                CreateTime = createTime;
                Description = (Description)description;
                Id = id;
                TargetPurse = targetPurse;
                Ts = ts;
                UpdateTime = updateTime;

                Commission = (Amount)commission;
                InvoiceId = invoiceId;
                IsLocked = isLocked;
                OrderId = orderId;
                Partner = partner;
                Period = period;
                Rest = (Amount)rest;
                SourcePurse = sourcePurse;
                TransferId = transferId;
                TransferType = transferType;
        }
Esempio n. 18
0
        public NuWmTransfer(decimal amount, DateTime createTime, string description, uint id, Purse targetPurse,
                            uint ts, DateTime updateTime, decimal commission, uint invoiceId, bool isLocked, uint orderId,
                            WmId partner, byte period, decimal rest, Purse sourcePurse, uint transferId, TransferType transferType)
        {
            Amount      = (Amount)amount;
            CreateTime  = createTime;
            Description = (Description)description;
            Id          = id;
            TargetPurse = targetPurse;
            Ts          = ts;
            UpdateTime  = updateTime;


            Commission   = (Amount)commission;
            InvoiceId    = invoiceId;
            IsLocked     = isLocked;
            OrderId      = orderId;
            Partner      = partner;
            Period       = period;
            Rest         = (Amount)rest;
            SourcePurse  = sourcePurse;
            TransferId   = transferId;
            TransferType = transferType;
        }
 public WmExchangerVendor()
 {
     wmid        = WmId.Parse("320508520783");
     key         = new KeeperKey("<RSAKeyValue><Modulus>pV4KSuF3Tb7KrHeB+Mng4tRp14nw1HjuM/pBqa/YikNM7HBtwJaL9hUE5nZrcge8qjVU60jJyzPTPxEaenverjUM</Modulus><D>5bBcUTgYAzswW48F4eV6QpmscTKTBYvxasFem+NM+mlR2de+G5BO387ziYab09BtUypQKVYbJL9bewyqDqNufd8E</D></RSAKeyValue>");
     initializer = new Initializer(wmid, key);
 }
 public ClaimsObtainer(WmId wmId)
 {
     WmId = wmId;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="wmId">WM-identifier, for which trust list must be retrieved.</param>
 public IncomingTrustFilter(WmId wmId)
 {
     WmId = wmId;
 }
        public ITrustConfirmationInstruction RequestTrust(IOriginalExpressTrust originalExpressTrust)
        {
            if (null == originalExpressTrust)
            {
                throw new ArgumentNullException(nameof(originalExpressTrust));
            }

            XmlInterfaces.BasicObjects.ConfirmationType confirmationType =
                ConvertFrom.ContractTypeToApiType(originalExpressTrust.ConfirmationType);

            ExpressTrustRequest request;

            switch (originalExpressTrust.Identifier.Type)
            {
            case ExtendedIdentifierType.Phone:
                var phone = originalExpressTrust.Identifier.Value;

                if (!phone.StartsWith("+"))
                {
                    phone = $"+{phone}";
                }

                request = new ExpressTrustRequest(Purse.Parse(originalExpressTrust.StorePurse),
                                                  (Amount)originalExpressTrust.DayLimit, (Amount)originalExpressTrust.WeekLimit,
                                                  (Amount)originalExpressTrust.MonthLimit, Phone.Parse(phone),
                                                  confirmationType);
                break;

            case ExtendedIdentifierType.WmId:
                request = new ExpressTrustRequest(Purse.Parse(originalExpressTrust.StorePurse),
                                                  (Amount)originalExpressTrust.DayLimit, (Amount)originalExpressTrust.WeekLimit,
                                                  (Amount)originalExpressTrust.MonthLimit, WmId.Parse(originalExpressTrust.Identifier.Value),
                                                  confirmationType);
                break;

            case ExtendedIdentifierType.Email:
                MailAddress mailAddress = new MailAddress(originalExpressTrust.Identifier.Value);

                request = new ExpressTrustRequest(Purse.Parse(originalExpressTrust.StorePurse),
                                                  (Amount)originalExpressTrust.DayLimit, (Amount)originalExpressTrust.WeekLimit,
                                                  (Amount)originalExpressTrust.MonthLimit, mailAddress,
                                                  confirmationType);
                break;

            case ExtendedIdentifierType.Purse:
                request = new ExpressTrustRequest(Purse.Parse(originalExpressTrust.StorePurse),
                                                  (Amount)originalExpressTrust.DayLimit, (Amount)originalExpressTrust.WeekLimit,
                                                  (Amount)originalExpressTrust.MonthLimit, Purse.Parse(originalExpressTrust.Identifier.Value),
                                                  confirmationType);
                break;

            default:
                throw new InvalidOperationException("originalExpressTrust.Identifier.Type == " +
                                                    originalExpressTrust.Identifier.Type);
            }

            request.DayLimit   = (Amount)originalExpressTrust.DayLimit;
            request.WeekLimit  = (Amount)originalExpressTrust.WeekLimit;
            request.MonthLimit = (Amount)originalExpressTrust.MonthLimit;

            request.Initializer = Session.AuthenticationService.ObtainInitializer();

            ExpressTrustResponse response;

            try
            {
                response = request.Submit();
            }
            catch (WmException exception)
            {
                throw new ExternalServiceException(exception.Message, exception);
            }

            var instruction = new TrustConfirmationInstruction(response.Reference,
                                                               ConvertFrom.ApiTypeToContractType(response.ConfirmationType), response.Info, response.SmsReference);

            return(instruction);
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="master">WM-identifier whom slavewmid allows/disallows (depending on the attributes in the trust tag) by this request to control his/her slavepurse.</param>
 /// <param name="purse">Purse number, which belongs to slavewmid for which trust setting are applied, the essence of which is defined by the trust tag attributes.</param>
 public OriginalTrust(WmId master, Purse purse)
 {
     Master = master;
     Purse  = purse;
 }
 /// <summary>
 /// WM identifier to search.
 /// </summary>
 /// <param name="wmId"></param>
 public WmIdFinder(WmId wmId)
 {
     WmId = wmId;
 }
 public IncomingInvoiceFilter(WmId wmId, WmDateTime startTime, WmDateTime finishTime)
 {
     WmId       = wmId;
     StartTime  = startTime;
     FinishTime = finishTime;
 }
 public PurseInfoFilter(WmId wmId)
 {
     WmId = wmId;
 }
 public BLObtainer(WmId wmId)
 {
     WmId = wmId;
 }
 public InvoiceRefusal(WmId wmId, uint invoiceId)
 {
     WmId      = wmId;
     InvoiceId = invoiceId;
 }
 public PassportFinder(WmId wmId)
 {
     WmId = wmId;
 }
        protected override void Fill(WmXmlPackage wmXmlPackage)
        {
            if (null == wmXmlPackage)
            {
                throw new ArgumentNullException(nameof(wmXmlPackage));
            }

            WmId = wmXmlPackage.SelectWmId("certinfo/@wmid");

            // attestat
            Degree      = (PassportDegree)wmXmlPackage.SelectInt32("certinfo/attestat/row/@tid");
            Revoked     = wmXmlPackage.SelectBool("certinfo/attestat/row/@recalled");
            CreateTime  = wmXmlPackage.SelectWmDateTime("certinfo/attestat/row/@datecrt");
            IssuerId    = wmXmlPackage.SelectWmId("certinfo/attestat/row/@regwmid");
            IssuerAlias = wmXmlPackage.SelectString("certinfo/attestat/row/@regnickname");

            WmIdInfoList = new List <WmIdInfo>();

            var packageList = wmXmlPackage.SelectList("certinfo/wmids/row");

            foreach (var innerPackage in packageList)
            {
                var wmIdInfo = new WmIdInfo();
                wmIdInfo.Fill(new WmXmlPackage(innerPackage));

                WmIdInfoList.Add(wmIdInfo);
            }

            // userinfo
            Status      = (PassportStatus)wmXmlPackage.SelectInt32("certinfo/userinfo/value/row/@ctype");
            Appointment = (PassportAppointment)wmXmlPackage.SelectInt32("certinfo/userinfo/value/row/@jstatus");

            Basis       = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@osnovainfo");
            Alias       = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@nickname");
            Information = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@infoopen");
            City        = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@city");
            Region      = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@region");
            Country     = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@country");
            ZipCode     = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@zipcode");
            Address     = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@adres");
            Surname     = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@fname");
            FirstName   = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@iname");
            Patronymic  = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@oname");

            // Passport
            PassportNumber = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@pnomer");

            WmDate passportDate;

            if (WmDate.TryParse(wmXmlPackage.SelectString("certinfo/userinfo/value/row/@pdate"),
                                out passportDate))
            {
                PassportDate = passportDate;
            }

            PassportCountry     = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@pcountry");
            PassportCity        = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@pcity");
            PassportIssuer      = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@pbywhom");
            RegistrationCountry = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@rcountry");
            RegistrationCity    = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@rcity");
            RegistrationAddress = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@radres");

            // Birthplace and birthday
            Birthplace = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@bplace");

            if (!string.IsNullOrEmpty(wmXmlPackage.SelectString("certinfo/userinfo/value/row/@bday")) &&
                !string.IsNullOrEmpty(wmXmlPackage.SelectString("certinfo/userinfo/value/row/@bmonth")) &&
                !string.IsNullOrEmpty(wmXmlPackage.SelectString("certinfo/userinfo/value/row/@byear")))
            {
                int birthDay   = wmXmlPackage.SelectInt32("certinfo/userinfo/value/row/@bday");
                int birthMonth = wmXmlPackage.SelectInt32("certinfo/userinfo/value/row/@bmonth");
                int birthYear  = wmXmlPackage.SelectInt32("certinfo/userinfo/value/row/@byear");

                Birthday = (WmDate) new DateTime(birthYear, birthMonth, birthDay);
            }

            // Organization
            OrganizationName                 = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@name");
            OrganizationManager              = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@dirfio");
            OrganizationAccountant           = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@buhfio");
            OrganizationTaxId                = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@inn");
            OrganizationId                   = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@okpo");
            OrganizationActivityId           = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@okonx");
            OrganizationAddress              = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@jadres");
            OrganizationCountry              = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@jcountry");
            OrganizationCity                 = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@jcity");
            OrganizationZipCode              = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@jzipcode");
            OrganizationBankName             = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@bankname");
            OrganizationBankId               = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@bik");
            OrganizationCorrespondentAccount = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@ks");
            OrganizationAccount              = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@rs");

            // Contacts
            HomePhone    = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@phonehome");
            CellPhone    = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@phonemobile");
            ICQ          = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@icq");
            Fax          = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@fax");
            EMail        = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@email");
            WebAddress   = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@web");
            ContactPhone = wmXmlPackage.SelectString("certinfo/userinfo/value/row/@phone");

            WmId capitallerParent;

            if (WmId.TryParse(wmXmlPackage.SelectString("certinfo/userinfo/value/row/@cap_owner"),
                              out capitallerParent))
            {
                CapitallerParent = capitallerParent;
            }

            if (wmXmlPackage.Exists("certinfo/userinfo/value/row/@pasdoc"))
            {
                PassportInspection = wmXmlPackage.SelectBool("certinfo/userinfo/value/row/@pasdoc");
            }

            if (wmXmlPackage.Exists("certinfo/userinfo/value/row/@inndoc"))
            {
                TaxInspection = wmXmlPackage.SelectBool("certinfo/userinfo/value/row/@inndoc");
            }

            StatusConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                        "certinfo/userinfo/check-lock/row/@jstatus");
            BasisConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                       "certinfo/userinfo/check-lock/row/@osnovainfo");
            AliasConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                       "certinfo/userinfo/check-lock/row/@nickname");
            InformationConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                             "certinfo/userinfo/check-lock/row/@infoopen");
            CityConfirmation    = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@city");
            RegionConfirmation  = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@region");
            CountryConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                         "certinfo/userinfo/check-lock/row/@country");
            ZipCodeConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                         "certinfo/userinfo/check-lock/row/@zipcode");
            AddressConfirmation   = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@adres");
            SurnameConfirmation   = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@fname");
            FirstNameConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                           "certinfo/userinfo/check-lock/row/@iname");
            PatronymicConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                            "certinfo/userinfo/check-lock/row/@oname");

            // Passport confirmation
            PassportNumberConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                "certinfo/userinfo/check-lock/row/@pnomer");
            PassportDateConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                              "certinfo/userinfo/check-lock/row/@pdate");
            PassportCountryConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                 "certinfo/userinfo/check-lock/row/@pcountry");
            PassportCityConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                              "certinfo/userinfo/check-lock/row/@pcity");
            PassportIssuerConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                "certinfo/userinfo/check-lock/row/@pbywhom");
            RegistrationCountryConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@rcountry");
            RegistrationCityConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                  "certinfo/userinfo/check-lock/row/@rcity");
            RegistrationAddressConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@radres");

            // Birthplace and birthday confirmation
            BirthplaceConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                            "certinfo/userinfo/check-lock/row/@bplace");
            BirthdayConfirmation = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@bday");

            // Organization confirmation
            OrganizationNameConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                  "certinfo/userinfo/check-lock/row/@name");
            OrganizationManagerConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@dirfio");
            OrganizationAccountantConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                        "certinfo/userinfo/check-lock/row/@buhfio");
            OrganizationTaxIdConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                   "certinfo/userinfo/check-lock/row/@inn");
            OrganizationIdConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                "certinfo/userinfo/check-lock/row/@okpo");
            OrganizationActivityIdConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                        "certinfo/userinfo/check-lock/row/@okonx");
            OrganizationAddressConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@jadres");
            OrganizationCountryConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@jcountry");
            OrganizationCityConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                  "certinfo/userinfo/check-lock/row/@jcity");
            OrganizationZipCodeConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@jzipcode");
            OrganizationBankNameConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                      "certinfo/userinfo/check-lock/row/@bankname");
            OrganizationBankIdConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                    "certinfo/userinfo/check-lock/row/@bik");
            OrganizationCorrespondentAccountConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                                  "certinfo/userinfo/check-lock/row/@ks");
            OrganizationAccountConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                                     "certinfo/userinfo/check-lock/row/@rs");

            // Contacts confirmation
            HomePhoneConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                           "certinfo/userinfo/check-lock/row/@phonehome");
            CellPhoneConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                           "certinfo/userinfo/check-lock/row/@phonemobile");
            ICQConfirmation        = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@icq");
            FaxConfirmation        = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@fax");
            EMailConfirmation      = selectConfirmationFlag(wmXmlPackage, "certinfo/userinfo/check-lock/row/@email");
            WebAddressConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                            "certinfo/userinfo/check-lock/row/@web");
            ContactPhoneConfirmation = selectConfirmationFlag(wmXmlPackage,
                                                              "certinfo/userinfo/check-lock/row/@phone");
        }
Esempio n. 31
0
 public OutgoingTrustFilter(WmId wmId)
 {
     WmId = wmId;
 }
Esempio n. 32
-1
        public WebMoneyManager(MembershipUser u, string wmId, string targetPurse)
            : this(u)
        {
            if (!String.IsNullOrEmpty(wmId))
            {
                WmId? id = WmId.TryParse(wmId);
                if (!id.HasValue)
                {
                    throw new ArgumentException();
                }

                m_TargetWmId = id.Value;
            }

            if (!String.IsNullOrEmpty(targetPurse))
            {
                Purse? p = Purse.TryParse(targetPurse);
                if (!p.HasValue)
                {
                    throw new ArgumentException();
                }

                m_TargePurse = p.Value;
            }
        }