<?php

// Contains all of the built in fields for Infusionsoft, their labels and API names
$infusionsoft_fields = array();

$infusionsoft_fields['first_name'] = array(
	'crm_label' => 'First Name',
	'crm_field' => 'FirstName',
);

$infusionsoft_fields['last_name'] = array(
	'crm_label' => 'Last Name',
	'crm_field' => 'LastName',
);

$infusionsoft_fields['nickname'] = array(
	'crm_label' => 'Nickname',
	'crm_field' => 'Nickname',
);

$infusionsoft_fields['user_email'] = array(
	'crm_label' => 'Email',
	'crm_field' => 'Email',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Email Address 2',
	'crm_field' => 'EmailAddress2',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Email Address 3',
	'crm_field' => 'EmailAddress3',
);

$infusionsoft_fields['country'] = array(
	'crm_label' => 'Country',
	'crm_field' => 'Country',
);

$infusionsoft_fields['website'] = array(
	'crm_label' => 'Website',
	'crm_field' => 'Website',
);

$infusionsoft_fields['job_title'] = array(
	'crm_label' => 'Job Title',
	'crm_field' => 'JobTitle',
);

$infusionsoft_fields['company_id'] = array(
	'crm_label' => 'Company ID',
	'crm_field' => 'CompanyID',
);

$infusionsoft_fields['owner_id'] = array(
	'crm_label' => 'Owner ID',
	'crm_field' => 'OwnerID',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Person Type',
	'crm_field' => 'ContactType',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Optin Status',
	'crm_field' => 'OptinStatus',
);


/* Woocommerce Fields */

$infusionsoft_fields['billing_first_name'] = array(
	'crm_label' => 'First Name',
	'crm_field' => 'FirstName',
);

$infusionsoft_fields['billing_last_name'] = array(
	'crm_label' => 'Last Name',
	'crm_field' => 'LastName',
);

$infusionsoft_fields['billing_email'] = array(
	'crm_label' => 'Email',
	'crm_field' => 'Email',
);

$infusionsoft_fields['billing_phone'] = array(
	'crm_label' => 'Phone 1',
	'crm_field' => 'Phone1',
);

$infusionsoft_fields['phone_number'] = array(
	'crm_label' => 'Phone 1',
	'crm_field' => 'Phone1',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 1 Extension',
	'crm_field' => 'Phone1Ext',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 1 Type',
	'crm_field' => 'Phone1Type',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 2',
	'crm_field' => 'Phone2',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 2 Extension',
	'crm_field' => 'Phone2Ext',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 2 Type',
	'crm_field' => 'Phone2Type',
);

$infusionsoft_fields['company'] = array(
	'crm_label' => 'Company',
	'crm_field' => 'Company',
);

$infusionsoft_fields['billing_company'] = array(
	'crm_label' => 'Company',
	'crm_field' => 'Company',
);

$infusionsoft_fields['billing_address_1'] = array(
	'crm_label' => 'Street Address 1',
	'crm_field' => 'StreetAddress1',
);

$infusionsoft_fields['billing_address_2'] = array(
	'crm_label' => 'Street Address 2',
	'crm_field' => 'StreetAddress2',
);

$infusionsoft_fields['billing_city'] = array(
	'crm_label' => 'City',
	'crm_field' => 'City',
);

$infusionsoft_fields['billing_postcode'] = array(
	'crm_label' => 'Postal Code',
	'crm_field' => 'PostalCode',
);

$infusionsoft_fields['billing_country'] = array(
	'crm_label' => 'Country',
	'crm_field' => 'Country',
);

$infusionsoft_fields['billing_state'] = array(
	'crm_label' => 'State',
	'crm_field' => 'State',
);

$infusionsoft_fields['shipping_address_1'] = array(
	'crm_label' => 'Shipping Street Address 1',
	'crm_field' => 'Address2Street1',
);

$infusionsoft_fields['shipping_address_2'] = array(
	'crm_label' => 'Shipping Street Address 2',
	'crm_field' => 'Address2Street2',
);

$infusionsoft_fields['shipping_city'] = array(
	'crm_label' => 'Shipping City',
	'crm_field' => 'City2',
);

$infusionsoft_fields['shipping_postcode'] = array(
	'crm_label' => 'Shipping Postal Code',
	'crm_field' => 'PostalCode2',
);

$infusionsoft_fields['shipping_country'] = array(
	'crm_label' => 'Shipping Country',
	'crm_field' => 'Country2',
);

$infusionsoft_fields['shipping_state'] = array(
	'crm_label' => 'Shipping State',
	'crm_field' => 'State2',
);

$infusionsoft_fields['wpf_leadsource'] = array(
	'crm_label' => 'Lead Source ID',
	'crm_field' => 'Leadsource',
);

// Fields without direct WP equivalent have have numeric keys
$infusionsoft_fields[] = array(
	'crm_label' => 'Email Address 2',
	'crm_field' => 'EmailAddress2',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Email Address 3',
	'crm_field' => 'EmailAddress3',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Account ID',
	'crm_field' => 'AccountId',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Anniversary',
	'crm_field' => 'Anniversary',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 2',
	'crm_field' => 'Phone2',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 3',
	'crm_field' => 'Phone3',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 4',
	'crm_field' => 'Phone4',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Phone 5',
	'crm_field' => 'Phone5',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Birthday',
	'crm_field' => 'Birthday',
	'crm_type'  => 'date',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Contact Notes',
	'crm_field' => 'ContactNotes',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Middle Name',
	'crm_field' => 'MiddleName',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Spouse Name',
	'crm_field' => 'SpouseName',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Title',
	'crm_field' => 'Title',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Anniversary',
	'crm_field' => 'Anniversary',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Contact Type',
	'crm_field' => 'ContactType',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Time Zone',
	'crm_field' => 'TimeZone',
);

$infusionsoft_fields[] = array(
	'crm_label' => 'Language',
	'crm_field' => 'Language',
);


$infusionsoft_social_fields = array(
	array(
		'crm_label' => 'Facebook',
		'crm_field' => 'Facebook',
	),
	array(
		'crm_label' => 'Twitter',
		'crm_field' => 'Twitter',
	),
	array(
		'crm_label' => 'LinkedIn',
		'crm_field' => 'LinkedIn',
	),
	array(
		'crm_label' => 'Instagram',
		'crm_field' => 'Instagram',
	),
	array(
		'crm_label' => 'Snapchat',
		'crm_field' => 'Snapchat',
	),
	array(
		'crm_label' => 'YouTube',
		'crm_field' => 'YouTube',
	),
	array(
		'crm_label' => 'Pinterest',
		'crm_field' => 'Pinterest',
	),
);
