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)
53 lines
1.7 KiB
Thrift
53 lines
1.7 KiB
Thrift
include "base.thrift"
|
|
|
|
namespace java com.rbkmoney.damsel.identity_document_storage
|
|
namespace erlang ident_doc_store
|
|
|
|
/**
|
|
* Интерфейс для безопасного хранения идентификационных данных
|
|
*/
|
|
|
|
typedef string IdentityDocumentToken
|
|
|
|
union IdentityDocument {
|
|
1: RussianDomesticPassport russian_domestic_passport
|
|
2: RussianRetireeInsuranceCertificate russian_retiree_insurance_certificate
|
|
}
|
|
|
|
struct RussianDomesticPassport {
|
|
1: required string series
|
|
2: required string number
|
|
/* Наименование выдавшего паспорт органа */
|
|
3: required string issuer
|
|
/* Код подразделения выдавшего паспорт органа */
|
|
4: required string issuer_code
|
|
/* Дата выдачи паспорта */
|
|
5: required base.Timestamp issued_at
|
|
/* Фамилия гражданина */
|
|
6: required string family_name
|
|
/* Имя гражданина */
|
|
7: required string first_name
|
|
/* Отчество гражданина */
|
|
8: optional string patronymic
|
|
/* Дата рождения гражданина */
|
|
9: required base.Timestamp birth_date
|
|
/* Место рождения гражданина */
|
|
10: required string birth_place
|
|
}
|
|
|
|
/* Страховое свидетельство обязательного пенсионного страхования */
|
|
struct RussianRetireeInsuranceCertificate {
|
|
/* СНИЛС */
|
|
1: required string number
|
|
}
|
|
|
|
exception IdentityDocumentNotFound {}
|
|
|
|
service IdentityDocumentStorage {
|
|
|
|
IdentityDocumentToken Put (1: IdentityDocument identity_document)
|
|
|
|
IdentityDocument Get (1: IdentityDocumentToken token)
|
|
throws (1: IdentityDocumentNotFound not_found)
|
|
}
|