package com.example.baispolicy; public class PaymentService { public String approve(String transactionId) { if (transactionId == null || transactionId.isBlank()) { throw new IllegalArgumentException("Transaction ID must not be blank."); } return "APPROVED:" + transactionId; } }