mirror of
https://github.com/valitydev/limiter-proto.git
synced 2024-11-06 08:45:17 +00:00
31de59b17a
* added terminal scope (and wallet id for wallet scope) * added requested changes * added email scope * renamed
29 lines
757 B
Thrift
29 lines
757 B
Thrift
include "proto/withdrawals_domain.thrift"
|
|
include "proto/domain.thrift"
|
|
include "proto/base.thrift"
|
|
include "limiter_base.thrift"
|
|
|
|
namespace java dev.vality.limiter.withdrawal.context
|
|
namespace erlang limproto.context.withdrawal
|
|
|
|
/**
|
|
* Контекст, получаемый из сервисов, реализующих один из интерфейсов протокола
|
|
* (например withdrawal в fistful)
|
|
*/
|
|
struct Context {
|
|
1: optional Operation op
|
|
2: optional Withdrawal withdrawal
|
|
}
|
|
|
|
union Operation {
|
|
1: OperationWithdrawal withdrawal
|
|
}
|
|
|
|
struct OperationWithdrawal {}
|
|
|
|
struct Withdrawal {
|
|
1: optional withdrawals_domain.Withdrawal withdrawal
|
|
2: optional limiter_base.Route route
|
|
3: optional base.ID wallet_id
|
|
}
|