Update proto definitions
This commit is contained in:
		@@ -3,4 +3,61 @@ package yandexmarket.products;
 | 
				
			|||||||
option go_package = "./yandexmarket/products";
 | 
					option go_package = "./yandexmarket/products";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
service ProductsService {
 | 
					service ProductsService {
 | 
				
			||||||
 | 
					  rpc CalculateProductTariffs(CalculateProductTariffsRequest) returns (stream CalculateProductTariffsResponse);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					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;
 | 
				
			||||||
 | 
					  repeated Offers offers = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					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 Parameters {
 | 
				
			||||||
 | 
					    string name = 1;
 | 
				
			||||||
 | 
					    string value = 2;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Tariffs {
 | 
				
			||||||
 | 
					    string type = 1;
 | 
				
			||||||
 | 
					    int64 amount = 2;
 | 
				
			||||||
 | 
					    string currency = 3;
 | 
				
			||||||
 | 
					    repeated Parameters parameters = 4;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Offers {
 | 
				
			||||||
 | 
					    Offer offer = 1;
 | 
				
			||||||
 | 
					    repeated Tariffs tariffs = 2;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repeated Offers offers = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user