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;
	}