mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 01:35:19 +00:00
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:
parent
03bf41075c
commit
52dbefd54f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user