generated from pricelees/issue-pr-template
[#35] 결제 스키마 재정의 & 예약 조회 페이지 개선 #36
@ -26,6 +26,7 @@ class JacksonConfig {
|
||||
.registerModule(javaTimeModule())
|
||||
.registerModule(kotlinModule())
|
||||
.registerModule(longIdModule())
|
||||
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
|
||||
|
||||
private fun javaTimeModule(): JavaTimeModule = JavaTimeModule()
|
||||
.addSerializer(
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package roomescape.payment.infrastructure.client
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import java.time.OffsetDateTime
|
||||
|
||||
data class TossPaymentErrorResponse(
|
||||
@ -15,7 +14,6 @@ data class PaymentApproveRequest(
|
||||
val paymentType: String
|
||||
)
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class PaymentApproveResponse(
|
||||
val paymentKey: String,
|
||||
val orderId: String,
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package roomescape.payment.infrastructure.client.v2
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import com.fasterxml.jackson.core.JsonParser
|
||||
import com.fasterxml.jackson.databind.DeserializationContext
|
||||
import com.fasterxml.jackson.databind.JsonDeserializer
|
||||
@ -15,7 +14,6 @@ data class PaymentCancelRequestV2(
|
||||
val cancelReason: String
|
||||
)
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class PaymentCancelResponseV2(
|
||||
val status: PaymentStatus,
|
||||
@JsonDeserialize(using = CancelDetailDeserializer::class)
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package roomescape.payment.infrastructure.client.v2
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import roomescape.payment.infrastructure.common.*
|
||||
import java.time.OffsetDateTime
|
||||
|
||||
@ -8,10 +7,9 @@ data class PaymentConfirmRequest(
|
||||
val paymentKey: String,
|
||||
val orderId: String,
|
||||
val amount: Long,
|
||||
val paymentType: String,
|
||||
val paymentType: PaymentType,
|
||||
)
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class PaymentConfirmResponse(
|
||||
val paymentKey: String,
|
||||
val orderId: String,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user