'default_billing_address_id' =>
$customer->
getDefaultBillingAddressId(),
'title' =>
$customer->
getTitle(),
'salutation' =>
$customer->
getSalutation(),
'firstname' =>
$customer->
getFirstname(),
'lastname' =>
$customer->
getLastname(),
'birthday' =>
$this->
formatDate($customer->
getBirthday()),
'customernumber' =>
$customer->
getNumber(),
'customer_group_id' =>
$customer->
getCustomerGroup() ?
$customer->
getCustomerGroup()->
getId() : null,
'customer_group_name' =>
$customer->
getCustomerGroup() ?
$customer->
getCustomerGroup()->
getName() : '',
'payment_id' =>
$customer->
getPaymentId(),
'company' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getCompany() : '',
'department' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getDepartment() : '',
'street' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getStreet() : '',
'zipcode' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getZipcode() : '',
'city' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getCity() : '',
'phone' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getPhone() : '',
'additional_address_line1' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getAdditionalAddressLine1() : '',
'additional_address_line2' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getAdditionalAddressLine2() : '',
'country_id' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getCountryId() : null,
'country_name' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getCountry()->
getName() : '',
'state_id' =>
$customer->
getBillingAddress() ?
$customer->
getBillingAddress()->
getStateId() : '',
'age' =>
$customer->
getAge(),
'count_orders' =>
(int) $customer->
getOrderInformation()->
getOrderCount(),