mirror of
https://github.com/valitydev/pstds-proto.git
synced 2024-11-06 09:05:24 +00:00
25 lines
489 B
Thrift
25 lines
489 B
Thrift
|
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
|
||
|
}
|