2022-01-20 08:01:00 +00:00
|
|
|
namespace java dev.vality.pstds.event
|
2020-08-27 11:04:25 +00:00
|
|
|
namespace erlang pstds_event
|
|
|
|
|
|
|
|
include "base.thrift"
|
|
|
|
|
2020-09-01 11:54:29 +00:00
|
|
|
struct TimestampedChange {
|
|
|
|
1: required base.Timestamp occured_at
|
|
|
|
2: required Change change
|
2020-08-27 11:04:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
union Change {
|
|
|
|
1: TokenCreated token_created
|
|
|
|
2: StatusChanged status_changed
|
|
|
|
}
|
|
|
|
|
|
|
|
struct TokenCreated {
|
2020-09-01 11:54:29 +00:00
|
|
|
1: required base.PaymentSystemTokenData token_data
|
2020-08-27 11:04:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct StatusChanged {
|
2020-09-01 16:01:33 +00:00
|
|
|
1: required base.TokenStatus new_status
|
2020-08-27 11:04:25 +00:00
|
|
|
}
|