blob: 880639f6ed1519700d2cb2b378f37ff0bf0c43aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
package net.taler.wallet.history
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME
import com.fasterxml.jackson.annotation.JsonTypeName
@JsonTypeInfo(
use = NAME,
include = PROPERTY,
property = "type"
)
@JsonSubTypes(
JsonSubTypes.Type(value = ReserveDepositTransaction::class, name = "DEPOSIT")
)
abstract class ReserveTransaction
@JsonTypeName("DEPOSIT")
class ReserveDepositTransaction(
/**
* Amount withdrawn.
*/
val amount: String,
/**
* Sender account payto://-URL
*/
@JsonProperty("sender_account_url")
val senderAccountUrl: String,
/**
* Transfer details uniquely identifying the transfer.
*/
@JsonProperty("wire_reference")
val wireReference: String,
/**
* Timestamp of the incoming wire transfer.
*/
val timestamp: Timestamp
) : ReserveTransaction()
|