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)
67 lines
1.3 KiB
Thrift
67 lines
1.3 KiB
Thrift
/**
|
|
* Сервис для манипуляции непрозрачным контекстом объектов.
|
|
*/
|
|
|
|
include "msgpack.thrift"
|
|
|
|
namespace java com.rbkmoney.damsel.context
|
|
namespace erlang ctx
|
|
|
|
// Types
|
|
|
|
/**
|
|
* Пространство имён, отделяющее конексты одного сервиса.
|
|
*
|
|
* Например, `com.rbkmoney.capi`.
|
|
*/
|
|
typedef string Namespace
|
|
|
|
/**
|
|
* Структурированное значение контекста в формате msgpack.
|
|
*
|
|
* Например, `{"metadata": {"order": "N1488"}}`.
|
|
*/
|
|
typedef msgpack.Value Context
|
|
|
|
typedef map<Namespace, Context> ContextSet
|
|
|
|
union Change {
|
|
1: ContextSet put
|
|
2: Namespace deleted
|
|
}
|
|
|
|
// Service
|
|
|
|
exception ObjectNotFound {}
|
|
exception Forbidden {}
|
|
|
|
typedef string ObjectID
|
|
|
|
service Contexts {
|
|
|
|
Context Get (
|
|
1: ObjectID id
|
|
2: Namespace ns
|
|
) throws (
|
|
1: ObjectNotFound ex1
|
|
)
|
|
|
|
void Put (
|
|
1: ObjectID id
|
|
2: Namespace ns
|
|
3: Context context
|
|
) throws (
|
|
1: ObjectNotFound ex1
|
|
2: Forbidden ex2
|
|
)
|
|
|
|
void Delete (
|
|
1: ObjectID id
|
|
2: Namespace ns
|
|
) throws (
|
|
1: ObjectNotFound ex1
|
|
2: Forbidden ex2
|
|
)
|
|
|
|
}
|