@lean2708/shared-grpc-contracts 1.1.5 → 1.1.6

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.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Shared gRPC Protocol Buffer contracts",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,41 @@
1
+ syntax = "proto3";
2
+
3
+ package shared.checkout.v1;
4
+
5
+ option java_multiple_files = true;
6
+ option java_package = "com.shared.grpc.checkout";
7
+ option java_outer_classname = "CheckoutVariantProto";
8
+
9
+ service CheckoutVariantService {
10
+
11
+ rpc GetCheckoutVariants(GetCheckoutVariantsRequest)
12
+ returns (GetCheckoutVariantsResponse);
13
+
14
+ }
15
+
16
+ message GetCheckoutVariantsRequest {
17
+
18
+ repeated int64 variant_ids = 1;
19
+
20
+ }
21
+
22
+ message CheckoutVariantInfo {
23
+
24
+ int64 variant_id = 1;
25
+
26
+ int64 product_id = 2;
27
+
28
+ int64 shop_id = 3;
29
+
30
+ int64 unit_price = 4;
31
+
32
+ int64 available_quantity = 5;
33
+
34
+ bool available = 6;
35
+ }
36
+
37
+ message GetCheckoutVariantsResponse {
38
+
39
+ repeated CheckoutVariantInfo variants = 1;
40
+
41
+ }