Exemple #1
0
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

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

            xmlRequestBuilder.WriteElement("orderid", OrderId);
            xmlRequestBuilder.WriteElement("customerwmid", SourceWmId.ToString());
            xmlRequestBuilder.WriteElement("storepurse", TargetPurse.ToString());
            xmlRequestBuilder.WriteElement("amount", Amount.ToString());
            xmlRequestBuilder.WriteElement("desc", Description);
            xmlRequestBuilder.WriteElement("address", Address);
            xmlRequestBuilder.WriteElement("period", Period);
            xmlRequestBuilder.WriteElement("expiration", Expiration);
            xmlRequestBuilder.WriteElement("onlyauth", Force ? 0 : 1);

            if (null != ShopId)
            {
                xmlRequestBuilder.WriteElement("lmi_shop_id", ShopId.Value);
            }

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

            xmlRequestBuilder.WriteElement("lmi_payee_purse", TargetPurse.ToString());
            xmlRequestBuilder.WriteElement("lmi_payment_no_type", (int)NumberType);
            xmlRequestBuilder.WriteElement("lmi_payment_no", PaymentNumber);
        }
Exemple #3
0
        protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder)
        {
            if (null == xmlRequestBuilder)
            {
                throw new ArgumentNullException(nameof(xmlRequestBuilder));
            }

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

            xmlRequestBuilder.WriteElement("tranid", TransferId);
            xmlRequestBuilder.WriteElement("pursesrc", SourcePurse.ToString());
            xmlRequestBuilder.WriteElement("pursedest", TargetPurse.ToString());
            xmlRequestBuilder.WriteElement("amount", Amount.ToString());
            xmlRequestBuilder.WriteElement("period", Period);
            xmlRequestBuilder.WriteElement("pcode", Code);
            xmlRequestBuilder.WriteElement("desc", Description);
            xmlRequestBuilder.WriteElement("wminvid", InvoiceId);
            xmlRequestBuilder.WriteElement("onlyauth", Force ? 0 : 1);
            xmlRequestBuilder.WriteElement("wmb_denomination", string.Empty);

            xmlRequestBuilder.WriteEndElement(); // </trans>
        }