diff --git a/proto/proxy_inspector.thrift b/proto/proxy_inspector.thrift index 13fe71f3..3283bfd8 100644 --- a/proto/proxy_inspector.thrift +++ b/proto/proxy_inspector.thrift @@ -68,10 +68,30 @@ struct Invoice { 5: optional domain.InvoiceClientInfo client_info } +struct ShopContext { + 1: required Party party + 2: required Shop shop +} + +struct InspectUserContext { + 1: required domain.ContactInfo user_info + 2: required list shop_list +} + +struct BlockedShops { + 1: required list shop_list +} + service InspectorProxy { domain.RiskScore InspectPayment (1: Context context) throws (1: base.InvalidRequest ex1) + /** + * Проверяет какие магазины недоступны для оплаты пользователю + **/ + BlockedShops InspectUser (1: InspectUserContext context) + throws (1: base.InvalidRequest ex1) + /** * Проверяет существование в черном списке **/