2016-12-09 13:03:31 +00:00
|
|
|
|
include "base.thrift"
|
|
|
|
|
include "domain.thrift"
|
|
|
|
|
|
|
|
|
|
namespace java com.rbkmoney.damsel.proxy_inspector
|
|
|
|
|
namespace erlang proxy_inspector
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
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
|
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
|
|
|
|
}
|