2016-12-09 13:03:31 +00:00
|
|
|
|
include "base.thrift"
|
|
|
|
|
include "domain.thrift"
|
|
|
|
|
|
2022-01-06 10:30:52 +00:00
|
|
|
|
namespace java dev.vality.damsel.proxy_inspector
|
2022-06-16 16:36:21 +00:00
|
|
|
|
namespace erlang dmsl.proxy_inspector
|
2016-12-09 13:03:31 +00:00
|
|
|
|
|
2016-12-27 08:55:26 +00:00
|
|
|
|
/**
|
|
|
|
|
* Набор данных для взаимодействия с инспекторским прокси.
|
|
|
|
|
*/
|
|
|
|
|
struct Context {
|
|
|
|
|
1: required PaymentInfo payment
|
|
|
|
|
2: optional domain.ProxyOptions options = {}
|
|
|
|
|
}
|
2016-12-09 13:03:31 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Данные платежа, необходимые для инспекции платежа.
|
|
|
|
|
*/
|
|
|
|
|
struct PaymentInfo {
|
|
|
|
|
1: required Shop shop
|
|
|
|
|
2: required InvoicePayment payment
|
2016-12-27 08:55:26 +00:00
|
|
|
|
3: required Invoice invoice
|
2017-07-26 10:07:03 +00:00
|
|
|
|
4: required Party party
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct Party {
|
|
|
|
|
1: required domain.PartyID party_id
|
2016-12-09 13:03:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct Shop {
|
|
|
|
|
1: required domain.ShopID id
|
|
|
|
|
2: required domain.Category category
|
|
|
|
|
3: required domain.ShopDetails details
|
2017-07-17 10:21:41 +00:00
|
|
|
|
4: required domain.ShopLocation location
|
2016-12-09 13:03:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct InvoicePayment {
|
|
|
|
|
1: required domain.InvoicePaymentID id
|
|
|
|
|
2: required base.Timestamp created_at
|
|
|
|
|
3: required domain.Payer payer
|
|
|
|
|
4: required domain.Cash cost
|
2020-12-24 09:22:09 +00:00
|
|
|
|
5: optional bool make_recurrent
|
2021-10-22 08:10:51 +00:00
|
|
|
|
6: optional domain.Allocation allocation
|
2016-12-09 13:03:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-12-27 08:55:26 +00:00
|
|
|
|
struct Invoice {
|
2017-07-26 10:07:03 +00:00
|
|
|
|
1: required domain.InvoiceID id
|
|
|
|
|
2: required base.Timestamp created_at
|
|
|
|
|
3: required base.Timestamp due
|
|
|
|
|
4: required domain.InvoiceDetails details
|
2021-02-09 07:35:01 +00:00
|
|
|
|
5: optional domain.InvoiceClientInfo client_info
|
2016-12-27 08:55:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-12-09 13:03:31 +00:00
|
|
|
|
service InspectorProxy {
|
2016-12-27 08:55:26 +00:00
|
|
|
|
domain.RiskScore InspectPayment (1: Context context)
|
2016-12-27 10:05:43 +00:00
|
|
|
|
throws (1: base.InvalidRequest ex1)
|
2016-12-09 13:03:31 +00:00
|
|
|
|
}
|