2018-07-17 14:32:10 +00:00
|
|
|
include "base.thrift"
|
|
|
|
include "domain.thrift"
|
|
|
|
|
2022-01-06 10:30:52 +00:00
|
|
|
namespace java dev.vality.damsel.withdrawals.domain
|
2018-07-17 14:32:10 +00:00
|
|
|
namespace erlang wthdm
|
|
|
|
|
|
|
|
/// Domain
|
|
|
|
|
|
|
|
struct Withdrawal {
|
|
|
|
1: required domain.Cash body
|
|
|
|
// Source ?
|
|
|
|
2: required Destination destination
|
|
|
|
3: optional Identity sender
|
|
|
|
4: optional Identity receiver
|
|
|
|
}
|
|
|
|
|
|
|
|
union Destination {
|
|
|
|
1: domain.BankCard bank_card
|
2019-05-15 10:44:12 +00:00
|
|
|
2: domain.CryptoWallet crypto_wallet
|
|
|
|
3: domain.DigitalWallet digital_wallet
|
2022-02-02 16:58:13 +00:00
|
|
|
4: domain.GenericPaymentTool generic
|
2018-07-17 14:32:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Identity {
|
|
|
|
1: required base.ID id
|
|
|
|
2: optional list<IdentityDocument> documents
|
|
|
|
3: optional list<ContactDetail> contact
|
|
|
|
}
|
|
|
|
|
|
|
|
union IdentityDocument {
|
|
|
|
1: RUSDomesticPassport rus_domestic_passport
|
|
|
|
}
|
|
|
|
|
|
|
|
struct RUSDomesticPassport {
|
|
|
|
1: required string token
|
|
|
|
2: optional string fullname_masked
|
|
|
|
}
|
|
|
|
|
|
|
|
union ContactDetail {
|
|
|
|
1: string email
|
|
|
|
2: string phone_number
|
|
|
|
}
|