refactored payment orchestration
This commit is contained in:
@@ -54,13 +54,17 @@ enum OperationType {
|
||||
|
||||
enum OperationStatus {
|
||||
OPERATION_STATUS_UNSPECIFIED = 0;
|
||||
SUBMITTED = 1;
|
||||
PENDING = 2;
|
||||
CONFIRMED = 3;
|
||||
FAILED = 4;
|
||||
CANCELED = 5;
|
||||
|
||||
OPERATION_CREATED = 1; // record exists, not started
|
||||
OPERATION_PROCESSING = 2; // we are working on it
|
||||
OPERATION_WAITING = 3; // waiting external world
|
||||
|
||||
OPERATION_SUCCESS = 4; // final success
|
||||
OPERATION_FAILED = 5; // final failure
|
||||
OPERATION_CANCELLED = 6; // final cancelled
|
||||
}
|
||||
|
||||
|
||||
enum ParamType {
|
||||
PARAM_TYPE_UNSPECIFIED = 0;
|
||||
STRING = 1;
|
||||
@@ -101,7 +105,7 @@ message ConnectorCapabilities {
|
||||
string version = 2;
|
||||
repeated AccountKind supported_account_kinds = 3;
|
||||
repeated OperationType supported_operation_types = 4;
|
||||
repeated string supported_assets = 5; // canonical asset string (USD, ETH, USDT-TRC20)
|
||||
repeated string supported_assets = 5; // canonical asset string (USD, ETH, USDT-TRC20)
|
||||
repeated string supported_networks = 6; // optional, connector-defined names
|
||||
repeated ParamSpec open_account_params = 7;
|
||||
repeated OperationParamSpec operation_params = 8;
|
||||
@@ -173,6 +177,8 @@ message Operation {
|
||||
google.protobuf.Timestamp updated_at = 13;
|
||||
common.account_role.v1.AccountRole from_role = 14;
|
||||
common.account_role.v1.AccountRole to_role = 15;
|
||||
string operation_ref = 16;
|
||||
string intent_ref = 17;
|
||||
}
|
||||
|
||||
message OperationReceipt {
|
||||
|
||||
Reference in New Issue
Block a user