PaymentService 정책 기반 전환 #1

Merged
forge-bot merged 4 commits from forge/BAIS-POLICY-1783705261-attempt-3 into main 2026-07-10 18:04:57 +00:00
Showing only changes of commit 1d34b48888 - Show all commits

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;
}
}