pstds-proto/proto/storage.thrift
Inal Arsanukaev 79d883032a
Move to gh actions (#2)
* Move to gh actions

* Remove build_utils

Co-authored-by: Inal Arsanukaev <inalarsanukaev@192.168.1.3>
2022-01-20 11:01:00 +03:00

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)
}