Compare commits

...

5 Commits

Author SHA1 Message Date
ac9d54c95f Update proto definitions 2025-08-15 05:51:04 +03:00
f345c45e0d Update proto definitions 2025-08-14 01:14:58 +03:00
d789acb727 Update proto definitions 2025-08-14 01:12:39 +03:00
209298428c Update proto definitions 2025-08-13 08:38:33 +03:00
bdba1e6229 Update proto definitions 2025-08-13 06:43:36 +03:00

View File

@@ -3,4 +3,87 @@ package yandexmarket.products;
option go_package = "./yandexmarket/products";
service ProductsService {
rpc CalculateProductTariffs(CalculateProductTariffsRequest) returns (stream CalculateProductTariffsResponse);
rpc GetProducts(GetProductsRequest) returns (stream GetProductsResponse);
}
message CalculateProductTariffsRequest {
message Offers {
int64 category_id = 1;
int64 price = 2;
int64 length = 3;
int64 width = 4;
int64 height = 5;
int64 weight = 6;
int64 quantity = 7;
}
message Parameters {
int64 campaign_id = 1;
string selling_program = 2;
string frequency = 3;
string currency = 4;
}
int64 marketplace_id = 1;
Parameters parameters = 2;
repeated Offers offers = 3;
}
message CalculateProductTariffsResponse {
message Offer {
int64 category_id = 1;
int64 price = 2;
int64 length = 3;
int64 width = 4;
int64 height = 5;
int64 weight = 6;
int64 quantity = 7;
}
message Parameter {
string name = 1;
string value = 2;
}
message Tariff {
string type = 1;
int64 amount = 2;
string currency = 3;
repeated Parameter parameters = 4;
}
message Offers {
Offer offer = 1;
repeated Tariff tariffs = 2;
}
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;
}
message BasicPrice{
float value = 1;
}
int64 market_category_id = 1;
WeightDimensions weight_dimensions = 2;
BasicPrice basic_price = 3;
string offer_id = 4;
}
repeated Offer offers = 1;
}