@lean2708/shared-grpc-contracts 1.2.3 → 1.2.5

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.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "Shared gRPC Protocol Buffer contracts",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -13,6 +13,10 @@ service BankAccountService {
13
13
 
14
14
  rpc DecryptAccountNumber(DecryptAccountNumberRequest)
15
15
  returns (DecryptAccountNumberResponse);
16
+
17
+ rpc GetDefaultBankAccount (GetDefaultBankAccountRequest)
18
+ returns (GetDefaultBankAccountResponse);
19
+
16
20
  }
17
21
 
18
22
 
@@ -52,3 +56,14 @@ message DecryptAccountNumberResponse {
52
56
  string account_number = 1;
53
57
 
54
58
  }
59
+
60
+
61
+ message GetDefaultBankAccountRequest {
62
+ string user_id = 1;
63
+ }
64
+
65
+ message GetDefaultBankAccountResponse {
66
+ bool found = 1;
67
+
68
+ GetUserBankAccountResponse bank_account = 2;
69
+ }
@@ -0,0 +1,22 @@
1
+ syntax = "proto3";
2
+
3
+ package shared.shop.v1;
4
+
5
+ option java_multiple_files = true;
6
+ option java_package = "com.shared.grpc.shop";
7
+ option java_outer_classname = "ShopMemberProto";
8
+
9
+ service ShopMemberService {
10
+ rpc CheckShopMember (CheckShopMemberRequest) returns (CheckShopMemberResponse);
11
+ }
12
+
13
+ message CheckShopMemberRequest {
14
+ int64 shop_id = 1;
15
+ string user_id = 2;
16
+ }
17
+
18
+ message CheckShopMemberResponse {
19
+ bool is_member = 1;
20
+
21
+ string member_role = 2;
22
+ }