[#35] 결제 스키마 재정의 & 예약 조회 페이지 개선 #36

Merged
pricelees merged 37 commits from refactor/#35 into main 2025-08-22 06:43:16 +00:00
Showing only changes of commit b38a5242ce - Show all commits

View File

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