Compare commits
4 Commits
c6df89a7a3
...
2c4ca98d2d
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c4ca98d2d | |||
| 43e50ab2cb | |||
| d37866d587 | |||
| 53a3f27145 |
@@ -7,15 +7,25 @@ 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 GetListOfProductsResponse);
|
rpc GetListOfProducts(GetListOfProductsRequest) returns (stream GetListOfProductsResponse);
|
||||||
|
rpc GetProductPrice(GetProductPriceRequest) returns (stream GetProductPriceResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetListOfProductsRequest{
|
message GetListOfProductsRequest{
|
||||||
int64 marketplace_id = 1; // Unique identifier for the marketplace
|
int64 marketplace_id = 1; // Unique identifier for the marketplace
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetListOfProductsResponse {
|
message GetListOfProductsResponse {
|
||||||
repeated Product products = 1;
|
repeated Product products = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message GetProductPriceRequest {
|
||||||
|
int64 marketplace_id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetProductPriceResponse {
|
||||||
|
repeated ProductPrice product_prices = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message Product {
|
message Product {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
string offer_id = 2;
|
string offer_id = 2;
|
||||||
@@ -38,4 +48,28 @@ message Product {
|
|||||||
int64 SKU = 3;
|
int64 SKU = 3;
|
||||||
string source = 4;
|
string source = 4;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32 acquiring = 1;
|
||||||
|
Commissions commissions = 2;
|
||||||
|
string offer_id = 4;
|
||||||
|
uint32 product_id = 7;
|
||||||
}
|
}
|
||||||
@@ -3,4 +3,23 @@ package wb.products;
|
|||||||
option go_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 nmID = 1;
|
||||||
|
int64 subjectID = 2;
|
||||||
|
string vendor_code = 3;
|
||||||
|
repeated Size sizes = 4;
|
||||||
|
}
|
||||||
|
message GetProductsResponse {
|
||||||
|
repeated Product products = 1;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user