Updated on 2026-08-14
This commit is contained in:
parent
ec8857a55e
commit
03c5bdd053
25 changed files with 1176 additions and 179 deletions
|
|
@ -79,11 +79,8 @@ data class ExchangeItemResponse(
|
|||
val createdAt: String,
|
||||
|
||||
/** Transaction last-update timestamp in ISO-8601 format */
|
||||
// todo txHistory uncomment
|
||||
/*
|
||||
@Json(name = "updatedAt")
|
||||
val updatedAt: String,
|
||||
*/
|
||||
|
||||
/** Pay-in expiration timestamp in ISO-8601 format */
|
||||
@Json(name = "payTill")
|
||||
|
|
|
|||
|
|
@ -44,11 +44,8 @@ data class OnrampItemResponse(
|
|||
val createdAt: String,
|
||||
|
||||
/** Transaction last-update timestamp in ISO-8601 format */
|
||||
// todo txHistory uncomment
|
||||
/*
|
||||
@Json(name = "updatedAt")
|
||||
val updatedAt: String,
|
||||
*/
|
||||
// endregion
|
||||
|
||||
// region fromAsset (fiat) info
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ fun ExchangeItemResponse.toEntity(): ExpressExchangeEntity? {
|
|||
refundNetwork = refundNetwork,
|
||||
refundContractAddress = refundContractAddress,
|
||||
createdAt = createdAt,
|
||||
updatedAt = ""/*updatedAt*/, // todo txHistory uncomment
|
||||
updatedAt = updatedAt,
|
||||
payTill = payTill,
|
||||
averageDuration = averageDuration,
|
||||
from = ExpressExchangeEntity.AssetEmbedded(
|
||||
|
|
@ -61,7 +61,7 @@ fun OnrampItemResponse.toEntity(): ExpressOnrampEntity {
|
|||
externalTxUrl = externalTxUrl,
|
||||
payoutHash = payoutHash,
|
||||
createdAt = createdAt,
|
||||
updatedAt = ""/*updatedAt*/, // todo txHistory uncomment,
|
||||
updatedAt = updatedAt,
|
||||
fromCurrencyCode = fromCurrencyCode,
|
||||
fromAmount = fromAmount,
|
||||
fromPrecision = fromPrecision,
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ internal class ExpressHistoryConverterTest {
|
|||
Truth.assertThat(entity.refundNetwork).isEqualTo(item.refundNetwork)
|
||||
Truth.assertThat(entity.refundContractAddress).isEqualTo(item.refundContractAddress)
|
||||
Truth.assertThat(entity.createdAt).isEqualTo(item.createdAt)
|
||||
// todo txHistory uncomment
|
||||
// Truth.assertThat(entity.updatedAt).isEqualTo(item.updatedAt)
|
||||
Truth.assertThat(entity.updatedAt).isEqualTo(item.updatedAt)
|
||||
Truth.assertThat(entity.payTill).isEqualTo(item.payTill)
|
||||
Truth.assertThat(entity.averageDuration).isEqualTo(item.averageDuration)
|
||||
}
|
||||
|
|
@ -233,8 +232,7 @@ internal class ExpressHistoryConverterTest {
|
|||
refundNetwork = refundNetwork,
|
||||
refundContractAddress = refundContractAddress,
|
||||
createdAt = "2026-06-01T00:00:00Z",
|
||||
// todo txHistory uncomment
|
||||
// updatedAt = "2026-06-01T00:05:00Z",
|
||||
updatedAt = "2026-06-01T00:05:00Z",
|
||||
payTill = payTill,
|
||||
averageDuration = averageDuration,
|
||||
fromContractAddress = "0xfromContract",
|
||||
|
|
@ -266,8 +264,7 @@ internal class ExpressHistoryConverterTest {
|
|||
externalTxUrl = externalTxUrl,
|
||||
payoutHash = payoutHash,
|
||||
createdAt = "2026-06-01T00:00:00Z",
|
||||
// todo txHistory uncomment
|
||||
// updatedAt = "2026-06-01T00:05:00Z",
|
||||
updatedAt = "2026-06-01T00:05:00Z",
|
||||
fromCurrencyCode = "USD",
|
||||
fromAmount = "100.0",
|
||||
fromPrecision = 2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue