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