diff --git a/proto/payment_processing.thrift b/proto/payment_processing.thrift index ac9d382b..64a4c0ac 100644 --- a/proto/payment_processing.thrift +++ b/proto/payment_processing.thrift @@ -890,6 +890,15 @@ struct InvoiceRepairParams { 1: optional bool validate_transitions = true } +/* Значение лимита. */ +struct TurnoverLimitValue { + 1: required domain.TurnoverLimit limit + 2: required domain.Amount value +} + +typedef map> RouteLimitContext + + // Exceptions // forward-declared @@ -1505,6 +1514,13 @@ service Invoicing { 2: InvoiceNotFound ex2, 3: base.InvalidRequest ex3 ) + + RouteLimitContext GetPaymentRoutesLimitValues (1: domain.InvoiceID id, 2: domain.InvoicePaymentID payment_id) + throws ( + 1: InvoiceNotFound ex1, + 2: InvoicePaymentNotFound ex2 + 3: base.InvalidRequest ex3 + ) } // @NOTE: Argument and exception tags start with 2 for historical reasons