From ea463b1a3c76b6a6520aead31faf463bf5103eb0 Mon Sep 17 00:00:00 2001 From: ttt161 Date: Tue, 7 Jul 2026 13:52:22 +0300 Subject: [PATCH 1/3] support for change withdrawal amount --- proto/withdrawals_provider_adapter.thrift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/withdrawals_provider_adapter.thrift b/proto/withdrawals_provider_adapter.thrift index 27ebc5f6..9860df65 100644 --- a/proto/withdrawals_provider_adapter.thrift +++ b/proto/withdrawals_provider_adapter.thrift @@ -61,6 +61,10 @@ union FinishStatus { struct Success { 1: optional domain.TransactionInfo trx_info + /** + * Измененная сумма операции. + */ + 2: optional Cash changed_cash } /** From ba6dc2b3eb6ba3b3cdf33ddb1432629d0b60544c Mon Sep 17 00:00:00 2001 From: ttt161 Date: Wed, 8 Jul 2026 14:12:57 +0300 Subject: [PATCH 2/3] replace changed withdrawal body to result structure --- proto/withdrawals_provider_adapter.thrift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/proto/withdrawals_provider_adapter.thrift b/proto/withdrawals_provider_adapter.thrift index 9860df65..b0190ae8 100644 --- a/proto/withdrawals_provider_adapter.thrift +++ b/proto/withdrawals_provider_adapter.thrift @@ -61,10 +61,6 @@ union FinishStatus { struct Success { 1: optional domain.TransactionInfo trx_info - /** - * Измененная сумма операции. - */ - 2: optional Cash changed_cash } /** @@ -158,6 +154,7 @@ struct ProcessResult { 1: required Intent intent 2: optional InternalState next_state 3: optional domain.TransactionInfo trx + 4: optional Cash changed_body } struct Quote { @@ -185,6 +182,7 @@ struct CallbackResult { 2: optional InternalState next_state 3: required CallbackResponse response 4: optional domain.TransactionInfo trx + 5: optional Cash changed_body } service Adapter { From f4d6180261ee73c87a17f2a39fdcdee4525f97a6 Mon Sep 17 00:00:00 2001 From: ttt161 Date: Mon, 13 Jul 2026 11:44:08 +0300 Subject: [PATCH 3/3] rename some fields --- proto/withdrawals_provider_adapter.thrift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/withdrawals_provider_adapter.thrift b/proto/withdrawals_provider_adapter.thrift index b0190ae8..ab5f8773 100644 --- a/proto/withdrawals_provider_adapter.thrift +++ b/proto/withdrawals_provider_adapter.thrift @@ -154,7 +154,7 @@ struct ProcessResult { 1: required Intent intent 2: optional InternalState next_state 3: optional domain.TransactionInfo trx - 4: optional Cash changed_body + 4: optional Cash new_body } struct Quote { @@ -182,7 +182,7 @@ struct CallbackResult { 2: optional InternalState next_state 3: required CallbackResponse response 4: optional domain.TransactionInfo trx - 5: optional Cash changed_body + 5: optional Cash new_body } service Adapter {