mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 17:55:23 +00:00
95b0d8df0d
* added trusted_client field to an InvoiceParams(payment_processing) and forwarded it to an Invoice(domain) * pushed field trusted_client to a proxy_inspector * HG-568: moved field trusted_client to an extra structure InvoiceClientInfo and renamed it to is_trusted
56 lines
1.4 KiB
Thrift
56 lines
1.4 KiB
Thrift
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
|
||
4: required Party party
|
||
}
|
||
|
||
struct Party {
|
||
1: required domain.PartyID party_id
|
||
}
|
||
|
||
struct Shop {
|
||
1: required domain.ShopID id
|
||
2: required domain.Category category
|
||
3: required domain.ShopDetails details
|
||
4: required domain.ShopLocation location
|
||
}
|
||
|
||
struct InvoicePayment {
|
||
1: required domain.InvoicePaymentID id
|
||
2: required base.Timestamp created_at
|
||
3: required domain.Payer payer
|
||
4: required domain.Cash cost
|
||
5: optional bool make_recurrent
|
||
}
|
||
|
||
struct Invoice {
|
||
1: required domain.InvoiceID id
|
||
2: required base.Timestamp created_at
|
||
3: required base.Timestamp due
|
||
4: required domain.InvoiceDetails details
|
||
5: optional domain.InvoiceClientInfo client_info
|
||
}
|
||
|
||
service InspectorProxy {
|
||
domain.RiskScore InspectPayment (1: Context context)
|
||
throws (1: base.InvalidRequest ex1)
|
||
}
|