Skip to content

Commit 52dbefd

Browse files
ttt161anatoliy.losev
andauthored
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>
1 parent 03bf410 commit 52dbefd

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

proto/payment_processing.thrift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,15 @@ struct InvoiceRepairParams {
890890
1: optional bool validate_transitions = true
891891
}
892892

893+
/* Значение лимита. */
894+
struct TurnoverLimitValue {
895+
1: required domain.TurnoverLimit limit
896+
2: required domain.Amount value
897+
}
898+
899+
typedef map<domain.PaymentRoute, list<TurnoverLimitValue>> RouteLimitContext
900+
901+
893902
// Exceptions
894903

895904
// forward-declared
@@ -1505,6 +1514,13 @@ service Invoicing {
15051514
2: InvoiceNotFound ex2,
15061515
3: base.InvalidRequest ex3
15071516
)
1517+
1518+
RouteLimitContext GetPaymentRoutesLimitValues (1: domain.InvoiceID id, 2: domain.InvoicePaymentID payment_id)
1519+
throws (
1520+
1: InvoiceNotFound ex1,
1521+
2: InvoicePaymentNotFound ex2
1522+
3: base.InvalidRequest ex3
1523+
)
15081524
}
15091525

15101526
// @NOTE: Argument and exception tags start with 2 for historical reasons

0 commit comments

Comments
 (0)