Protocol Documentation¶
Table of Contents¶
-
mini_vending/vendings/v1/products.proto
- AddProductToVendingRequest
- AddProductToVendingResponse
- CreateModelRequest
- CreateModelResponse
- CreateProductRequest
- CreateProductResponse
- CreateVendingRequest
- CreateVendingResponse
- GetModelsRequest
- GetModelsResponse
- GetProductsListRequest
- GetProductsListResponse
- GetProductsRequest
- GetProductsResponse
- GetVendingRequest
- GetVendingResponse
- GetVendingsRequest
- GetVendingsResponse
- Model
- Product
- RemoveProductFromVendingRequest
- RemoveProductFromVendingResponse
- UpdateModelRequest
- UpdateModelResponse
- UpdateProductRequest
- UpdateProductResponse
- UpdateVendingRequest
- UpdateVendingResponse
- Vending
- ModelsService
- ProductsService
- VendingPlacesService
- VendingsService
mini_vending/vendings/v1/products.proto¶
AddProductToVendingRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendingId | string | ||
| productId | int64 | ||
| vendingPlaceId | int64 |
AddProductToVendingResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| success | bool |
CreateModelRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| name | string | ||
| placesCount | int64 | ||
| description | string | optional |
CreateModelResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| modelId | int64 |
CreateProductRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| price | int64 | ||
| name | string | ||
| description | string | ||
| imageUrl | string | optional |
CreateProductResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| productId | int64 |
CreateVendingRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| modelId | int64 |
CreateVendingResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendingId | string |
GetModelsRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| limit | int64 | ||
| offset | int64 | ||
| name | string | optional |
GetModelsResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| models | Model | repeated | |
| count | int64 |
GetProductsListRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| limit | int64 | ||
| offset | int64 | ||
| name | string | optional | |
| status | string | optional | |
| merchantId | int64 | optional | |
| orderBy | string | optional | |
| sortOrder | string | optional |
GetProductsListResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| products | Product | repeated |
GetProductsRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| limit | int64 | ||
| offset | int64 | ||
| name | string | optional |
GetProductsResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| products | Product | repeated | |
| count | int64 |
GetVendingRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendingId | string |
GetVendingResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| vending | Vending | ||
| places | VendingPlace | repeated |
GetVendingsRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| limit | int64 | ||
| offset | int64 | ||
| vendingId | string | optional | |
| status | string | optional | |
| alias | string | optional | |
| merchantId | int64 | optional |
GetVendingsResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendings | Vending | repeated | |
| count | int64 |
Model¶
| Field | Type | Label | Description |
|---|---|---|---|
| modelId | int64 | ||
| name | string | ||
| placesCount | int64 | ||
| description | string | optional |
Product¶
| Field | Type | Label | Description |
|---|---|---|---|
| productId | int64 | ||
| merchantId | int64 | ||
| price | int64 | ||
| name | string | ||
| description | string | ||
| status | string | ||
| imageUrl | string | optional | |
| createdAt | google.protobuf.Timestamp | ||
| updatedAt | google.protobuf.Timestamp |
RemoveProductFromVendingRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendingId | string | ||
| vendingPlaceId | int64 |
RemoveProductFromVendingResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| success | bool |
UpdateModelRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| modelId | int64 | ||
| name | string | optional | |
| description | string | optional | |
| placesCount | int64 | optional |
UpdateModelResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| success | bool |
UpdateProductRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| productId | int64 | ||
| price | int64 | optional | |
| name | string | optional | |
| description | string | optional | |
| imageUrl | string | optional |
UpdateProductResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| success | bool |
UpdateVendingRequest¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendingId | string | ||
| status | string | optional | |
| alias | string | optional | |
| merchantId | int64 | optional |
UpdateVendingResponse¶
| Field | Type | Label | Description |
|---|---|---|---|
| success | bool |
Vending¶
| Field | Type | Label | Description |
|---|---|---|---|
| vendingId | string | ||
| modelId | int64 | ||
| modelName | string | ||
| modelPlacesCount | int64 | ||
| modelDescription | string | optional | |
| freePlaces | int64 | ||
| status | string | ||
| alias | string | ||
| merchantId | int64 | optional | |
| createdAt | google.protobuf.Timestamp | ||
| updatedAt | google.protobuf.Timestamp |
VendingPlace¶
| Field | Type | Label | Description |
|---|---|---|---|
| updatedAt | google.protobuf.Timestamp | ||
| productId | int64 | optional | |
| imageUrl | string | optional | |
| name | string | optional | |
| description | string | optional | |
| price | int64 | optional | |
| vendingPlaceId | int64 | ||
| placeOrder | int64 | ||
| free | google.protobuf.BoolValue |
MerchantProductsService¶
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Create | CreateProductRequest | CreateProductResponse | |
| GetList | GetProductsRequest | GetProductsResponse | |
| Update | UpdateProductRequest | UpdateProductResponse |
ModelsService¶
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| GetList | GetModelsRequest | GetModelsResponse | |
| Create | CreateModelRequest | CreateModelResponse | |
| Update | UpdateModelRequest | UpdateModelResponse |
ProductsService¶
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| GetList | GetProductsListRequest | GetProductsListResponse |
VendingPlacesService¶
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Add | AddProductToVendingRequest | AddProductToVendingResponse | |
| Remove | RemoveProductFromVendingRequest | RemoveProductFromVendingResponse |
VendingsService¶
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Create | CreateVendingRequest | CreateVendingResponse | |
| Update | UpdateVendingRequest | UpdateVendingResponse | |
| GetList | GetVendingsRequest | GetVendingsResponse | |
| Get | GetVendingRequest | GetVendingResponse |