public function getCustomerInvoices($code = null) {
		$invoices = array();
		$subscriptions = $this->getCustomerSubscriptions($code);
		foreach ($subscriptions as $subscription) {
			if (isset($subscription['invoices'])) {
				foreach ($subscription['invoices'] as $key => $i) {
					$invoices[$key] = $i;
				}
			}
		}
		return $invoices;
	}
public function getCustomerInvoices($code = null) {
		$invoices = array();
		$subscriptions = $this->getCustomerSubscriptions($code);
		foreach ($subscriptions as $subscription) {
			if (isset($subscription['invoices'])) {
				foreach ($subscription['invoices'] as $key => $i) {
					$invoices[$key] = $i;
				}
			}
		}
		return $invoices;
	}
public function getCustomerInvoices ( $ code = null ) { $ invoices = array ( ) ; $ subscriptions = $ this -> getCustomerSubscriptions ( $ code ) ; foreach ( $ subscriptions as $ subscription ) { if ( isset ( $ subscription [ 'invoices' ] ) ) { foreach ( $ subscription [ 'invoices' ] as $ key => $ i ) { $ invoices [ $ key ] = $ i ; } } } return $ invoices ; }
Get an array representation of a single customer's invoices

@param $code string your code for the customer - required if more than one customer is in the response
@throws CheddarGetter_Response_Exception if the response type is incompatible or if a $code is not provided and the response contains more than one customer
@return array|false
Get an array representation of a single customer s invoices