ledger account describibale support
This commit is contained in:
@@ -5,6 +5,7 @@ package ledger.v1;
|
||||
option go_package = "github.com/tech/sendico/pkg/proto/ledger/v1;ledgerv1";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "common/describable/v1/describable.proto";
|
||||
import "common/money/v1/money.proto";
|
||||
|
||||
// ===== Enums =====
|
||||
@@ -55,13 +56,14 @@ message LedgerAccount {
|
||||
map<string, string> metadata = 9;
|
||||
google.protobuf.Timestamp created_at = 10;
|
||||
google.protobuf.Timestamp updated_at = 11;
|
||||
common.describable.v1.Describable describable = 12;
|
||||
}
|
||||
|
||||
// A single posting line (mirrors your PostingLine model)
|
||||
message PostingLine {
|
||||
string ledger_account_ref = 1;
|
||||
common.money.v1.Money money = 2;
|
||||
LineType line_type = 3; // MAIN, FEE, SPREAD, ...
|
||||
string ledger_account_ref = 1;
|
||||
common.money.v1.Money money = 2;
|
||||
LineType line_type = 3; // MAIN, FEE, SPREAD, ...
|
||||
}
|
||||
|
||||
// ===== Requests/Responses =====
|
||||
@@ -75,6 +77,7 @@ message CreateAccountRequest {
|
||||
bool allow_negative = 6;
|
||||
bool is_settlement = 7;
|
||||
map<string, string> metadata = 8;
|
||||
common.describable.v1.Describable describable = 9;
|
||||
}
|
||||
|
||||
message CreateAccountResponse {
|
||||
@@ -124,12 +127,12 @@ message FXRequest {
|
||||
string from_ledger_account_ref = 3;
|
||||
string to_ledger_account_ref = 4;
|
||||
|
||||
common.money.v1.Money from_money = 5; // debited
|
||||
common.money.v1.Money to_money = 6; // credited
|
||||
string rate = 7; // quoted rate as string (snapshot for audit)
|
||||
common.money.v1.Money from_money = 5; // debited
|
||||
common.money.v1.Money to_money = 6; // credited
|
||||
string rate = 7; // quoted rate as string (snapshot for audit)
|
||||
|
||||
string description = 8;
|
||||
repeated PostingLine charges = 9; // FEE/SPREAD lines
|
||||
repeated PostingLine charges = 9; // FEE/SPREAD lines
|
||||
map<string, string> metadata = 10;
|
||||
google.protobuf.Timestamp event_time = 11;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user