From b38a5242ceb6b0175a8f6632fd51a4793594d697 Mon Sep 17 00:00:00 2001 From: pricelees Date: Mon, 18 Aug 2025 15:53:30 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20PaymentTypes=EB=82=B4=20private=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20=EB=B3=80=EC=88=98=EB=AA=85=20?= =?UTF-8?q?=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payment/infrastructure/common/PaymentTypes.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/roomescape/payment/infrastructure/common/PaymentTypes.kt b/src/main/kotlin/roomescape/payment/infrastructure/common/PaymentTypes.kt index e94a42b0..c2c5bf79 100644 --- a/src/main/kotlin/roomescape/payment/infrastructure/common/PaymentTypes.kt +++ b/src/main/kotlin/roomescape/payment/infrastructure/common/PaymentTypes.kt @@ -9,7 +9,7 @@ import roomescape.payment.exception.PaymentException private val log: KLogger = KotlinLogging.logger {} enum class PaymentType( - private val koreanName: String + val koreanName: String ) { NORMAL("일반결제"), BILLING("자동결제"), @@ -21,9 +21,9 @@ enum class PaymentType( @JvmStatic @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - fun get(code: String): PaymentType { - return CACHE[code.uppercase()] ?: run { - log.warn { "[PaymentTypes.PaymentType] 결제 타입 조회 실패: type=$code" } + fun get(name: String): PaymentType { + return CACHE[name.uppercase()] ?: run { + log.warn { "[PaymentTypes.PaymentType] 결제 타입 조회 실패: type=$name" } throw PaymentException(PaymentErrorCode.TYPE_NOT_FOUND) } } @@ -81,7 +81,7 @@ enum class PaymentStatus { } enum class CardType( - private val koreanName: String + val koreanName: String ) { CREDIT("신용"), CHECK("체크"), @@ -103,7 +103,7 @@ enum class CardType( } enum class CardOwnerType( - private val koreanName: String + val koreanName: String ) { PERSONAL("개인"), CORPORATE("법인"),