From 608bcf8b091b6390855aefae84d84ce6f4960423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Wed, 12 Aug 2026 13:31:47 +0300 Subject: [PATCH] added --- proto/domain.thrift | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/proto/domain.thrift b/proto/domain.thrift index ca7de2a1..89267f1a 100644 --- a/proto/domain.thrift +++ b/proto/domain.thrift @@ -2781,8 +2781,44 @@ struct ExternalPaymentRoute { 1: required ShopConfigRef shop } +/** + * `wallet` — откуда слать + * `resource_type` — во что маппить вход (account_number и т.п.). + */ struct ExternalWithdrawalRoute { 1: required WalletConfigRef wallet + 2: required DestinationResourceType resource_type +} + +/** + * Дискриминатор пайплайна method → WAPI Destination.resource. + */ +union DestinationResourceType { + /** account_number = PAN */ + 1: BankCardDestinationResourceType bank_card + + /** + * payment_service.id = swagger `type` (= ResourceGeneric.provider), + * (для mobile account_number → phoneNumber). + */ + 2: GenericDestinationResourceType generic + + /** + * DigitalWalletDestinationResource{id, provider}. + * provider.id = Qiwi / … + * account_number → id. + */ + 3: DigitalWalletDestinationResourceType digital_wallet +} + +struct BankCardDestinationResourceType {} + +struct GenericDestinationResourceType { + 1: required PaymentServiceRef payment_service +} + +struct DigitalWalletDestinationResourceType { + 1: required PaymentServiceRef provider } typedef string PartyRouteID