diff --git a/.forge/BAIS-POLICY-1783705261-attempt-2.md b/.forge/BAIS-POLICY-1783705261-attempt-2.md new file mode 100644 index 0000000..a0f3663 --- /dev/null +++ b/.forge/BAIS-POLICY-1783705261-attempt-2.md @@ -0,0 +1,3 @@ +# BAIS-POLICY-1783705261-attempt-2 + +Forge 이슈 작업 브랜치 `forge/BAIS-POLICY-1783705261-attempt-2`. diff --git a/src/main/java/com/example/baispolicy/PaymentService.java b/src/main/java/com/example/baispolicy/PaymentService.java new file mode 100644 index 0000000..55047c9 --- /dev/null +++ b/src/main/java/com/example/baispolicy/PaymentService.java @@ -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; + } +} \ No newline at end of file