From 1496bf96e48eeef5dd25c601420c0f234a79d481 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 4 May 2020 14:50:05 -0300 Subject: clarify wallet transactions API sorting --- taler-wallet.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'taler-wallet.rst') diff --git a/taler-wallet.rst b/taler-wallet.rst index f9161211..379dba0c 100644 --- a/taler-wallet.rst +++ b/taler-wallet.rst @@ -102,7 +102,10 @@ Transactions are all operations or events that are affecting the balance. .. ts:def:: TransactionsResponse interface TransactionsResponse { - // a list of past and pending transactions + // a list of past and pending transactions sorted by pending, timestamp and transactionId. + // In case two events are both pending and have the same timestamp, + // they are sorted by the transactionId + // (lexically ascending and locale-independent comparison). transactions: Transaction[]; } @@ -120,6 +123,8 @@ Transactions are all operations or events that are affecting the balance. timestamp: Timestamp; // true if the transaction is still pending, false otherwise + // If a transaction is not longer pending, its timestamp will be updated, + // but its transactionId will remain unchanged pending: boolean; // Raw amount of the transaction (exclusive of fees or other extra costs) -- cgit v1.2.3