Added ownership reference + wallet creation methods

This commit is contained in:
Stephan D
2026-01-07 13:12:31 +01:00
parent 33647a0f3d
commit 9e747e7251
19 changed files with 400 additions and 85 deletions

View File

@@ -128,7 +128,7 @@ message Account {
string asset = 3; // canonical asset string (USD, ETH, USDT-TRC20)
AccountState state = 4;
string label = 5;
string owner_ref = 6;
string owner_ref = 6; // optional account_ref; empty means organization-owned
google.protobuf.Struct provider_details = 7;
google.protobuf.Timestamp created_at = 8;
google.protobuf.Timestamp updated_at = 9;
@@ -188,7 +188,7 @@ message OpenAccountRequest {
AccountKind kind = 2;
string asset = 3; // canonical asset string (USD, ETH, USDT-TRC20)
string label = 4;
string owner_ref = 5;
string owner_ref = 5; // optional account_ref; empty means organization-owned
google.protobuf.Struct params = 6;
string correlation_id = 7;
string parent_intent_id = 8;
@@ -212,6 +212,7 @@ message ListAccountsRequest {
AccountKind kind = 2;
string asset = 3; // canonical asset string (USD, ETH, USDT-TRC20)
common.pagination.v1.CursorPageRequest page = 4;
string organization_ref = 5; // optional org scope (preferred over owner_ref)
}
message ListAccountsResponse {

View File

@@ -70,14 +70,15 @@ message PostingLine {
message CreateAccountRequest {
string organization_ref = 1;
string account_code = 2;
AccountType account_type = 3;
string currency = 4;
AccountStatus status = 5;
bool allow_negative = 6;
bool is_settlement = 7;
map<string, string> metadata = 8;
common.describable.v1.Describable describable = 9;
string owner_ref = 2;
string account_code = 3;
AccountType account_type = 4;
string currency = 5;
AccountStatus status = 6;
bool allow_negative = 7;
bool is_settlement = 8;
map<string, string> metadata = 9;
common.describable.v1.Describable describable = 10;
}
message CreateAccountResponse {