Compare commits
	
		
			51 Commits
		
	
	
		
			ac37bf36f5
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| debf67d5ed | |||
| 8aea1ed411 | |||
| ba85f290b8 | |||
| 1d7dc237a2 | |||
| ac9d54c95f | |||
| f345c45e0d | |||
| d789acb727 | |||
| 209298428c | |||
| bdba1e6229 | |||
| 7fe978865b | |||
| eeb6f4cde4 | |||
| f647e98f21 | |||
| c999554a0a | |||
| ad05eccdc3 | |||
| 1ca56b1eee | |||
| 05f7ce0713 | |||
| fcbe0ab314 | |||
| 05350ec9f1 | |||
| 0c5ee58d50 | |||
| 6d62cd6bfe | |||
| c1293d3afe | |||
| 342baf25e7 | |||
| 86af72b134 | |||
| ab5951229a | |||
| 84924dc33f | |||
| bc9c1b7eaf | |||
| 4774068c8d | |||
| 2a3023647a | |||
| 9e4f1c3b71 | |||
| 14c853ae3a | |||
| 2c4ca98d2d | |||
| 43e50ab2cb | |||
| d37866d587 | |||
| 53a3f27145 | |||
| c6df89a7a3 | |||
| b30d322774 | |||
| 95306de158 | |||
| c45adaec4d | |||
| 564a579309 | |||
| f33ca7daa1 | |||
| eb15ad269a | |||
| e8b562a370 | |||
| 551ee4c6d9 | |||
| 500304a79f | |||
| 8d5b13cab3 | |||
| 758fa0c6b4 | |||
| b58f68bc74 | |||
| f640db172d | |||
| 84deae824a | |||
| 8dfaf8cbf3 | |||
| daf8308254 | 
							
								
								
									
										20
									
								
								marketplace/marketplace.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								marketplace/marketplace.proto
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					syntax = "proto3";
 | 
				
			||||||
 | 
					package marketplace;
 | 
				
			||||||
 | 
					option go_package = "./marketplace";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					service MarketplaceService {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  rpc GetMarketplaceById(GetMarketplaceByIdRequest) returns (Marketplace);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message GetMarketplaceByIdRequest {
 | 
				
			||||||
 | 
					  uint64 marketplace_id = 1; // ID of the marketplace to retrieve
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					message Marketplace {
 | 
				
			||||||
 | 
					  uint64 id = 1;
 | 
				
			||||||
 | 
					  uint32 base_marketplace = 2; // ID of the base marketplace
 | 
				
			||||||
 | 
					  string auth_data = 3; // Authentication data for the marketplace
 | 
				
			||||||
 | 
					  string warehouse_id = 4; // ID of the warehouse associated with the marketplace
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,38 +1,206 @@
 | 
				
			|||||||
syntax = "proto3";
 | 
					syntax = "proto3";
 | 
				
			||||||
package ozon.products;
 | 
					package ozon.products;
 | 
				
			||||||
 | 
					import "google/protobuf/timestamp.proto";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					option go_package = "./ozon/products";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
service ProductsService {
 | 
					service ProductsService {
 | 
				
			||||||
  // Retrieves a list of products based on the provided request.
 | 
					  // Retrieves a list of products based on the provided request.
 | 
				
			||||||
  rpc GetListOfProducts(GetListOfProductsRequest) returns (stream OzonProductItem);
 | 
					  rpc GetListOfProducts(GetListOfProductsRequest) returns (stream  GetListOfProductsResponse);
 | 
				
			||||||
 | 
					  rpc GetProductPrice(GetProductPriceRequest) returns (stream GetProductPriceResponse);
 | 
				
			||||||
 | 
					  rpc GetProductAttributes(GetProductAttributesRequest) returns (stream GetProductAttributesResponse);
 | 
				
			||||||
 | 
					  rpc DeleteProducts(DeleteProductsRequest) returns (DeleteProductsResponse);
 | 
				
			||||||
 | 
					  rpc CreateOrUpdateProducts(CreateOrUpdateProductsRequest) returns (CreateOrUpdateProductsResponse);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
message GetListOfProductsRequest {
 | 
					message GetListOfProductsRequest{
 | 
				
			||||||
  message Filter {
 | 
					  int64 marketplace_id = 1; // Unique identifier for the marketplace
 | 
				
			||||||
    repeated string offer_id = 1; // List of offer IDs to filter products
 | 
					 | 
				
			||||||
    repeated int64 product_id = 2; // List of product IDs to filter products
 | 
					 | 
				
			||||||
    string visibility = 3; // Visibility status of the products
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  message Body {
 | 
					 | 
				
			||||||
    Filter filter = 1; // Filter criteria for the request
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  uint64 marketplace_id = 1; // ID of the marketplace
 | 
					 | 
				
			||||||
  Body body = 2; // Body containing the filter criteria
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
message OzonProductItem {
 | 
					message GetListOfProductsResponse {
 | 
				
			||||||
  message Quants {
 | 
					  repeated Product products = 1;
 | 
				
			||||||
    string quant_code = 1; // Code representing the quant
 | 
					}
 | 
				
			||||||
    uint32 quant_size = 2; // Size of the quant
 | 
					
 | 
				
			||||||
 | 
					message GetProductPriceRequest {
 | 
				
			||||||
 | 
					  int64 marketplace_id = 1;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message GetProductPriceResponse {
 | 
				
			||||||
 | 
					  repeated ProductPrice product_prices = 1;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message GetProductAttributesRequest {
 | 
				
			||||||
 | 
					  int64 marketplace_id = 1;
 | 
				
			||||||
 | 
					  repeated int64 product_id = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message GetProductAttributesResponse {
 | 
				
			||||||
 | 
					  repeated ProductAttributes items = 1;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message DeleteProductsRequest {
 | 
				
			||||||
 | 
					  message Item {
 | 
				
			||||||
 | 
					    int64 product_id = 1;
 | 
				
			||||||
 | 
					    string offer_id = 2;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  int64 marketplace_id = 1;
 | 
				
			||||||
 | 
					  repeated Item items = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message DeleteProductsResponse {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Item {
 | 
				
			||||||
 | 
					    int64 product_id = 1;
 | 
				
			||||||
 | 
					    string offer_id = 2;
 | 
				
			||||||
 | 
					    bool is_deleted = 3;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  int64 marketplace_id = 1;
 | 
				
			||||||
 | 
					  repeated Item items = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message CreateOrUpdateProductsRequest{
 | 
				
			||||||
 | 
					  message Item {
 | 
				
			||||||
 | 
					    message Values {
 | 
				
			||||||
 | 
					      int64 dictionary_value_id = 1;
 | 
				
			||||||
 | 
					      string value = 2;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    message Attributes {
 | 
				
			||||||
 | 
					      int64 complex_id = 1;
 | 
				
			||||||
 | 
					      int64 id = 2;
 | 
				
			||||||
 | 
					      repeated Values values = 3;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    message Promotions {
 | 
				
			||||||
 | 
					      string operation = 1;
 | 
				
			||||||
 | 
					      string type = 2;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    message PdfListItem{
 | 
				
			||||||
 | 
					      int64 index = 1;
 | 
				
			||||||
 | 
					      string name = 2;
 | 
				
			||||||
 | 
					      string src_url = 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    repeated Attributes attributes = 1;
 | 
				
			||||||
 | 
					    string barcode = 2;
 | 
				
			||||||
 | 
					    int64 description_category_id = 3;
 | 
				
			||||||
 | 
					    int64 new_description_category_id = 4;
 | 
				
			||||||
 | 
					    string color_image = 5;
 | 
				
			||||||
 | 
					    string currency_code = 7;
 | 
				
			||||||
 | 
					    int64 depth = 8;
 | 
				
			||||||
 | 
					    string dimension_unit = 9;
 | 
				
			||||||
 | 
					    int64 height = 10;
 | 
				
			||||||
 | 
					    repeated string images = 11;
 | 
				
			||||||
 | 
					    repeated string images360 = 12;
 | 
				
			||||||
 | 
					    string name = 13;
 | 
				
			||||||
 | 
					    string offer_id = 14;
 | 
				
			||||||
 | 
					    string old_price = 15;
 | 
				
			||||||
 | 
					    repeated PdfListItem pdf_list = 16;
 | 
				
			||||||
 | 
					    string price = 17;
 | 
				
			||||||
 | 
					    string primary_image = 18;
 | 
				
			||||||
 | 
					    repeated Promotions promotions = 19;
 | 
				
			||||||
 | 
					    int64 type_id = 20;
 | 
				
			||||||
 | 
					    string vat = 21;
 | 
				
			||||||
 | 
					    int64 weight = 22;
 | 
				
			||||||
 | 
					    string weight_unit = 23;
 | 
				
			||||||
 | 
					    int64 width = 24;
 | 
				
			||||||
 | 
					    string service_type = 25;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  int64 marketplace_id = 1;
 | 
				
			||||||
 | 
					  repeated Item items = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message CreateOrUpdateProductsResponse{
 | 
				
			||||||
 | 
					  repeated int64  task_id = 1;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					message Product {
 | 
				
			||||||
 | 
					  int64 id = 1;
 | 
				
			||||||
 | 
					  string offer_id = 2;
 | 
				
			||||||
 | 
					  Stocks stocks = 3;
 | 
				
			||||||
 | 
					  repeated string barcodes = 4;
 | 
				
			||||||
 | 
					  Status statuses = 5;
 | 
				
			||||||
 | 
					  repeated Error errors = 6;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Status {
 | 
				
			||||||
 | 
					    string status_name = 1;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  bool archived = 1; // Indicates if the product is archived
 | 
					  message Stocks{
 | 
				
			||||||
  bool has_fbo_stocks = 2; // Indicates if there are FBO stocks available
 | 
					    repeated Stock stocks = 1;
 | 
				
			||||||
  bool has_fbs_stocks = 3; // Indicates if there are FBS stocks available
 | 
					    bool has_stock = 2;
 | 
				
			||||||
  bool is_discounted = 4; // Indicates if the product is discounted
 | 
					  }
 | 
				
			||||||
  string offer_id = 5; // Unique identifier for the offer
 | 
					
 | 
				
			||||||
  uint32 product_id = 6; // Unique identifier for the product
 | 
					  message Stock{
 | 
				
			||||||
  repeated Quants quants = 7; // List of quants associated with the product
 | 
					    int64 present = 1;
 | 
				
			||||||
 | 
					    int64 reserved = 2;
 | 
				
			||||||
 | 
					    int64 SKU = 3;
 | 
				
			||||||
 | 
					    string source = 4;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Error{
 | 
				
			||||||
 | 
					    string code = 1;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message ProductPrice {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Commissions {
 | 
				
			||||||
 | 
					    double fbo_deliv_to_customer_amount = 1;
 | 
				
			||||||
 | 
					    double fbo_direct_flow_trans_max_amount = 2;
 | 
				
			||||||
 | 
					    double fbo_direct_flow_trans_min_amount = 3;
 | 
				
			||||||
 | 
					    double fbo_return_flow_amount = 4;
 | 
				
			||||||
 | 
					    double fbs_deliv_to_customer_amount = 5;
 | 
				
			||||||
 | 
					    double fbs_direct_flow_trans_max_amount = 6;
 | 
				
			||||||
 | 
					    double fbs_direct_flow_trans_min_amount = 7;
 | 
				
			||||||
 | 
					    double fbs_first_mile_max_amount = 8;
 | 
				
			||||||
 | 
					    double fbs_first_mile_min_amount = 9;
 | 
				
			||||||
 | 
					    double fbs_return_flow_amount = 10;
 | 
				
			||||||
 | 
					    double sales_percent_fbo = 11;
 | 
				
			||||||
 | 
					    double sales_percent_fbs = 12;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  int64 acquiring = 1;
 | 
				
			||||||
 | 
					  Commissions commissions = 2;
 | 
				
			||||||
 | 
					  string offer_id = 4;
 | 
				
			||||||
 | 
					  int64 product_id = 7;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message ProductAttributes {
 | 
				
			||||||
 | 
					  message Model_info {
 | 
				
			||||||
 | 
					    int64 model_id = 1;
 | 
				
			||||||
 | 
					    int64 count = 2;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Values {
 | 
				
			||||||
 | 
					    int64 dictionary_value_id = 1;
 | 
				
			||||||
 | 
					    string value = 2;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Attributes {
 | 
				
			||||||
 | 
					    int64 id = 1;
 | 
				
			||||||
 | 
					    int64 complex_id = 2;
 | 
				
			||||||
 | 
					    repeated Values values = 3;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  int64 id = 1;
 | 
				
			||||||
 | 
					  string barcode = 2;
 | 
				
			||||||
 | 
					  string name = 4;
 | 
				
			||||||
 | 
					  string offer_id = 5;
 | 
				
			||||||
 | 
					  int64 type_id = 6;
 | 
				
			||||||
 | 
					  int64 height = 7;
 | 
				
			||||||
 | 
					  int64 depth = 8;
 | 
				
			||||||
 | 
					  int64 width = 9;
 | 
				
			||||||
 | 
					  string dimension_unit = 10;
 | 
				
			||||||
 | 
					  int64 weight = 11;
 | 
				
			||||||
 | 
					  string weight_unit = 12;
 | 
				
			||||||
 | 
					  string primary_image = 13;
 | 
				
			||||||
 | 
					  Model_info model_info = 15;
 | 
				
			||||||
 | 
					  repeated string images = 16;
 | 
				
			||||||
 | 
					  repeated Attributes attributes = 18;
 | 
				
			||||||
 | 
					  string color_image = 21;
 | 
				
			||||||
 | 
					  int64 description_category_id = 22;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,51 @@
 | 
				
			|||||||
syntax = "proto3";
 | 
					syntax = "proto3";
 | 
				
			||||||
package wb.products;
 | 
					package wb.products;
 | 
				
			||||||
 | 
					option go_package = "./wb/products";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
service ProductsService {
 | 
					service ProductsService {
 | 
				
			||||||
 | 
					  rpc GetProducts(GetProductsRequest) returns (stream GetProductsResponse);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message GetProductsRequest {
 | 
				
			||||||
 | 
					  int64 marketplace_id = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message Product {
 | 
				
			||||||
 | 
					  message Size{
 | 
				
			||||||
 | 
					    repeated string skus = 1;
 | 
				
			||||||
 | 
					    int64 chrtID = 2;
 | 
				
			||||||
 | 
					    string techSize = 3;
 | 
				
			||||||
 | 
					    string wbSize = 4;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  message Characteristic{
 | 
				
			||||||
 | 
					    int64 id = 1;
 | 
				
			||||||
 | 
					    string name = 2;
 | 
				
			||||||
 | 
					    bytes value = 3;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  message Photo {
 | 
				
			||||||
 | 
					    string big = 1;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  message Dimensions {
 | 
				
			||||||
 | 
					    int64 length = 1;
 | 
				
			||||||
 | 
					    int64 width = 2;
 | 
				
			||||||
 | 
					    int64 height = 3;
 | 
				
			||||||
 | 
					    float weightBrutto = 4;
 | 
				
			||||||
 | 
					    bool isValid = 5;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  int64 nmID = 1;
 | 
				
			||||||
 | 
					  int64 subjectID = 2;
 | 
				
			||||||
 | 
					  string vendor_code = 3;
 | 
				
			||||||
 | 
					  repeated Size sizes = 4;
 | 
				
			||||||
 | 
					  repeated Characteristic characteristics = 5;
 | 
				
			||||||
 | 
					  repeated Photo photos = 6;
 | 
				
			||||||
 | 
					  Dimensions dimensions = 7;
 | 
				
			||||||
 | 
					  string title = 8;
 | 
				
			||||||
 | 
					  string brand = 9;
 | 
				
			||||||
 | 
					  string description = 10;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					message GetProductsResponse {
 | 
				
			||||||
 | 
					  repeated Product products = 1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -1,6 +1,89 @@
 | 
				
			|||||||
syntax = "proto3";
 | 
					syntax = "proto3";
 | 
				
			||||||
package yandexmarket.products;
 | 
					package yandexmarket.products;
 | 
				
			||||||
 | 
					option go_package = "./yandexmarket/products";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
service ProductsService {
 | 
					service ProductsService {
 | 
				
			||||||
 | 
					  rpc CalculateProductTariffs(CalculateProductTariffsRequest) returns (stream CalculateProductTariffsResponse);
 | 
				
			||||||
 | 
					  rpc GetProducts(GetProductsRequest) returns (stream GetProductsResponse);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message CalculateProductTariffsRequest {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Offer {
 | 
				
			||||||
 | 
					    int64 category_id = 1;
 | 
				
			||||||
 | 
					    float price = 2;
 | 
				
			||||||
 | 
					    float length = 3;
 | 
				
			||||||
 | 
					    float width = 4;
 | 
				
			||||||
 | 
					    float height = 5;
 | 
				
			||||||
 | 
					    float 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 Offer offers = 3;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message CalculateProductTariffsResponse {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  message Offer {
 | 
				
			||||||
 | 
					    int64 category_id = 1;
 | 
				
			||||||
 | 
					    float price = 2;
 | 
				
			||||||
 | 
					    float length = 3;
 | 
				
			||||||
 | 
					    float width = 4;
 | 
				
			||||||
 | 
					    float height = 5;
 | 
				
			||||||
 | 
					    float 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;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user