Feat/refactor v1 #38
@@ -253,3 +253,13 @@ message RetrySettlementRequest {
|
|||||||
message RetrySettlementResponse {
|
message RetrySettlementResponse {
|
||||||
Settlement settlement = 1;
|
Settlement settlement = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message IgnoreSettlementRequest {
|
||||||
|
string settlement_id = 1;
|
||||||
|
string actor_id = 2;
|
||||||
|
string reason = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message IgnoreSettlementResponse {
|
||||||
|
Settlement settlement = 1;
|
||||||
|
}
|
||||||
|
|||||||
@@ -23,4 +23,7 @@ service GeneralLedgerService {
|
|||||||
rpc GetSettlement(GetSettlementRequest) returns (Settlement);
|
rpc GetSettlement(GetSettlementRequest) returns (Settlement);
|
||||||
// Restricted operator command. Requires the configured x-admin-token metadata.
|
// Restricted operator command. Requires the configured x-admin-token metadata.
|
||||||
rpc RetrySettlement(RetrySettlementRequest) returns (RetrySettlementResponse);
|
rpc RetrySettlement(RetrySettlementRequest) returns (RetrySettlementResponse);
|
||||||
|
// Operator-reviewed, terminal dismissal. Does not confirm or reverse payment.
|
||||||
|
// Requires x-admin-token and a recorded reason; only unlocked failed settlements.
|
||||||
|
rpc IgnoreSettlement(IgnoreSettlementRequest) returns (IgnoreSettlementResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ service InternalWalletSrv {
|
|||||||
rpc AdminDeactivateAsset(AdminDeactivateAssetReq) returns (base.v1.StatusRes);
|
rpc AdminDeactivateAsset(AdminDeactivateAssetReq) returns (base.v1.StatusRes);
|
||||||
|
|
||||||
rpc AdminApproveIRTWithdrawal(AdminApproveIRTWithdrawalReq) returns (base.v1.StatusRes);
|
rpc AdminApproveIRTWithdrawal(AdminApproveIRTWithdrawalReq) returns (base.v1.StatusRes);
|
||||||
|
// Cancels an unapproved request and releases its reservation atomically.
|
||||||
|
rpc AdminCancelIRTWithdrawal(AdminCancelIRTWithdrawalReq) returns (base.v1.StatusRes);
|
||||||
|
// Cancel only an undecided ICO agreement, atomically against user acceptance.
|
||||||
|
rpc AdminCancelICOAgreement(AdminCancelICOAgreementReq) returns (base.v1.StatusRes);
|
||||||
|
|
||||||
// Bank statement receipts are checked and confirmed through the wallet owner.
|
// Bank statement receipts are checked and confirmed through the wallet owner.
|
||||||
// Confirmation is idempotent by bank_transaction_number.
|
// Confirmation is idempotent by bank_transaction_number.
|
||||||
|
|||||||
@@ -898,3 +898,15 @@ message AdminDeactivateAssetReq {
|
|||||||
message AdminAssetMutationRes {
|
message AdminAssetMutationRes {
|
||||||
int64 asset_id = 1;
|
int64 asset_id = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Administrative cancellation never changes a decided agreement or moves funds.
|
||||||
|
message AdminCancelICOAgreementReq {
|
||||||
|
uint64 agreement_id = 1;
|
||||||
|
int64 actor_user_id = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AdminCancelIRTWithdrawalReq {
|
||||||
|
uint64 withdraw_log_id = 1;
|
||||||
|
string reason = 2;
|
||||||
|
int64 actor_user_id = 3;
|
||||||
|
}
|
||||||
|
|||||||
@@ -74,4 +74,5 @@ message WalletAnalytics {
|
|||||||
int64 transaction_count = 1;
|
int64 transaction_count = 1;
|
||||||
map<string, int64> transaction_count_by_type = 2;
|
map<string, int64> transaction_count_by_type = 2;
|
||||||
int64 account_count = 3;
|
int64 account_count = 3;
|
||||||
|
int64 project_count = 4;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user