-
Notifications
You must be signed in to change notification settings - Fork 0
/
event.go
44 lines (37 loc) · 1.05 KB
/
event.go
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
43
44
package ledger
type WalletFundsTransferred struct {
Source string `json:"source"`
Destination string `json:"destination"`
Amount int32 `json:"amount"`
Aggregate string `json:"aggregate"`
}
type WalletFundsDeposited struct {
Wallet string `json:"wallet"`
Deposit int32 `json:"deposit"`
Aggregate string `json:"aggregate"`
}
type WalletFundsWithdrawn struct {
Wallet string `json:"wallet"`
Withdraw int32 `json:"withdraw"`
Aggregate string `json:"aggregate"`
}
type CreditTransactionAdded struct {
Wallet string `json:"wallet"`
Credit int32 `json:"credit"`
Aggregate string `json:"aggregate"`
}
type DebitTransactionAdded struct {
Wallet string `json:"wallet"`
Debit int32 `json:"debit"`
Aggregate string `json:"aggregate"`
}
type CashInTransactionAdded struct {
Wallet string `json:"wallet"`
Credit int32 `json:"credit"`
Aggregate string `json:"aggregate"`
}
type CashOutTransactionAdded struct {
Wallet string `json:"wallet"`
Debit int32 `json:"debit"`
Aggregate string `json:"aggregate"`
}