Merge pull request #3 from rbkmoney/CAPI-357-new-api-call

Added GetInternalID
This commit is contained in:
Sergey Elin 2019-06-05 18:43:04 +03:00 committed by GitHub
commit d765b9dfeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,18 @@ include "proto/msgpack.thrift"
typedef string ExternalID
typedef string InternalID
exception InternalIDNotFound {}
struct GenerationResult {
1: required InternalID internal_id
2: optional msgpack.Value context
}
struct GetInternalIDResult {
1: required InternalID internal_id
2: required msgpack.Value context
}
union GenerationSchema {
1: SnowflakeSchema snowflake
2: ConstantSchema constant
@ -33,4 +40,7 @@ service Bender {
GenerationResult GenerateID (1: ExternalID external_id, 2: GenerationSchema schema, 3: msgpack.Value context)
GetInternalIDResult GetInternalID (1: ExternalID external_id)
throws (1: InternalIDNotFound ex1)
}