diff options
Diffstat (limited to 'wallet/src/main/java')
5 files changed, 9 insertions, 9 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/deposit/TransactionDepositComposable.kt b/wallet/src/main/java/net/taler/wallet/deposit/TransactionDepositComposable.kt index aa75c56..7c5c7a2 100644 --- a/wallet/src/main/java/net/taler/wallet/deposit/TransactionDepositComposable.kt +++ b/wallet/src/main/java/net/taler/wallet/deposit/TransactionDepositComposable.kt @@ -82,7 +82,7 @@ fun TransactionDepositComposable(t: TransactionDeposit, onDelete: () -> Unit) { fun TransactionDepositComposablePreview() { val t = TransactionDeposit( transactionId = "transactionId", - timestamp = Timestamp(System.currentTimeMillis() - 360 * 60 * 1000), + timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), pending = true, depositGroupId = "fooBar", amountRaw = Amount.fromDouble("TESTKUDOS", 42.1337), diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt index 3179024..82a16be 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt @@ -81,13 +81,13 @@ fun ColumnScope.TransactionPeerPullCreditComposable(t: TransactionPeerPullCredit fun TransactionPeerPullCreditPreview() { val t = TransactionPeerPullCredit( transactionId = "transactionId", - timestamp = Timestamp(System.currentTimeMillis() - 360 * 60 * 1000), + timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), pending = true, exchangeBaseUrl = "https://exchange.example.org/", amountRaw = Amount.fromDouble("TESTKUDOS", 42.23), amountEffective = Amount.fromDouble("TESTKUDOS", 42.1337), info = PeerInfoShort( - expiration = Timestamp(System.currentTimeMillis() + 60 * 60 * 1000), + expiration = Timestamp.fromMillis(System.currentTimeMillis() + 60 * 60 * 1000), summary = "test invoice", ), talerUri = "https://exchange.example.org/peer/pull/credit", diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt index 823126b..fc14ec1 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullDebit.kt @@ -61,13 +61,13 @@ fun TransactionPeerPullDebitComposable(t: TransactionPeerPullDebit) { fun TransactionPeerPullDebitPreview() { val t = TransactionPeerPullDebit( transactionId = "transactionId", - timestamp = Timestamp(System.currentTimeMillis() - 360 * 60 * 1000), + timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), pending = true, exchangeBaseUrl = "https://exchange.example.org/", amountRaw = Amount.fromDouble("TESTKUDOS", 42.1337), amountEffective = Amount.fromDouble("TESTKUDOS", 42.23), info = PeerInfoShort( - expiration = Timestamp(System.currentTimeMillis() + 60 * 60 * 1000), + expiration = Timestamp.fromMillis(System.currentTimeMillis() + 60 * 60 * 1000), summary = "test invoice", ), ) diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt index b986f57..ae8e7ac 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushCredit.kt @@ -61,13 +61,13 @@ fun TransactionPeerPushCreditComposable(t: TransactionPeerPushCredit) { fun TransactionPeerPushCreditPreview() { val t = TransactionPeerPushCredit( transactionId = "transactionId", - timestamp = Timestamp(System.currentTimeMillis() - 360 * 60 * 1000), + timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), pending = true, exchangeBaseUrl = "https://exchange.example.org/", amountRaw = Amount.fromDouble("TESTKUDOS", 42.23), amountEffective = Amount.fromDouble("TESTKUDOS", 42.1337), info = PeerInfoShort( - expiration = Timestamp(System.currentTimeMillis() + 60 * 60 * 1000), + expiration = Timestamp.fromMillis(System.currentTimeMillis() + 60 * 60 * 1000), summary = "test invoice", ), ) diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt index 18528f9..2eb1c86 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt @@ -79,13 +79,13 @@ fun ColumnScope.TransactionPeerPushDebitComposable(t: TransactionPeerPushDebit) fun TransactionPeerPushDebitPreview() { val t = TransactionPeerPushDebit( transactionId = "transactionId", - timestamp = Timestamp(System.currentTimeMillis() - 360 * 60 * 1000), + timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), pending = true, exchangeBaseUrl = "https://exchange.example.org/", amountRaw = Amount.fromDouble("TESTKUDOS", 42.1337), amountEffective = Amount.fromDouble("TESTKUDOS", 42.23), info = PeerInfoShort( - expiration = Timestamp(System.currentTimeMillis() + 60 * 60 * 1000), + expiration = Timestamp.fromMillis(System.currentTimeMillis() + 60 * 60 * 1000), summary = "test invoice", ), talerUri = "https://exchange.example.org/peer/pull/credit", |