refactored payment orchestration
This commit is contained in:
@@ -36,14 +36,17 @@ enum DepositStatus {
|
||||
|
||||
enum TransferStatus {
|
||||
TRANSFER_STATUS_UNSPECIFIED = 0;
|
||||
TRANSFER_PENDING = 1;
|
||||
TRANSFER_SIGNING = 2;
|
||||
TRANSFER_SUBMITTED = 3;
|
||||
TRANSFER_CONFIRMED = 4;
|
||||
TRANSFER_FAILED = 5;
|
||||
TRANSFER_CANCELLED = 6;
|
||||
|
||||
TRANSFER_CREATED = 1; // record exists, not started
|
||||
TRANSFER_PROCESSING = 2; // we are working on it (signing, building tx, etc)
|
||||
TRANSFER_WAITING = 3; // waiting external world (network/provider)
|
||||
|
||||
TRANSFER_SUCCESS = 4; // final success
|
||||
TRANSFER_FAILED = 5; // final failure
|
||||
TRANSFER_CANCELLED = 6; // final cancelled
|
||||
}
|
||||
|
||||
|
||||
// Asset captures the chain/token pair so downstream systems can route correctly.
|
||||
message Asset {
|
||||
ChainNetwork chain = 1;
|
||||
@@ -148,6 +151,8 @@ message Transfer {
|
||||
string failure_reason = 12;
|
||||
google.protobuf.Timestamp created_at = 13;
|
||||
google.protobuf.Timestamp updated_at = 14;
|
||||
string intent_ref = 15;
|
||||
string payment_ref = 16;
|
||||
}
|
||||
|
||||
message SubmitTransferRequest {
|
||||
@@ -158,7 +163,9 @@ message SubmitTransferRequest {
|
||||
common.money.v1.Money amount = 5;
|
||||
repeated ServiceFeeBreakdown fees = 6;
|
||||
map<string, string> metadata = 7;
|
||||
string client_reference = 8;
|
||||
string operation_ref = 8;
|
||||
string intent_ref = 9;
|
||||
string payment_ref = 10;
|
||||
}
|
||||
|
||||
message SubmitTransferResponse {
|
||||
@@ -214,7 +221,9 @@ message EnsureGasTopUpRequest {
|
||||
string target_wallet_ref = 4;
|
||||
common.money.v1.Money estimated_total_fee = 5;
|
||||
map<string, string> metadata = 6;
|
||||
string client_reference = 7;
|
||||
string payment_ref = 7;
|
||||
string intent_ref = 8;
|
||||
string operation_ref = 9;
|
||||
}
|
||||
|
||||
message EnsureGasTopUpResponse {
|
||||
|
||||
Reference in New Issue
Block a user