public override byte[] GetXml() { AutoGen.AddMerchantOrderNumberRequest Req = new AutoGen.AddMerchantOrderNumberRequest(); Req.googleordernumber = _GoogleOrderNo; Req.merchantordernumber = _MerchantOrderNo; return EncodeHelper.Serialize(Req); }
public override byte[] GetXml() { AutoGen.AddMerchantOrderNumberRequest Req = new AutoGen.AddMerchantOrderNumberRequest(); Req.googleordernumber = _GoogleOrderNo; Req.merchantordernumber = _MerchantOrderNo; return(EncodeHelper.Serialize(Req)); }
public void TestAddMerchantOrderNumberRequest() { AddMerchantOrderNumberRequest req = new AddMerchantOrderNumberRequest(ORDER_NUMBER, MERCHANT_ORDER_NUMBER); AutoGen.AddMerchantOrderNumberRequest D = EncodeHelper.Deserialize(req.GetXml()) as AutoGen.AddMerchantOrderNumberRequest; Assert.AreEqual(req.GoogleOrderNumber, D.googleordernumber); Assert.AreEqual(MERCHANT_ORDER_NUMBER, D.merchantordernumber); req = new AddMerchantOrderNumberRequest(MERCHANT_ID, MERCHANT_KEY, "Sandbox", ORDER_NUMBER, MERCHANT_ORDER_NUMBER); D = EncodeHelper.Deserialize(req.GetXml()) as AutoGen.AddMerchantOrderNumberRequest; Assert.AreEqual(req.GoogleOrderNumber, D.googleordernumber); Assert.AreEqual(MERCHANT_ORDER_NUMBER, D.merchantordernumber); }