Files
Sipro-Marketplaces-Protos/ozon/products.proto
2025-05-27 03:42:38 +03:00

41 lines
866 B
Protocol Buffer

syntax = "proto3";
package ozon.products;
import "google/protobuf/timestamp.proto";
option go_package = "./ozon/products";
service ProductsService {
// Retrieves a list of products based on the provided request.
rpc GetListOfProducts(GetListOfProductsRequest) returns (stream GetListOfProductsResponse);
}
message GetListOfProductsRequest{
int64 marketplace_id = 1; // Unique identifier for the marketplace
}
message GetListOfProductsResponse {
repeated Product products = 1;
}
message Product {
int64 id = 1;
string offer_id = 2;
Stocks stocks = 3;
repeated string barcodes = 4;
Status statuses = 5;
message Status {
string status_name = 1;
}
message Stocks{
repeated Stock stocks = 1;
bool has_stock = 2;
}
message Stock{
int64 present = 1;
int64 reserved = 2;
int64 SKU = 3;
string source = 4;
}
}