public function createOrderDiscountsInfo(array $discounts): array 	{ 		$discountInfo = [];  		foreach ($discounts as $index => $discount) { 			$discountInfo[$index]['discount_name'] = $discount->getName(); 			$discountInfo[$index]['discount_id'] = $discount->getId(); 			$discountInfo[$index]['type'] = $discount->getType(); 			$discountInfo[$index]['amount'] = $discount->getAmount(); 		}  		return $discountInfo; 	}