From d789acb7278b315bc9fd27e74374cef6f9c2547a Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 14 Aug 2025 01:12:39 +0300 Subject: [PATCH] Update proto definitions --- yandexmarket/products.proto | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/yandexmarket/products.proto b/yandexmarket/products.proto index a72a40a..4fd490f 100644 --- a/yandexmarket/products.proto +++ b/yandexmarket/products.proto @@ -4,6 +4,7 @@ option go_package = "./yandexmarket/products"; service ProductsService { rpc CalculateProductTariffs(CalculateProductTariffsRequest) returns (stream CalculateProductTariffsResponse); + rpc GetProducts(GetProductsRequest) returns (GetProductsResponse); } message CalculateProductTariffsRequest { @@ -61,4 +62,23 @@ message CalculateProductTariffsResponse { repeated Offers offers = 1; +} + +message GetProductsRequest { + int64 marketplace_id = 1; + repeated string offer_ids = 2; +} + +message GetProductsResponse { + message Offer { + message WeightDimensions { + float length = 1; + float width = 2; + float height = 3; + float weight = 4; + } + + int64 market_category_id = 1; + WeightDimensions weight_dimensions = 2; + } } \ No newline at end of file