public void FromModifiedXml(ModifiedXmlDocument doc, string path) { PaymentProductId = doc.GetNullableLongFromXml(path + "/GENERAL/PAYMENTPRODUCTID"); CountryCode = doc.TryGetStringFromXml(path + "/GENERAL/COUNTRYCODE"); CurrencyCode = doc.TryGetStringFromXml(path + "/GENERAL/CURRENCYCODE"); LanguageCode = doc.TryGetStringFromXml(path + "/GENERAL/LANGUAGECODE"); }
public void FromModifiedXml(ModifiedXmlDocument doc, string path) { PaymentMethodName = doc.GetStringFromXml(path + "/ROW/PAYMENTMETHODNAME"); PaymentProductId = doc.GetIntFromXml(path + "/ROW/PAYMENTPRODUCTID"); PaymentProductName = doc.GetStringFromXml(path + "/ROW/PAYMENTPRODUCTNAME"); MinimumAmount = doc.GetNullableLongFromXml(path + "/ROW/MINAMOUNT"); MaximumAmount = doc.GetNullableLongFromXml(path + "/ROW/MAXAMOUNT"); CurrencyCode = doc.GetStringFromXml(path + "/ROW/CURRENCYCODE"); OrderTypeIndicator = doc.GetIntFromXml(path + "/ROW/ORDERTYPEINDICATOR"); PaymentProductLogo = doc.TryGetStringFromXml(path + "/ROW/PAYMENTPRODUCTLOGO"); }
public void FromModifiedXml(ModifiedXmlDocument doc, string path) { ProfileToken = doc.TryGetStringFromXml(path + "/PAYMENT/PROFILETOKEN"); PaymentProductId = doc.GetNullableIntFromXml(path + "/PAYMENT/PAYMENTPRODUCTID"); Amount = doc.GetNullableLongFromXml(path + "/PAYMENT/AMOUNT"); CurrencyCode = doc.TryGetStringFromXml(path + "/PAYMENT/CURRENCYCODE"); LanguageCode = doc.TryGetStringFromXml(path + "/PAYMENT/LANGUAGECODE"); CountryCode = doc.TryGetStringFromXml(path + "/PAYMENT/COUNTRYCODE"); ReturnUrl = doc.TryGetStringFromXml(path + "/PAYMENT/RETURNURL"); DateCollect = doc.GetNullableIntFromXml(path + "/PAYMENT/DATECOLLECT"); OrderId = doc.GetNullableLongFromXml(path + "/PAYMENT/ORDERID"); EffortId = doc.GetNullableIntFromXml(path + "/PAYMENT/EFFORTID"); AttemptId = doc.GetNullableIntFromXml(path + "/PAYMENT/ATTEMPTID"); MerchantReference = doc.TryGetStringFromXml(path + "/PAYMENT/MERCHANTREFERENCE"); }
public void FromModifiedXml(ModifiedXmlDocument doc, string path) { OrderId = doc.GetNullableLongFromXml(path + "/ORDER/ORDERID"); MerchantOrderId = doc.GetNullableLongFromXml(path + "/ORDER/MERCHANTORDERID"); Amount = doc.GetNullableLongFromXml(path + "/ORDER/AMOUNT"); CurrencyCode = doc.TryGetStringFromXml(path + "/ORDER/CURRENCYCODE"); LanguageCode = doc.TryGetStringFromXml(path + "/ORDER/LANGUAGECODE"); CountryCode = doc.TryGetStringFromXml(path + "/ORDER/COUNTRYCODE"); MerchantReference = doc.TryGetStringFromXml(path + "/ORDER/MERCHANTREFERENCE"); BillingAddress = new Address() { FirstName = doc.TryGetStringFromXml(path + "/ORDER/FIRSTNAME"), LastName = doc.TryGetStringFromXml(path + "/ORDER/SURNAME"), PhoneNumber = doc.TryGetStringFromXml(path + "/ORDER/PHONENUMBER"), StreetLine1 = doc.TryGetStringFromXml(path + "/ORDER/STREET"), StreetLine2 = doc.TryGetStringFromXml(path + "/ORDER/ADDITIONALADDRESSINFO"), City = doc.TryGetStringFromXml(path + "/ORDER/CITY"), Zip = doc.TryGetStringFromXml(path + "/ORDER/ZIP"), State = doc.TryGetStringFromXml(path + "/ORDER/STATE"), CompanyName = doc.TryGetStringFromXml(path + "/ORDER/COMPANYNAME") }; ShippingAddress = new Address() { FirstName = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGFIRSTNAME"), LastName = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGSURNAME"), StreetLine1 = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGSTREET"), StreetLine2 = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGADDITIONALADDRESSINFO"), City = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGCITY"), Zip = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGZIP"), State = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGSTATE"), CompanyName = doc.TryGetStringFromXml(path + "/ORDER/SHIPPINGCOMPANYNAME") }; }
public void FromModifiedXml(ModifiedXmlDocument doc, string path) { MerchantId = doc.GetLongFromXml(path + "/META/MERCHANTID"); IpAddress = doc.TryGetStringFromXml(path + "/META/IPADDRESS"); Version = doc.TryGetStringFromXml(path + "/META/VERSION"); }