feat(charge): 결제 완료 응답에 충전 ID를 추가한다
This commit is contained in:
@@ -3,6 +3,7 @@ package kr.co.vividnext.sodalive.can.charge
|
||||
import java.math.BigDecimal
|
||||
|
||||
data class ChargeCompleteResponse(
|
||||
val chargeId: Long,
|
||||
val price: BigDecimal,
|
||||
val currencyCode: String,
|
||||
val isFirstCharged: Boolean,
|
||||
|
||||
@@ -716,6 +716,7 @@ class ChargeService(
|
||||
|
||||
private fun completeResponse(charge: Charge): ChargeCompleteResponse {
|
||||
return ChargeCompleteResponse(
|
||||
chargeId = charge.id!!,
|
||||
price = charge.payment!!.price,
|
||||
currencyCode = charge.payment!!.locale?.takeLast(3) ?: "KRW",
|
||||
isFirstCharged = charge.isFirstCharged == true,
|
||||
|
||||
Reference in New Issue
Block a user