Update proto definitions
This commit is contained in:
@@ -4,6 +4,7 @@ option go_package = "./yandexmarket/products";
|
||||
|
||||
service ProductsService {
|
||||
rpc CalculateProductTariffs(CalculateProductTariffsRequest) returns (stream CalculateProductTariffsResponse);
|
||||
rpc GetProducts(GetProductsRequest) returns (GetProductsResponse);
|
||||
}
|
||||
|
||||
message CalculateProductTariffsRequest {
|
||||
@@ -62,3 +63,22 @@ 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user