2022-06-14 12:53:59 +00:00
|
|
|
|
include "proto/domain.thrift"
|
2022-09-15 15:41:20 +00:00
|
|
|
|
include "limiter_base.thrift"
|
2022-06-14 12:53:59 +00:00
|
|
|
|
|
|
|
|
|
namespace java dev.vality.limiter.payproc.context
|
2022-06-23 11:32:58 +00:00
|
|
|
|
namespace erlang limproto.context.payproc
|
2022-06-14 12:53:59 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Контекст, получаемый из сервисов, реализующих один из интерфейсов протокола
|
|
|
|
|
* (например invoicing в hellgate)
|
|
|
|
|
*/
|
|
|
|
|
struct Context {
|
|
|
|
|
1: optional Operation op
|
|
|
|
|
2: optional Invoice invoice
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
union Operation {
|
|
|
|
|
1: OperationInvoice invoice
|
|
|
|
|
3: OperationInvoicePayment invoice_payment
|
|
|
|
|
4: OperationInvoicePaymentAdjustment invoice_payment_adjustment
|
|
|
|
|
5: OperationInvoicePaymentRefund invoice_payment_refund
|
|
|
|
|
6: OperationInvoicePaymentChargeback invoice_payment_chargeback
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct OperationInvoice {}
|
|
|
|
|
struct OperationInvoicePayment {}
|
|
|
|
|
struct OperationInvoicePaymentAdjustment {}
|
|
|
|
|
struct OperationInvoicePaymentRefund {}
|
|
|
|
|
struct OperationInvoicePaymentChargeback {}
|
|
|
|
|
|
|
|
|
|
struct Invoice {
|
|
|
|
|
1: optional domain.Invoice invoice
|
2022-06-15 08:15:36 +00:00
|
|
|
|
2: optional InvoicePayment payment
|
2022-06-14 12:53:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct InvoicePayment {
|
|
|
|
|
1: optional domain.InvoicePayment payment
|
|
|
|
|
2: optional domain.InvoicePaymentAdjustment adjustment
|
|
|
|
|
3: optional domain.InvoicePaymentRefund refund
|
|
|
|
|
4: optional domain.InvoicePaymentChargeback chargeback
|
2022-09-15 15:41:20 +00:00
|
|
|
|
5: optional limiter_base.Route route
|
2022-06-14 12:53:59 +00:00
|
|
|
|
}
|