mirror of
https://github.com/valitydev/limiter-proto.git
synced 2024-11-06 00:35:18 +00:00
added destination
This commit is contained in:
parent
20dd4e77ee
commit
740292c9b4
@ -6,6 +6,9 @@ include "limiter_base.thrift"
|
||||
namespace java dev.vality.limiter.withdrawal.context
|
||||
namespace erlang limproto.context.withdrawal
|
||||
|
||||
typedef string Token
|
||||
typedef string ID
|
||||
|
||||
/**
|
||||
* Контекст, получаемый из сервисов, реализующих один из интерфейсов протокола
|
||||
* (например withdrawal в fistful)
|
||||
@ -25,4 +28,31 @@ struct Withdrawal {
|
||||
1: optional withdrawals_domain.Withdrawal withdrawal
|
||||
2: optional limiter_base.Route route
|
||||
3: optional base.ID wallet_id
|
||||
4: optional Destination destination
|
||||
}
|
||||
|
||||
struct Destination {
|
||||
1: optional AuthData auth_data
|
||||
2: optional Resource resource
|
||||
}
|
||||
|
||||
union AuthData {
|
||||
1: SenderReceiverAuthData sender_receiver
|
||||
}
|
||||
|
||||
struct SenderReceiverAuthData {
|
||||
1: optional Token sender
|
||||
2: optional Token receiver
|
||||
}
|
||||
|
||||
union Resource {
|
||||
1: ResourceBankCard bank_card
|
||||
}
|
||||
|
||||
struct ResourceBankCard {
|
||||
1: optional BankCard bank_card
|
||||
}
|
||||
|
||||
struct BankCard {
|
||||
1: optional Token token
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user