From d92c893ba6df606bf377470b2e1e0eaae11b0c6b Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 01:37:38 +0000 Subject: [PATCH 1/5] forge: open work branch for BAIS-REM-1783820063-attempt-3 --- .forge/BAIS-REM-1783820063-attempt-3.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-REM-1783820063-attempt-3.md diff --git a/.forge/BAIS-REM-1783820063-attempt-3.md b/.forge/BAIS-REM-1783820063-attempt-3.md new file mode 100644 index 0000000..6bdcc5b --- /dev/null +++ b/.forge/BAIS-REM-1783820063-attempt-3.md @@ -0,0 +1,3 @@ +# BAIS-REM-1783820063-attempt-3 + +Forge 이슈 작업 브랜치 `forge/BAIS-REM-1783820063-attempt-3`. -- 2.49.1 From 1b263ce9a17e41e582376862837654ae22422906 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 01:37:49 +0000 Subject: [PATCH 2/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(BAIS-REM-1783820063)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d3c96cb --- /dev/null +++ b/pom.xml @@ -0,0 +1,14 @@ + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.5.14 + + bais-platform + 1.0-SNAPSHOT + pom + + services/payments + + \ No newline at end of file -- 2.49.1 From d5f5e270d6a80287fa662be454045bf43a62741c Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 01:37:50 +0000 Subject: [PATCH 3/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(BAIS-REM-1783820063)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/payments/pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 services/payments/pom.xml diff --git a/services/payments/pom.xml b/services/payments/pom.xml new file mode 100644 index 0000000..7706cba --- /dev/null +++ b/services/payments/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + + com.klaro.bais + bais-platform + 1.0-SNAPSHOT + ../../pom.xml + + payments + 1.0-SNAPSHOT + + + org.apache.commons + commons-lang3 + 3.18.0 + + + \ No newline at end of file -- 2.49.1 From 71d3e59ff0aac5afe51cdfb00535c7458fcdc31b Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 01:37:51 +0000 Subject: [PATCH 4/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(BAIS-REM-1783820063)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/klaro/bais/payments/PaymentReferenceService.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java diff --git a/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java b/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java new file mode 100644 index 0000000..d2a01b3 --- /dev/null +++ b/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java @@ -0,0 +1,9 @@ +package com.klaro.bais.payments; + +import org.apache.commons.lang3.StringUtils; + +public class PaymentReferenceService { + public String normalize(String reference) { + return StringUtils.trimToEmpty(reference); + } +} \ No newline at end of file -- 2.49.1 From 233011a8e120405e4e9367096070297bbcf7f7e9 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 01:37:52 +0000 Subject: [PATCH 5/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(BAIS-REM-1783820063)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payments/PaymentReferenceServiceTest.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java diff --git a/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java b/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java new file mode 100644 index 0000000..a326db7 --- /dev/null +++ b/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java @@ -0,0 +1,28 @@ +package com.klaro.bais.payments; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +class PaymentReferenceServiceTest { + private final PaymentReferenceService service = new PaymentReferenceService(); + + @Test + void testNormalize_Null() { + assertEquals("", service.normalize(null)); + } + + @Test + void testNormalize_Empty() { + assertEquals("", service.normalize("")); + } + + @Test + void testNormalize_Whitespace() { + assertEquals("", service.normalize(" ")); + } + + @Test + void testNormalize_ValidString() { + assertEquals("validReference", service.normalize("validReference")); + } +} \ No newline at end of file -- 2.49.1