TD-407: Add terminal scope (#25)

* added terminal scope (and wallet id for wallet scope)

* added requested changes

* added email scope

* renamed
This commit is contained in:
Артем 2022-09-15 18:41:20 +03:00 committed by GitHub
parent 61581846b4
commit 31de59b17a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 2 deletions

View File

@ -12,3 +12,8 @@ union AmountBound {
1: domain.Amount inclusive
2: domain.Amount exclusive
}
struct Route {
1: optional domain.ProviderRef provider
2: optional domain.TerminalRef terminal
}

View File

@ -127,7 +127,9 @@ union LimitScopeType {
* See: https://github.com/valitydev/damsel/blob/2e1dbc1a/proto/domain.thrift#L1824-L1830
*/
5: LimitScopeEmptyDetails payment_tool
6: LimitScopeEmptyDetails provider
7: LimitScopeEmptyDetails terminal
8: LimitScopeEmptyDetails payer_contact_email
}
struct LimitScopeEmptyDetails {}

View File

@ -1,5 +1,5 @@
include "proto/base.thrift"
include "proto/domain.thrift"
include "limiter_base.thrift"
namespace java dev.vality.limiter.payproc.context
namespace erlang limproto.context.payproc
@ -40,4 +40,5 @@ struct InvoicePayment {
2: optional domain.InvoicePaymentAdjustment adjustment
3: optional domain.InvoicePaymentRefund refund
4: optional domain.InvoicePaymentChargeback chargeback
5: optional limiter_base.Route route
}

View File

@ -1,4 +1,7 @@
include "proto/withdrawals_domain.thrift"
include "proto/domain.thrift"
include "proto/base.thrift"
include "limiter_base.thrift"
namespace java dev.vality.limiter.withdrawal.context
namespace erlang limproto.context.withdrawal
@ -20,4 +23,6 @@ struct OperationWithdrawal {}
struct Withdrawal {
1: optional withdrawals_domain.Withdrawal withdrawal
2: optional limiter_base.Route route
3: optional base.ID wallet_id
}