return new JsonResponse($toPlace->
jsonSerialize());
} /**
* @throws RefundProcessException
*/
#[Route(path: '/api/_action/order_transaction_capture_refund/{refundId}', name: 'api.action.order.order_transaction_capture_refund', methods: ['POST'], defaults: ['_acl' => ['order_refund.editor']])]
public function refundOrderTransactionCapture(string
$refundId, Context
$context): JsonResponse
{ $this->paymentRefundProcessor->
processRefund($refundId,
$context);
return new JsonResponse(null, Response::HTTP_NO_CONTENT
);
} /**
* @param array<string> $documentTypes
*
* @throws Exception
* @throws \Doctrine\DBAL\Exception
*
* @return array<string>
*/