generated from pricelees/issue-pr-template
fix: ErrorType내 오타 수정
This commit is contained in:
parent
d52e30df4f
commit
54207c2826
@ -32,7 +32,7 @@ enum class ErrorType(
|
|||||||
RESERVATION_NOT_FOUND("예약(Reservation) 정보가 존재하지 않습니다."),
|
RESERVATION_NOT_FOUND("예약(Reservation) 정보가 존재하지 않습니다."),
|
||||||
RESERVATION_TIME_NOT_FOUND("예약 시간(ReservationTime) 정보가 존재하지 않습니다."),
|
RESERVATION_TIME_NOT_FOUND("예약 시간(ReservationTime) 정보가 존재하지 않습니다."),
|
||||||
THEME_NOT_FOUND("테마(Theme) 정보가 존재하지 않습니다."),
|
THEME_NOT_FOUND("테마(Theme) 정보가 존재하지 않습니다."),
|
||||||
PAYMENT_NOT_POUND("결제(Payment) 정보가 존재하지 않습니다."),
|
PAYMENT_NOT_FOUND("결제(Payment) 정보가 존재하지 않습니다."),
|
||||||
|
|
||||||
// 405 Method Not Allowed
|
// 405 Method Not Allowed
|
||||||
METHOD_NOT_ALLOWED("지원하지 않는 HTTP Method 입니다."),
|
METHOD_NOT_ALLOWED("지원하지 않는 HTTP Method 입니다."),
|
||||||
@ -52,7 +52,8 @@ enum class ErrorType(
|
|||||||
|
|
||||||
// Payment Error
|
// Payment Error
|
||||||
PAYMENT_ERROR("결제(취소)에 실패했습니다. 결제(취소) 정보를 확인해주세요."),
|
PAYMENT_ERROR("결제(취소)에 실패했습니다. 결제(취소) 정보를 확인해주세요."),
|
||||||
PAYMENT_SERVER_ERROR("결제 서버에서 에러가 발생하였습니다. 잠시 후 다시 시도해주세요.");
|
PAYMENT_SERVER_ERROR("결제 서버에서 에러가 발생하였습니다. 잠시 후 다시 시도해주세요.")
|
||||||
|
;
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
|
|||||||
@ -58,7 +58,7 @@ class PaymentService(
|
|||||||
fun cancelPaymentByAdmin(reservationId: Long): PaymentCancel.Request {
|
fun cancelPaymentByAdmin(reservationId: Long): PaymentCancel.Request {
|
||||||
val paymentKey: String = paymentRepository.findPaymentKeyByReservationId(reservationId)
|
val paymentKey: String = paymentRepository.findPaymentKeyByReservationId(reservationId)
|
||||||
?: throw RoomescapeException(
|
?: throw RoomescapeException(
|
||||||
ErrorType.PAYMENT_NOT_POUND,
|
ErrorType.PAYMENT_NOT_FOUND,
|
||||||
"[reservationId: $reservationId]",
|
"[reservationId: $reservationId]",
|
||||||
HttpStatus.NOT_FOUND
|
HttpStatus.NOT_FOUND
|
||||||
)
|
)
|
||||||
@ -76,7 +76,7 @@ class PaymentService(
|
|||||||
val paymentEntity: PaymentEntity = paymentRepository.findByPaymentKey(paymentKey)
|
val paymentEntity: PaymentEntity = paymentRepository.findByPaymentKey(paymentKey)
|
||||||
?.also { paymentRepository.delete(it) }
|
?.also { paymentRepository.delete(it) }
|
||||||
?: throw RoomescapeException(
|
?: throw RoomescapeException(
|
||||||
ErrorType.PAYMENT_NOT_POUND,
|
ErrorType.PAYMENT_NOT_FOUND,
|
||||||
"[paymentKey: $paymentKey]",
|
"[paymentKey: $paymentKey]",
|
||||||
HttpStatus.NOT_FOUND
|
HttpStatus.NOT_FOUND
|
||||||
)
|
)
|
||||||
@ -100,7 +100,7 @@ class PaymentService(
|
|||||||
canceledPaymentRepository.findByPaymentKey(paymentKey)?.let {
|
canceledPaymentRepository.findByPaymentKey(paymentKey)?.let {
|
||||||
it.canceledAt = canceledAt
|
it.canceledAt = canceledAt
|
||||||
} ?: throw RoomescapeException(
|
} ?: throw RoomescapeException(
|
||||||
ErrorType.PAYMENT_NOT_POUND,
|
ErrorType.PAYMENT_NOT_FOUND,
|
||||||
"[paymentKey: $paymentKey]",
|
"[paymentKey: $paymentKey]",
|
||||||
HttpStatus.NOT_FOUND
|
HttpStatus.NOT_FOUND
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user