@lean2708/shared-grpc-contracts 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lean2708/shared-grpc-contracts",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Shared gRPC Protocol Buffer contracts",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,34 @@
1
+ syntax = "proto3";
2
+
3
+ package shared.variant.v1;
4
+
5
+ option java_multiple_files = true;
6
+ option java_package = "com.shared.grpc.variant";
7
+ option java_outer_classname = "VariantProto";
8
+
9
+ service VariantService {
10
+
11
+ rpc GetVariantForFlashSale(GetVariantForFlashSaleRequest)
12
+ returns (GetVariantForFlashSaleResponse);
13
+
14
+ }
15
+
16
+ message GetVariantForFlashSaleRequest {
17
+
18
+ int64 product_id = 1;
19
+
20
+ int64 variant_id = 2;
21
+
22
+ }
23
+
24
+ message GetVariantForFlashSaleResponse {
25
+
26
+ int64 product_id = 1;
27
+
28
+ int64 variant_id = 2;
29
+
30
+ string price = 3;
31
+
32
+ bool available = 4;
33
+
34
+ }