Compare commits

...

16 Commits

Author SHA1 Message Date
b30d322774 Update proto definitions 2025-05-27 03:23:21 +03:00
95306de158 Update proto definitions 2025-05-26 05:11:33 +03:00
c45adaec4d Update proto definitions 2025-05-26 05:09:38 +03:00
564a579309 Update proto definitions 2025-05-26 05:06:15 +03:00
f33ca7daa1 Update proto definitions 2025-05-26 04:52:10 +03:00
eb15ad269a Update proto definitions 2025-05-26 04:49:42 +03:00
e8b562a370 Update proto definitions 2025-05-26 04:08:50 +03:00
551ee4c6d9 Update proto definitions 2025-05-26 02:42:14 +03:00
500304a79f Update proto definitions 2025-05-26 02:39:59 +03:00
8d5b13cab3 Update proto definitions 2025-05-25 22:26:39 +03:00
758fa0c6b4 Update proto definitions 2025-05-25 22:22:39 +03:00
b58f68bc74 Update proto definitions 2025-05-25 22:21:56 +03:00
f640db172d Update proto definitions 2025-05-25 22:21:44 +03:00
84deae824a Update proto definitions 2025-05-25 22:20:43 +03:00
8dfaf8cbf3 Update go_package options in products.proto for multiple packages 2025-05-25 01:13:18 +03:00
daf8308254 1 2025-05-25 00:59:10 +03:00
4 changed files with 49 additions and 26 deletions

View 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
}

View File

@@ -1,38 +1,41 @@
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);
} }
message GetListOfProductsRequest{ message GetListOfProductsRequest{
message Filter {
repeated string offer_id = 1; // List of offer IDs to filter products }
repeated int64 product_id = 2; // List of product IDs to filter products message GetListOfProductsResponse {
string visibility = 3; // Visibility status of the products repeated Product products = 1;
} }
message Body { message Product {
Filter filter = 1; // Filter criteria for the request int64 id = 1;
string offer_id = 2;
Stocks stocks = 3;
repeated string barcodes = 4;
Status statuses = 5;
message Status {
string status_name = 1;
} }
uint64 marketplace_id = 1; // ID of the marketplace
Body body = 2; // Body containing the filter criteria
}
message OzonProductItem { message Stocks{
message Quants { repeated Stock stocks = 1;
string quant_code = 1; // Code representing the quant bool has_stock = 2;
uint32 quant_size = 2; // Size of the quant }
message Stock{
int64 present = 1;
int64 reserved = 2;
int64 SKU = 3;
string source = 4;
} }
bool archived = 1; // Indicates if the product is archived
bool has_fbo_stocks = 2; // Indicates if there are FBO stocks available
bool has_fbs_stocks = 3; // Indicates if there are FBS stocks available
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
repeated Quants quants = 7; // List of quants associated with the product
} }

View File

@@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package wb.products; package wb.products;
option go_package = "./wb/products";
service ProductsService { service ProductsService {
} }

View File

@@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package yandexmarket.products; package yandexmarket.products;
option go_package = "./yandexmarket/products";
service ProductsService { service ProductsService {
} }