mirror of
https://github.com/valitydev/pstds-proto.git
synced 2024-11-06 00:55:21 +00:00
79d883032a
* Move to gh actions * Remove build_utils Co-authored-by: Inal Arsanukaev <inalarsanukaev@192.168.1.3>
45 lines
1.3 KiB
Thrift
45 lines
1.3 KiB
Thrift
namespace java dev.vality.pstds.storage
|
|
namespace erlang pstds_storage
|
|
|
|
include "base.thrift"
|
|
|
|
struct PaymentSystemTokenResult {
|
|
1: required base.Token payment_system_token
|
|
}
|
|
|
|
exception PaymentSystemTokenNotFound{}
|
|
|
|
exception InvalidTokenExpData {}
|
|
|
|
/**
|
|
* Интерфейс для приложений
|
|
*/
|
|
service Storage {
|
|
|
|
/** Получить данные платёжного токена */
|
|
base.PaymentSystemTokenData GetPaymentSystemTokenData(1: base.Token token, 2: base.TokenRevision revision)
|
|
throws (1: PaymentSystemTokenNotFound not_found)
|
|
|
|
/** Сохранить платёжный токен */
|
|
PaymentSystemTokenResult PutPaymentSystemToken(
|
|
1: base.PaymentSystemTokenData payment_system_token,
|
|
2: base.Token bank_card_token
|
|
)
|
|
throws (1: InvalidTokenExpData invalid_exp_data)
|
|
|
|
/** Обновить статус платёжного токена
|
|
* Параметры:
|
|
* - token - параметры токена, ревизия - latest
|
|
**/
|
|
void UpdatePaymentSystemTokenStatus(
|
|
1: base.Token token,
|
|
2: base.TokenStatus updated_status
|
|
)
|
|
throws (1: PaymentSystemTokenNotFound not_found)
|
|
|
|
base.TokenRevision GetTokenRevision(1: base.Token token)
|
|
throws (1: PaymentSystemTokenNotFound not_found)
|
|
|
|
}
|
|
|