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("법인"),