<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct> 
    <module>account_billing</module> 
    <table>account_billing</table> 
    <dependancy/> 
    <cache>0</cache> 
    <order_by>account_id</order_by> 
    <limit>25</limit> 
    <index>
        <account_id>site_id,account_id</account_id>
        <checkout_plugin>site_id,checkout_plugin_id</checkout_plugin>
        <card_type>site_id,card_type</card_type>
        <eft_type>site_id,eft_check_acct_type</eft_type>
    </index> 
    <field>
        <id>
            <type>I4</type> 
            <unique>1</unique> 
        </id>
        <site_id>
            <type>I4</type> 
        </site_id>
        <account_id>
            <type>I8</type>
            <asso_table>account</asso_table>
            <asso_field>username</asso_field>
        </account_id>
        <checkout_plugin_id>
            <type>C(32)</type>
            <asso_table>checkout</asso_table>
            <asso_field>name</asso_field>
        </checkout_plugin_id>
        <plugin_data>
            <type>X</type>
            <convert>array</convert>
        </plugin_data> 
        <name>
            <type>C(32)</type>
        </name>
        <notes>
            <type>C(128)</type>
        </notes>        
        <notify_count>
        	<type>I4</type>
        </notify_count> 
        <card_type>
            <type>C(16)</type>
        </card_type>
        <card_num>
            <type>X</type>
            <convert>encrypt</convert>
            <validate>any</validate>
        </card_num>
        <card_num4>
            <type>C(16)</type>
        </card_num4>
        <card_exp_month>
            <type>C(16)</type>
            <validate>numeric</validate>
            <min_len>2</min_len>
            <max_len>2</max_len>
        </card_exp_month>
        <card_exp_year>
            <type>C(16)</type>
            <validate>numeric</validate>
            <min_len>2</min_len>
            <max_len>2</max_len>
        </card_exp_year>
        <card_start_month>
            <type>C(16)</type>
        </card_start_month>
        <card_start_year>
            <type>C(16)</type>
        </card_start_year>  
        <eft_check_acct_type>
        	<type>C(16)</type> 
        </eft_check_acct_type>        
        <eft_trn>
            <type>C(255)</type>
            <convert>encrypt</convert>
            <validate>numeric</validate>
            <min_len>6</min_len>
            <max_len>16</max_len>            
        </eft_trn>
        <eft_check_acct>
            <type>C(255)</type>
            <convert>encrypt</convert>
            <validate>numeric</validate>
            <min_len>6</min_len>
            <max_len>16</max_len>            
        </eft_check_acct> 
        <eft_check_checkno>
        	<type>I8</type>
        </eft_check_checkno>     
        <first_name>
        	<type>C(16)</type>
        	<validate>any</validate>
        </first_name>
        <last_name>
        	<type>C(16)</type>
        	<validate>any</validate>
        </last_name>
        <address1>
        	<type>C(32)</type>
        	<validate>any</validate>
        </address1>
        <address2>
        	<type>C(32)</type> 
            <min_len>3</min_len>            	
        </address2>
        <city>
        	<type>C(16)</type>
        	<validate>any</validate>
        </city>
        <state>
        	<type>C(16)</type>
        	<validate>any</validate>
        </state>        
        <zip>
        	<type>C(16)</type>
        	<validate>any</validate>
        </zip>
        <country_id>
        	<type>C(16)</type>
        	<validate>any</validate>
        </country_id>
        <phone>
        	<type>C(16)</type>
        </phone>
        <email>
        	<type>C(128)</type>
        </email>
        <company>
        	<type>C(32)</type>
        </company>
        <ssn>
            <type>C(255)</type>
            <convert>encrypt</convert>
        </ssn>  
        <dl_no>
            <type>C(255)</type>
            <convert>encrypt</convert>
        </dl_no>
        <dob>
            <type>C(255)</type>
            <convert>encrypt</convert>
        </dob>     
    </field> 
    <method>
        <add>id,site_id,account_id,checkout_plugin_id,plugin_data,name,notes,card_type,card_num,card_exp_month,card_exp_year,card_start_month,card_start_year,card_num4,eft_trn,eft_check_acct,eft_check_acct_type,eft_check_checkno,first_name,last_name,address1,address2,city,state,zip,country_id,phone,email,company,ssn,dl_no,dob,eft_trn,eft_check_acct </add>
        <update>id,site_id,account_id,checkout_plugin_id,plugin_data,name,notes,card_type,card_num,card_exp_month,card_exp_year,card_start_month,card_start_year,card_num4,eft_trn,eft_check_acct,eft_check_acct_type,eft_check_checkno,first_name,last_name,address1,address2,city,state,zip,country_id,phone,email,company,ssn,dl_no,dob,eft_trn,eft_check_acct </update>
        <delete>id</delete>
        <view>id,site_id,account_id,checkout_plugin_id,plugin_data,name,notes,card_type,card_num,card_exp_month,card_exp_year,card_start_month,card_start_year,card_num4,eft_trn,eft_check_acct,eft_check_acct_type,eft_check_checkno,first_name,last_name,address1,address2,city,state,zip,country_id,phone,email,company,ssn,dl_no,dob,eft_trn,eft_check_acct</view>
        <search>id,site_id,account_id,checkout_plugin_id,plugin_data,name,notes,card_type,card_num,card_exp_month,card_exp_year,card_start_month,card_start_year,card_num4,eft_trn,eft_check_acct,eft_check_acct_type,eft_check_checkno,first_name,last_name,address1,address2,city,state,zip,country_id,phone,email,company,ssn,dl_no,dob,eft_trn,eft_check_acct</search>
        <user_update>id,site_id,account_id,checkout_plugin_id,plugin_data,name,notes,card_type,card_num,card_exp_month,card_exp_year,card_start_month,card_start_year,card_num4,eft_trn,eft_check_acct,eft_check_acct_type,eft_check_checkno,first_name,last_name,address1,address2,city,state,zip,country_id,phone,email,company,ssn,dl_no,dob,eft_trn,eft_check_acct</user_update>
    </method> 
    <trigger>0</trigger>
</construct>
