/** * This function prepares the list of customers with information about: * * id - user ID * customer_firstname - customer's first name * customer_country - country according to customer's address * customer_city - country according to customer's address * customer_zip_code - ZIP code according to customer's address * customer_email - customer's email * customer_registration - indicates if it is a registered customer ( 0 ), or he chose the purchase without registration ( 1 ), (INT 0 or 1) * customer_type - indicates if it is an end customer ( 0 ) or a company ( 1 ), (INT 0 or 1) * customer_vat_status - indicates it is a VAT payer (1) or not (0), (INT 0 or 1) * The list can be implemented under a condition from actually used orders Shipping IDs, this list is available as a $this->getShippingsIds() list. * If you decide not to use the list of ids of customers found in orders, the export can be slower and more data-demanding, in case of larger amount of orders. * * @param array $customerIds * @return ShippingList */ public function getCustomers($customerIds) { $result = $this->getCustomersItems($customerIds); $data = new CustomerList(); foreach ($result as $row) { $data->addBean(new CustomerBean($row)); } return $data; }