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> }
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("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("createpurse"); // <createpurse> xmlRequestBuilder.WriteElement("wmid", WmId.ToString()); xmlRequestBuilder.WriteElement("pursetype", Purse.CurrencyToLetter(PurseType).ToString()); xmlRequestBuilder.WriteElement("desc", Description); xmlRequestBuilder.WriteEndElement(); // </createpurse> }
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> }
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> }