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

This commit is contained in:
forge-bot 2026-07-10 17:42:21 +00:00
parent 2d291738c6
commit 2891cd2710

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("transactionId cannot be blank");
}
return "APPROVED:" + transactionId;
}
}