mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 17:55:23 +00:00
36907b0e50
* DC-83: add RBKWallet to party management (#311) * DC-83: new exceptions for wallets & contractors (#330) * CDS-57: introduce identity storage service (#338) * HOOK-86: Hooks for wallets (#337) * HG-364 CDS-57 Rename indentity docs erlang namespace. (#339) Renamig is caused by review rbkmoney/cds#55 * HG-364 CDS-57 Simplify cds ident protocol. Move mask functions to API (#340) * HG-371: Introduce simplistic withdrawal processing (#333) * HG-371: add cumulative limits (#341) * add turnover limits to wallet service terms * add some thoughts in form of TODOs * Add rbkmoney to DigitalWalletProvider enum (#343) * DC-92: add ability to compute terms for wallet (#344)
40 lines
760 B
Thrift
40 lines
760 B
Thrift
include "base.thrift"
|
|
include "domain.thrift"
|
|
|
|
namespace java com.rbkmoney.damsel.withdrawals.domain
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|