TD-572: Get payment routes limit values (#84)

* TD-572: add method for getting limits

* TD-572: add throw

* TD-572: fix type limits

* TD-572: fix issue

* TD-572: fix typo

* TD-572: rename branch, PR, method

---------

Co-authored-by: anatoliy.losev <losto@nix>
This commit is contained in:
ttt161 2023-05-19 12:04:13 +03:00 committed by GitHub
parent 03bf41075c
commit 52dbefd54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<domain.PaymentRoute, list<TurnoverLimitValue>> 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