public static function addauto()
    {
        $macc_fb_id = addslashes($_POST['macc_fb_id']);
        $macc_last_name = addslashes($_POST['macc_last_name']);
        $macc_first_name = addslashes($_POST['macc_first_name']);
        $macc_gender = addslashes($_POST['macc_gender']);
        $macc_dob = addslashes($_POST['macc_dob']);
        $macc_email = addslashes($_POST['macc_email']);
        $macc_phone = addslashes($_POST['macc_phone']);
        $macc_foto = addslashes($_POST['macc_foto']);
        //        $businessUnit = 34999; //ecom
        $businessUnit = Efiwebsetting::getData("LL_Site_ID");
        if ($businessUnit == "") {
            $businessUnit = 34999;
        }
        //pake punya ecom
        $xml = '<?xml version="1.0" encoding="UTF-8"?> 
<CustomerAdd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nrf-arts.org/IXRetail/namespace/ ../CustomerAddV3.0.0.xsd" xmlns="http://www.nrf-arts.org/IXRetail/namespace/" MajorVersion="3" MinorVersion="0" FixVersion="0"> 
    <ARTSHeader ActionCode="Begin" MessageType="Request"> 
        
        <DateTime>' . date("Y-m-d") . 'T09:30:47-05:00</DateTime> 
        <BusinessUnit>' . $businessUnit . '</BusinessUnit> 
    </ARTSHeader> 
    <CustomerBody ActionCode="Add"> 
     <ReturnCustomerDetails>true</ReturnCustomerDetails> 
        <EntityInformation PartyType="Individual"> 
            <Individual> 
                <Name> 
                    
                    <Name TypeCode="GivenName">' . $macc_first_name . '</Name> 
                    <Name TypeCode="FamilyName">' . $macc_last_name . '</Name> 
                   
                </Name> 
                <ContactInformation> 
                    
                    <Telephone TypeCode="Mobile"> 
                         <LocalNumber>' . $macc_phone . '</LocalNumber> 
                    </Telephone> 
                    
                    <EMail TypeCode="Home"> 
                        <EMailAddress>' . $macc_email . '</EMailAddress> 
                    </EMail> 
                </ContactInformation>
                <PersonalSummary GenderType="' . $macc_gender . '">
	<BirthDate>' . $macc_dob . '+08:00</BirthDate>
	<MemberType>STC</MemberType>   
	<DNSFlag AddressType="Email">false</DNSFlag>
	<DNSFlag AddressType="Mail">false</DNSFlag>
	<DNSFlag AddressType="Phone">false</DNSFlag>
	<DNSFlag AddressType="SMS">false</DNSFlag>
                </PersonalSummary>
            </Individual> 
        </EntityInformation> 
    </CustomerBody> 
</CustomerAdd> 
';
        //<LoyaltyTokenID>23399002244884</LoyaltyTokenID>
        $url = "Customer/Add";
        $json = VR::run($url, $xml, 2);
        return $json;
        //pr($result);
        //echo $json;
    }
    public function addauto()
    {
        $xml = '<?xml version="1.0" encoding="UTF-8"?> 
<CustomerAdd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nrf-arts.org/IXRetail/namespace/ ../CustomerAddV3.0.0.xsd" xmlns="http://www.nrf-arts.org/IXRetail/namespace/" MajorVersion="3" MinorVersion="0" FixVersion="0"> 
    <ARTSHeader ActionCode="Begin" MessageType="Request"> 
        
        <DateTime>2015-05-15T09:30:47-05:00</DateTime> 
        <BusinessUnit>34999</BusinessUnit> 
    </ARTSHeader> 
    <CustomerBody ActionCode="Add"> 
     <ReturnCustomerDetails>true</ReturnCustomerDetails> 
        <EntityInformation PartyType="Individual"> 
            <Individual> 
                <Name> 
                    <Salutation>Mr.</Salutation> 
                    <Name TypeCode="GivenName">Marcel</Name> 
                    <Name TypeCode="FamilyName">Santoso</Name> 
                    <Name TypeCode="PreferredName">Acel</Name> 
                </Name> 
                <ContactInformation> 
                    <Telephone PrimaryFlag="true" TypeCode="Mobile"> 
                        <LocalNumber>02116816821</LocalNumber> 
                    </Telephone> 
                    <Telephone TypeCode="Work"> 
                         <LocalNumber>08881234563</LocalNumber> 
                    </Telephone> 
                    <Address> 
                        <TypeCode>Home</TypeCode> 
                        <AddressLine TypeCode="Street">1234 Highline Place</AddressLine> 
                        <AddressLine TypeCode="Unit">26</AddressLine> 
                        <City>Atlanta</City> 
                        <Territory TypeCode="State">Georgia</Territory> 
                        <PostalCode>123456</PostalCode> 
                    </Address> 
                    <EMail TypeCode="Home"> 
                        <EMailAddress>marcel2@leap-systems.com</EMailAddress> 
                    </EMail> 
                </ContactInformation>
                <PersonalSummary GenderType="Male">
	<BirthDate>1993-06-11+08:00</BirthDate>
	
		<MemberType>STC</MemberType>   
	<DNSFlag AddressType="Email">false</DNSFlag>
	<DNSFlag AddressType="Mail">false</DNSFlag>
	<DNSFlag AddressType="Phone">false</DNSFlag>
	<DNSFlag AddressType="SMS">true</DNSFlag>
                </PersonalSummary>
            </Individual> 
        </EntityInformation> 
    </CustomerBody> 
</CustomerAdd> 
';
        //<LoyaltyTokenID>23399002244884</LoyaltyTokenID>
        $url = "Customer/Add";
        $json = VR::run($url, $xml);
        //pr($result);
        echo $json;
    }