parent
437a2e08ec
commit
1dd369167a
|
@ -6,6 +6,9 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- `TransactionOverview.txIdString()` to provide a readable transaction ID to SDK-consuming apps
|
||||
|
||||
### Changed
|
||||
- Gradle 8.5
|
||||
- Kotlin 1.9.21
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package cash.z.ecc.android.sdk.model
|
||||
|
||||
import cash.z.ecc.android.sdk.internal.ext.toHexReversed
|
||||
import cash.z.ecc.android.sdk.internal.model.DbTransactionOverview
|
||||
|
||||
/**
|
||||
|
@ -29,6 +30,11 @@ data class TransactionOverview internal constructor(
|
|||
) {
|
||||
override fun toString() = "TransactionOverview"
|
||||
|
||||
/**
|
||||
* @return Transaction ID in String obtained from `rawId`
|
||||
*/
|
||||
fun txIdString() = rawId.byteArray.toHexReversed()
|
||||
|
||||
companion object {
|
||||
internal fun new(
|
||||
dbTransactionOverview: DbTransactionOverview,
|
||||
|
|
Loading…
Reference in New Issue