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; } }
internal override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("@id"); Ts = wmXmlPackage.SelectUInt32("@ts"); OrderId = wmXmlPackage.SelectUInt32("orderid"); SourceWmId = wmXmlPackage.SelectWmId("customerwmid"); TargetPurse = wmXmlPackage.SelectPurse("storepurse"); Amount = wmXmlPackage.SelectAmount("amount"); Description = (Description)wmXmlPackage.SelectString("desc"); Address = (Description)wmXmlPackage.SelectString("address"); Period = wmXmlPackage.SelectUInt8("period"); Expiration = wmXmlPackage.SelectUInt8("expiration"); InvoiceState = (InvoiceState)wmXmlPackage.SelectInt32("state"); CreateTime = wmXmlPackage.SelectWmDateTime("datecrt"); UpdateTime = wmXmlPackage.SelectWmDateTime("dateupd"); OperationId = wmXmlPackage.SelectUInt32("wmtranid"); if (wmXmlPackage.Exists("customerpurse") && !string.IsNullOrEmpty(wmXmlPackage.SelectString("customerpurse"))) { SourcePurse = wmXmlPackage.SelectPurse("customerpurse"); } }
internal void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("@id"); InvoiceAllowed = wmXmlPackage.SelectBool("@inv"); TransferAllowed = wmXmlPackage.SelectBool("@trans"); BalanceAllowed = wmXmlPackage.SelectBool("@purse"); HistoryAllowed = wmXmlPackage.SelectBool("@transhist"); Master = wmXmlPackage.SelectWmId("master"); if (wmXmlPackage.Exists("purse") && !string.IsNullOrEmpty(wmXmlPackage.SelectString("purse"))) { Purse = wmXmlPackage.SelectPurse("purse"); } Hours24Limit = wmXmlPackage.SelectAmount("daylimit"); DayLimit = wmXmlPackage.SelectAmount("dlimit"); WeekLimit = wmXmlPackage.SelectAmount("wlimit"); MonthLimit = wmXmlPackage.SelectAmount("mlimit"); DayAmount = wmXmlPackage.SelectAmount("dsum"); WeekAmount = wmXmlPackage.SelectAmount("wsum"); MonthAmount = wmXmlPackage.SelectAmount("msum"); LastDate = wmXmlPackage.SelectWmDate("lastsumdate"); }
protected override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("operation/@id"); Ts = wmXmlPackage.SelectUInt32("operation/@ts"); OperationId = wmXmlPackage.SelectUInt32("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)); } Id = wmXmlPackage.SelectUInt32("purse/@id"); Purse = wmXmlPackage.SelectPurse("purse/pursename"); Amount = wmXmlPackage.SelectAmount("purse/amount"); Description = (Description)wmXmlPackage.SelectNotEmptyString("purse/desc"); }
internal override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("operation/@id"); Ts = wmXmlPackage.SelectUInt32("operation/@ts"); TransferId = wmXmlPackage.SelectUInt32("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.SelectUInt32("operation/wminvid"); Description = (Description)wmXmlPackage.SelectString("operation/desc"); CreateTime = wmXmlPackage.SelectWmDateTime("operation/datecrt"); UpdateTime = wmXmlPackage.SelectWmDateTime("operation/dateupd"); }
internal void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("@id"); Purse = wmXmlPackage.SelectPurse("pursename"); Amount = wmXmlPackage.SelectAmount("amount"); Description = (Description)wmXmlPackage.SelectString("desc"); Enable = wmXmlPackage.SelectBool("outsideopen"); LastIncomingTransfer = wmXmlPackage.SelectUInt32("lastintr"); LastOutgoingTransfer = wmXmlPackage.SelectUInt32("lastouttr"); }
internal void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectInt32("@id"); Purse = wmXmlPackage.SelectPurse("pursename"); Amount = wmXmlPackage.SelectAmount("amount"); Description = (Description)wmXmlPackage.SelectString("desc"); // Элементы outsideopen, lastintr, lastouttr отсутствуют при авторизации ключами Keeper Light. Enable = wmXmlPackage.SelectBoolIfExists("outsideopen") ?? false; LastIncomingTransferId = wmXmlPackage.SelectInt64IfExists("lastintr") ?? 0; LastOutgoingTransferId = wmXmlPackage.SelectInt64IfExists("lastouttr") ?? 0; }
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; }
internal override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("invoice/@id"); Ts = wmXmlPackage.SelectUInt32("invoice/@ts"); OrderId = wmXmlPackage.SelectUInt32("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"); State = (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.SelectUInt32("operation/@wmtransid"); InvoiceId = wmXmlPackage.SelectUInt32("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"); if (wmXmlPackage.Exists("smssentstate")) { SmsState = (SmsState)Enum.Parse(typeof(SmsState), wmXmlPackage.SelectNotEmptyString("smssentstate"), true); } }
internal override void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } PrimaryId = wmXmlPackage.SelectInt64("@id"); SecondaryId = wmXmlPackage.SelectInt64("@ts"); OrderId = wmXmlPackage.SelectInt32("orderid"); TargetWmId = wmXmlPackage.SelectWmId("storewmid"); TargetPurse = wmXmlPackage.SelectPurse("storepurse"); Amount = wmXmlPackage.SelectAmount("amount"); Description = (Description)wmXmlPackage.SelectString("desc"); Address = (Description)wmXmlPackage.SelectString("address"); Period = wmXmlPackage.SelectUInt8("period"); Expiration = wmXmlPackage.SelectUInt8("expiration"); InvoiceState = (InvoiceState)wmXmlPackage.SelectInt32("state"); CreateTime = wmXmlPackage.SelectWmDateTime("datecrt"); UpdateTime = wmXmlPackage.SelectWmDateTime("dateupd"); TransferId = wmXmlPackage.SelectInt64("wmtranid"); }