Source:
<code>private PreTransactionalOperation<TransactionContext, RefundEntity> prepareForRefund(PaymentProviders providers, ChargeEntity chargeEntity, RefundRequest refundRequest) { return context -> { ChargeEntity reloadedCharge = chargeDao.merge(chargeEntity); ExternalChargeRefundAvailability refundAvailability = providers.byName(chargeEntity.getPaymentGatewayName()).getExternalChargeRefundAvailability(chargeEntity); GatewayAccountEntity gatewayAccount = reloadedCharge.getGatewayAccount(); checkIfChargeIsRefundableOrTerminate(reloadedCharge, refundAvailability, gatewayAccount); long totalAmountToBeRefunded = reloadedCharge.getTotalAmountToBeRefunded(); checkIfRefundRequestIsInConflictOrTerminate(refundRequest, reloadedCharge, totalAmountToBeRefunded); checkIfRefundAmountWithinLimitOrTerminate(refundRequest, reloadedCharge, refundAvailability, gatewayAccount, totalAmountToBeRefunded); RefundEntity refundEntity = completePrepareRefund(refundRequest, reloadedCharge); <START> logger.info("Card refund request sent - charge_external_id={}, status={}, amount={}, transaction_id={}, account_id={}, operation_type=Refund, amount_available_refund={}, amount_requested_refund={}, provider={}, provider_type={}, refundedBy={}", <END> chargeEntity.getExternalId(), fromString(chargeEntity.getStatus()), chargeEntity.getAmount(), chargeEntity.getGatewayTransactionId(), gatewayAccount.getId(), totalAmountToBeRefunded, refundRequest.getAmount(), gatewayAccount.getGatewayName(), gatewayAccount.getType(), refundRequest.getRefundedBy()); return refundEntity; }; }</code><technical_language>Change refundedBy refunded_by match snake case in logging please</technical_language>

Target:
private PreTransactionalOperation<TransactionContext, RefundEntity> prepareForRefund(PaymentProviders providers, ChargeEntity chargeEntity, RefundRequest refundRequest) { return context -> { ChargeEntity reloadedCharge = chargeDao.merge(chargeEntity); ExternalChargeRefundAvailability refundAvailability = providers.byName(chargeEntity.getPaymentGatewayName()).getExternalChargeRefundAvailability(chargeEntity); GatewayAccountEntity gatewayAccount = reloadedCharge.getGatewayAccount(); checkIfChargeIsRefundableOrTerminate(reloadedCharge, refundAvailability, gatewayAccount); long totalAmountToBeRefunded = reloadedCharge.getTotalAmountToBeRefunded(); checkIfRefundRequestIsInConflictOrTerminate(refundRequest, reloadedCharge, totalAmountToBeRefunded); checkIfRefundAmountWithinLimitOrTerminate(refundRequest, reloadedCharge, refundAvailability, gatewayAccount, totalAmountToBeRefunded); RefundEntity refundEntity = completePrepareRefund(refundRequest, reloadedCharge); logger.info("Card refund request sent - charge_external_id={}, status={}, amount={}, transaction_id={}, account_id={}, operation_type=Refund, amount_available_refund={}, amount_requested_refund={}, provider={}, provider_type={}, user_external_id={}", chargeEntity.getExternalId(), fromString(chargeEntity.getStatus()), chargeEntity.getAmount(), chargeEntity.getGatewayTransactionId(), gatewayAccount.getId(), totalAmountToBeRefunded, refundRequest.getAmount(), gatewayAccount.getGatewayName(), gatewayAccount.getType(), refundRequest.getUserExternalId()); return refundEntity; }; }