Update proto definitions
This commit is contained in:
@@ -6,119 +6,33 @@ option go_package = "./ozon/products";
|
||||
|
||||
service ProductsService {
|
||||
// Retrieves a list of products based on the provided request.
|
||||
rpc GetListOfProducts(GetListOfProductsRequest) returns (stream ProductDetails);
|
||||
rpc GetListOfProducts(GetListOfProductsRequest) returns (stream Product);
|
||||
}
|
||||
|
||||
message GetListOfProductsRequest{
|
||||
|
||||
}
|
||||
|
||||
message ProductDetails {
|
||||
repeated string barcodes = 1;
|
||||
repeated string color_image = 2;
|
||||
repeated Commission commissions = 3;
|
||||
google.protobuf.Timestamp created_at = 4;
|
||||
string currency_code = 5;
|
||||
int64 description_category_id = 6;
|
||||
int32 discounted_fbo_stocks = 7;
|
||||
repeated Error errors = 8;
|
||||
bool has_discounted_fbo_item = 9;
|
||||
int64 id = 10;
|
||||
repeated string images = 11;
|
||||
repeated string images360 = 12;
|
||||
bool is_archived = 13;
|
||||
bool is_autoarchived = 14;
|
||||
bool is_discounted = 15;
|
||||
bool is_kgt = 16;
|
||||
bool is_prepayment_allowed = 17;
|
||||
bool is_super = 18;
|
||||
string marketing_price = 19;
|
||||
string min_price = 20;
|
||||
ModelInfo model_info = 21;
|
||||
string name = 22;
|
||||
string offer_id = 23;
|
||||
string old_price = 24;
|
||||
string price = 25;
|
||||
PriceIndex price_indexes = 26;
|
||||
repeated string primary_image = 27;
|
||||
repeated Source sources = 28;
|
||||
Status statuses = 29;
|
||||
Stock stocks = 30;
|
||||
int64 type_id = 31;
|
||||
google.protobuf.Timestamp updated_at = 32;
|
||||
string vat = 33;
|
||||
VisibilityDetails visibility_details = 34;
|
||||
double volume_weight = 35;
|
||||
|
||||
message Error {
|
||||
string code = 1;
|
||||
string message = 2;
|
||||
repeated ErrorText texts = 3;
|
||||
|
||||
message ErrorText {
|
||||
string lang = 1;
|
||||
string text = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message ModelInfo {
|
||||
int64 model_id = 1;
|
||||
int64 count = 2;
|
||||
}
|
||||
|
||||
message Commission {
|
||||
string name = 1;
|
||||
double value = 2;
|
||||
}
|
||||
|
||||
message PriceIndex {
|
||||
PriceIndexExternal external = 1;
|
||||
PriceIndexOzon ozon = 2;
|
||||
PriceIndexSelfMarketplace self_marketplace = 3;
|
||||
|
||||
message PriceIndexExternal {
|
||||
double min_price = 1;
|
||||
string currency = 2;
|
||||
double price_index = 3;
|
||||
}
|
||||
message PriceIndexOzon {
|
||||
double min_price = 1;
|
||||
string currency = 2;
|
||||
double price_index = 3;
|
||||
}
|
||||
message PriceIndexSelfMarketplace {
|
||||
double min_price = 1;
|
||||
string currency = 2;
|
||||
double price_index = 3;
|
||||
}
|
||||
}
|
||||
|
||||
message Source {
|
||||
string source = 1;
|
||||
string source_name = 2;
|
||||
}
|
||||
message Product {
|
||||
uint64 id = 1;
|
||||
string offer_id = 2;
|
||||
Stocks stocks = 3;
|
||||
repeated string barcodes = 4;
|
||||
repeated Status statuses = 5;
|
||||
|
||||
message Status {
|
||||
string state = 1;
|
||||
string state_name = 2;
|
||||
string state_tooltip = 3;
|
||||
string state_sys_name = 4;
|
||||
string status_name = 1;
|
||||
}
|
||||
|
||||
message Stock {
|
||||
repeated StockItem stocks = 1;
|
||||
|
||||
message StockItem {
|
||||
int32 present = 1;
|
||||
int32 reserved = 2;
|
||||
string type = 3;
|
||||
string shipment_type = 4;
|
||||
int64 sku = 5;
|
||||
message Stocks{
|
||||
repeated Stock stock = 1;
|
||||
bool has_stock = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message VisibilityDetails {
|
||||
bool visible = 1;
|
||||
string reason = 2;
|
||||
message Stock{
|
||||
uint64 present = 1;
|
||||
uint64 reserved = 2;
|
||||
uint64 sku = 3;
|
||||
string source = 4;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user