aboutsummaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-08-10 12:09:22 +0200
committerrtkay123 <dev@kanjala.com>2025-08-10 12:09:27 +0200
commitaf407fe5c3e1d5b8b315db029805fa7290c83fae (patch)
treec6cde42d7e05453b0be99fa5c3f181fc843ab76a /proto
parentd50185df5a5870498b6c7e6b51e0368d051743ca (diff)
downloadwarden-af407fe5c3e1d5b8b315db029805fa7290c83fae.tar.bz2
warden-af407fe5c3e1d5b8b315db029805fa7290c83fae.zip
feat(pseudonyms): proto definitions
Diffstat (limited to 'proto')
-rw-r--r--proto/pseudonyms/account.proto15
-rw-r--r--proto/pseudonyms/account_holder.proto11
-rw-r--r--proto/pseudonyms/entity.proto10
-rw-r--r--proto/pseudonyms/transaction_relationship.proto34
4 files changed, 70 insertions, 0 deletions
diff --git a/proto/pseudonyms/account.proto b/proto/pseudonyms/account.proto
new file mode 100644
index 0000000..bdca80c
--- /dev/null
+++ b/proto/pseudonyms/account.proto
@@ -0,0 +1,15 @@
+syntax = "proto3";
+
+package pseudonyms.account;
+
+import "google/protobuf/timestamp.proto";
+
+message Account {
+ string id = 1;
+}
+
+message CreateAccount {
+ string id = 1;
+ string account_id = 2;
+ google.protobuf.Timestamp cre_dt_tm = 3;
+}
diff --git a/proto/pseudonyms/account_holder.proto b/proto/pseudonyms/account_holder.proto
new file mode 100644
index 0000000..80c7557
--- /dev/null
+++ b/proto/pseudonyms/account_holder.proto
@@ -0,0 +1,11 @@
+syntax = "proto3";
+
+package pseudonyms.account_holder;
+
+import "google/protobuf/timestamp.proto";
+
+message AccountHolder {
+ string entity_id = 1;
+ string account_id = 2;
+ google.protobuf.Timestamp cre_dt_tm = 3;
+}
diff --git a/proto/pseudonyms/entity.proto b/proto/pseudonyms/entity.proto
new file mode 100644
index 0000000..d656193
--- /dev/null
+++ b/proto/pseudonyms/entity.proto
@@ -0,0 +1,10 @@
+syntax = "proto3";
+
+package pseudonyms.entity;
+
+import "google/protobuf/timestamp.proto";
+
+message Entity {
+ string id = 1;
+ google.protobuf.Timestamp cre_dt_tm = 2;
+}
diff --git a/proto/pseudonyms/transaction_relationship.proto b/proto/pseudonyms/transaction_relationship.proto
new file mode 100644
index 0000000..cd8bae5
--- /dev/null
+++ b/proto/pseudonyms/transaction_relationship.proto
@@ -0,0 +1,34 @@
+syntax = "proto3";
+
+package pseudonyms.transaction_relationship;
+
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/empty.proto";
+import "google/type/money.proto";
+import "google/type/latlng.proto";
+
+// TransactionRelationship message definition
+message TransactionRelationship {
+ string from = 1;
+ string to = 2;
+ optional google.type.Money amt = 3;
+ google.protobuf.Timestamp cre_dt_tm = 4;
+ string end_to_end_id = 5;
+ optional google.type.LatLng latlng = 6;
+ string msg_id = 7;
+ string pmt_inf_id = 8;
+ string tx_tp = 9;
+ optional string tx_sts = 10;
+}
+
+message CreatePseudonymRequest {
+ TransactionRelationship transaction_relationship = 1;
+ string debtor_id = 2;
+ string debtor_account_id = 3;
+ string creditor_id = 4;
+ string creditor_account_id = 5;
+}
+
+service MutatePseudonym {
+ rpc CreatePseudonym(CreatePseudonymRequest) returns (google.protobuf.Empty);
+}