From aab11dfa2d7f1ebfd8c9397280ce801ec01d1f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Fri, 22 Feb 2019 11:05:25 +0300 Subject: [PATCH] DC-115: Partial capture permit (#407) --- proto/domain.thrift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proto/domain.thrift b/proto/domain.thrift index efbae96..4c2e536 100644 --- a/proto/domain.thrift +++ b/proto/domain.thrift @@ -801,8 +801,12 @@ struct PaymentsServiceTerms { struct PaymentHoldsServiceTerms { 1: optional PaymentMethodSelector payment_methods 2: optional HoldLifetimeSelector lifetime + /* Allow partial capture if this undefined, otherwise throw exception */ + 3: optional PartialCaptureServiceTerms partial_captures } +struct PartialCaptureServiceTerms {} + struct PaymentRefundsServiceTerms { 1: optional PaymentMethodSelector payment_methods 2: optional CashFlowSelector fees @@ -1636,8 +1640,12 @@ struct PaymentsProvisionTerms { struct PaymentHoldsProvisionTerms { 1: required HoldLifetimeSelector lifetime + /* Allow partial capture if this undefined, otherwise throw exception */ + 2: optional PartialCaptureProvisionTerms partial_captures } +struct PartialCaptureProvisionTerms {} + struct PaymentRefundsProvisionTerms { 1: required CashFlowSelector cash_flow /**