feat: Add ClearCart command and response, implement CancelOrder command with validation, and enhance DeliveryStatus and User models
This commit is contained in:
@@ -43,6 +43,18 @@ service TransactionsContract
|
||||
|
||||
};
|
||||
};
|
||||
rpc VerifyTransaction(VerifyTransactionRequest) returns (VerifyTransactionResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/VerifyTransaction"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RefundTransaction(RefundTransactionRequest) returns (RefundTransactionResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/RefundTransaction"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
message CreateNewTransactionsRequest
|
||||
{
|
||||
@@ -146,3 +158,36 @@ message GetAllTransactionsByFilterResponseModel
|
||||
messages.TransactionType type = 7;
|
||||
}
|
||||
}
|
||||
|
||||
// VerifyTransaction Messages
|
||||
message VerifyTransactionRequest
|
||||
{
|
||||
int64 transaction_id = 1;
|
||||
string ref_id = 2;
|
||||
messages.PaymentStatus status = 3;
|
||||
google.protobuf.Timestamp payment_date = 4;
|
||||
}
|
||||
|
||||
message VerifyTransactionResponse
|
||||
{
|
||||
int64 transaction_id = 1;
|
||||
messages.PaymentStatus status = 2;
|
||||
string ref_id = 3;
|
||||
string message = 4;
|
||||
}
|
||||
|
||||
// RefundTransaction Messages
|
||||
message RefundTransactionRequest
|
||||
{
|
||||
int64 transaction_id = 1;
|
||||
string refund_reason = 2;
|
||||
google.protobuf.Int64Value refund_amount = 3;
|
||||
}
|
||||
|
||||
message RefundTransactionResponse
|
||||
{
|
||||
int64 original_transaction_id = 1;
|
||||
int64 refund_transaction_id = 2;
|
||||
int64 refund_amount = 3;
|
||||
string message = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user