import System
import System.IO
import System.Net
import System.Text
import System.Drawing
import System.Numerics
import HtmlAgilityPack
import System.Drawing.Text
import System.Windows.Forms
import System.Data.SqlClient
import System.Xml.Serialization
import NetSuite.Retail.POS.Data
import NetSuite.Retail.POS.Business
import System.Runtime.Serialization.Json
import NetSuite.Retail.POS.Data.DataCenter
import System.Runtime.Serialization from System.Runtime.Serialization
import NetSuite.Retail.POS.Contracts.Model.Taxes

[XmlRoot(ElementName:”formEntryResponse”)]
public class FormEntryResponse:
[XmlElement(ElementName:”decision”)]
public Decision as string = “”
[XmlElement(ElementName:”errorCode”)]
public ErrorCode as string = “”
[XmlElement(ElementName:”data”)]
public Data as string = “”
[XmlElement(ElementName:”message”)]
public Message as string = “”

customerObj= MC.GetProperty(“Transaction.Customer”);

address = “”;
if customerObj.AddressLine1:
address += customerObj.AddressLine1+” ”
if customerObj.AddressLine2:
address += customerObj.AddressLine2+” ”;
if customerObj.AddressCity:
address += customerObj.AddressCity;
if customerObj.AddressState:
address += ” “+customerObj.AddressState;
if customerObj.AddressPostalCode:
address += “, “+customerObj.AddressPostalCode;

phone = customerObj.PhoneNumber;

form = ‘‘+\
confirmData‘+\
0‘+\
‘+\
‘+\
‘+\
‘+\
‘;

response = MC.SendMessage(“CTTService”, [form, “1”] )

obj = XmlSerializer(typeof(FormEntryResponse));
result = obj.Deserialize(StringReader(response.ToString()));
print response.ToString()