public function createOrderItemDiscountsInfo(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(); 		}  		return $discountInfo; 	}