PaymentService 정책 기반 전환 (BAIS-POLICY-1783705261)

This commit is contained in:
forge-bot 2026-07-10 18:02:27 +00:00
parent 0294bea574
commit 1d34b48888

View file

@ -0,0 +1,10 @@
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;
}
}