From 5baf467f08ab6df46f82c1c0b63c932449c38043 Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Tue, 9 Jun 2026 13:33:00 +0300 Subject: [PATCH 1/3] XYZ-182: Adds optional payment's checkout host for shops --- proto/domain.thrift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/domain.thrift b/proto/domain.thrift index 2773628e..6016f4fe 100644 --- a/proto/domain.thrift +++ b/proto/domain.thrift @@ -2711,6 +2711,10 @@ struct ShopConfig { 9: required ShopLocation location 10: required CategoryRef category 11: optional set turnover_limits + /** + * FIXME Maybe `checkout_host` w/ host only? + */ + 12: optional string checkout_base_url } struct ShopConfigObject { From 3cffeff685b8b8a65069c16ddbd4a37dd2628de3 Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Wed, 10 Jun 2026 11:40:18 +0300 Subject: [PATCH 2/3] Renames new field and wraps it into a union as feature container --- proto/domain.thrift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/proto/domain.thrift b/proto/domain.thrift index 6016f4fe..cb0c0aed 100644 --- a/proto/domain.thrift +++ b/proto/domain.thrift @@ -796,6 +796,11 @@ union ShopLocation { 1: string url } +union ShopCheckoutLocation { + // Список базовых адресов страниц для оплаты, в виде полноценных URL + 1: list base_urls +} + /* Инспекция платежа */ enum RiskScore { @@ -2711,10 +2716,7 @@ struct ShopConfig { 9: required ShopLocation location 10: required CategoryRef category 11: optional set turnover_limits - /** - * FIXME Maybe `checkout_host` w/ host only? - */ - 12: optional string checkout_base_url + 12: optional ShopCheckoutLocation checkout_location } struct ShopConfigObject { From 44baa7b90411233157bf5ec4016a40b82ab5910a Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Wed, 10 Jun 2026 14:00:30 +0300 Subject: [PATCH 3/3] Refactors shop-location union into extensible struct --- proto/domain.thrift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/proto/domain.thrift b/proto/domain.thrift index cb0c0aed..04fcf68c 100644 --- a/proto/domain.thrift +++ b/proto/domain.thrift @@ -796,9 +796,12 @@ union ShopLocation { 1: string url } -union ShopCheckoutLocation { - // Список базовых адресов страниц для оплаты, в виде полноценных URL - 1: list base_urls +struct ShopCheckoutLocation { + 1: required list locations +} + +struct CheckoutLocation { + 1: required string base_url } /* Инспекция платежа */