damsel/proto/proxy_inspector.thrift
Artem Ocheredko 2b2e19e73b PROX-40 Add missed invoice info and context (#100)
* PROX-40 Add missed invoice info and context

* PROX-40 Add postreview fixes
2016-12-27 11:55:26 +03:00

46 lines
1.1 KiB
Thrift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

include "base.thrift"
include "domain.thrift"
namespace java com.rbkmoney.damsel.proxy_inspector
namespace erlang proxy_inspector
/**
* Набор данных для взаимодействия с инспекторским прокси.
*/
struct Context {
1: required PaymentInfo payment
2: optional domain.ProxyOptions options = {}
}
/**
* Данные платежа, необходимые для инспекции платежа.
*/
struct PaymentInfo {
1: required Shop shop
2: required InvoicePayment payment
3: required Invoice invoice
}
struct Shop {
1: required domain.ShopID id
2: required domain.Category category
3: required domain.ShopDetails details
}
struct InvoicePayment {
1: required domain.InvoicePaymentID id
2: required base.Timestamp created_at
3: required domain.Payer payer
4: required domain.Cash cost
}
struct Invoice {
1 : required domain.InvoiceID id
2 : required base.Timestamp created_at
3 : required base.Timestamp due
}
service InspectorProxy {
domain.RiskScore InspectPayment (1: Context context)
}