pstds-proto/proto/event.thrift

25 lines
489 B
Thrift
Raw Normal View History

2020-08-27 11:04:25 +00:00
namespace java com.rbkmoney.pstds.event
namespace erlang pstds_event
include "base.thrift"
struct Event {
1: required base.SequenceID sequence
2: required base.Timestamp occured_at
3: required Change change
}
union Change {
1: TokenCreated token_created
2: StatusChanged status_changed
}
struct TokenCreated {
1: base.PaymentSystemToken token
}
struct StatusChanged {
1: required base.PaymentSystemToken token
2: required base.TokenStatus new_status
}