internal override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } PrimaryId = wmXmlPackage.SelectInt64("@id"); SecondaryId = wmXmlPackage.SelectInt64("@ts"); SourcePurse = wmXmlPackage.SelectPurse("pursesrc"); TargetPurse = wmXmlPackage.SelectPurse("pursedest"); Amount = wmXmlPackage.SelectAmount("amount"); Commission = wmXmlPackage.SelectAmount("comiss"); TransferType = (TransferType)wmXmlPackage.SelectInt32("opertype"); InvoiceId = wmXmlPackage.SelectInt64("wminvid"); OrderId = wmXmlPackage.SelectInt32("orderid"); PaymentId = wmXmlPackage.SelectInt32("tranid"); Period = wmXmlPackage.SelectUInt8("period"); Description = (Description)wmXmlPackage.SelectString("desc"); CreateTime = wmXmlPackage.SelectWmDateTime("datecrt"); UpdateTime = wmXmlPackage.SelectWmDateTime("dateupd"); Partner = wmXmlPackage.SelectWmId("corrwm"); Rest = wmXmlPackage.SelectAmount("rest"); if (wmXmlPackage.Exists("timelock")) { IsLocked = true; } }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } PrimaryId = wmXmlPackage.SelectInt64("ininvoice/@id"); SecondaryId = wmXmlPackage.SelectInt64("ininvoice/@ts"); State = (InvoiceState)wmXmlPackage.SelectUInt32("ininvoice/state"); UpdateTime = wmXmlPackage.SelectWmDateTime("ininvoice/dateupd"); }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } PrimaryId = wmXmlPackage.SelectInt64("operation/@id"); SecondaryId = wmXmlPackage.SelectInt64("operation/@ts"); TransferType = (TransferType)wmXmlPackage.SelectInt32("operation/opertype"); UpdateTime = wmXmlPackage.SelectWmDateTime("operation/dateupd"); }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } TransferId = wmXmlPackage.SelectInt64("operation/@wmtransid"); InvoiceId = wmXmlPackage.SelectInt64("operation/@wminvoiceid"); Amount = wmXmlPackage.SelectAmount("operation/amount"); Date = wmXmlPackage.SelectWmDateTime("operation/operdate"); Description = (Description)wmXmlPackage.SelectString("operation/purpose"); ClientPurse = wmXmlPackage.SelectPurse("operation/pursefrom"); ClientWmId = wmXmlPackage.SelectWmId("operation/wmidfrom"); Info = wmXmlPackage.SelectString("userdesc"); SmsState = (SmsState?)wmXmlPackage.SelectEnumIfExists(typeof(SmsState), "smssentstate") ?? SmsState.BUFFERED; }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } PrimaryId = wmXmlPackage.SelectInt64("operation/@id"); SecondaryId = wmXmlPackage.SelectInt64("operation/@ts"); TransferId = wmXmlPackage.SelectInt64("operation/inwmtranid"); SourcePurse = wmXmlPackage.SelectPurse("operation/pursesrc"); TargetPurse = wmXmlPackage.SelectPurse("operation/pursedest"); Amount = wmXmlPackage.SelectAmount("operation/amount"); Commission = wmXmlPackage.SelectAmount("operation/comiss"); Description = (Description)wmXmlPackage.SelectString("operation/desc"); CreateTime = wmXmlPackage.SelectWmDateTime("operation/datecrt"); UpdateTime = wmXmlPackage.SelectWmDateTime("operation/dateupd"); }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } TransferId = wmXmlPackage.SelectInt64("paymer2purse/tranid"); Amount = wmXmlPackage.SelectAmount("paymer2purse/amount"); }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } InvoiceId = wmXmlPackage.SelectInt64("operation/@wminvoiceid"); ConfirmationType = (ConfirmationType)wmXmlPackage.SelectInt32("operation/realsmstype"); Info = wmXmlPackage.SelectString("userdesc"); }
internal override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } PrimaryId = wmXmlPackage.SelectInt64("operation/@id"); SecondaryId = wmXmlPackage.SelectInt64("operation/@ts"); PaymentId = wmXmlPackage.SelectInt32("operation/tranid"); SourcePurse = wmXmlPackage.SelectPurse("operation/pursesrc"); TargetPurse = wmXmlPackage.SelectPurse("operation/pursedest"); Amount = wmXmlPackage.SelectAmount("operation/amount"); Commission = wmXmlPackage.SelectAmount("operation/comiss"); TransferType = (TransferType)wmXmlPackage.SelectInt32("operation/opertype"); Period = wmXmlPackage.SelectUInt8("operation/period"); InvoiceId = wmXmlPackage.SelectInt64("operation/wminvid"); Description = (Description)wmXmlPackage.SelectString("operation/desc"); CreateTime = wmXmlPackage.SelectWmDateTime("operation/datecrt"); UpdateTime = wmXmlPackage.SelectWmDateTime("operation/dateupd"); }
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"); }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } TransferId = wmXmlPackage.SelectInt64("operation/@wmtransid"); InvoiceId = wmXmlPackage.SelectInt64("operation/@wminvoiceid"); CreateTime = wmXmlPackage.SelectWmDateTime("operation/operdate"); Description = (Description)wmXmlPackage.SelectString("operation/purpose"); SourcePurse = wmXmlPackage.SelectPurse("operation/pursefrom"); SourceWmId = wmXmlPackage.SelectWmId("operation/wmidfrom"); CapitallerFlag = wmXmlPackage.SelectBoolIfExists("operation/capitallerflag") ?? false; EnumFlag = wmXmlPackage.SelectUInt8IfExists("operation/enumflag") ?? 0; IpAddress = IPAddress.Parse(wmXmlPackage.SelectNotEmptyString("operation/IPAddress")); TelepatPhone = wmXmlPackage.SelectString("operation/telepat_phone"); TelepatMethod = (TelepatMethod?)wmXmlPackage.SelectEnumFromIntegerIfExists(typeof(TelepatMethod), "operation/telepat_paytype"); PaymerNumber = wmXmlPackage.TrySelectNotEmptyString("operation/paymer_number"); PaymerEmail = wmXmlPackage.TrySelectNotEmptyString("operation/paymer_email"); PaymerType = (PaymerType?)wmXmlPackage.SelectEnumFromIntegerIfExists(typeof(PaymerType), "operation/paymer_type") ?? PaymerType.None; //CashierNumber = wmXmlResponsePackage.SelectString("operation/cashier_number"); //if (!string.IsNullOrEmpty(wmXmlResponsePackage.SelectString("operation/cashier_date"))) // CashierDate = wmXmlResponsePackage.SelectWmDateTime("operation/cashier_date"); //if (!string.IsNullOrEmpty(wmXmlResponsePackage.SelectString("operation/cashier_amount"))) // CashierAmount = wmXmlResponsePackage.SelectAmount("operation/cashier_amount"); SdpType = wmXmlPackage.SelectInt32IfExists("operation/sdp_type"); }