Generator Changes at 11/12/2025 1:32:03 AM +03:30
This commit is contained in:
223
src/CMSMicroservice.Protobuf/Protos/transactions.proto
Normal file
223
src/CMSMicroservice.Protobuf/Protos/transactions.proto
Normal file
@@ -0,0 +1,223 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package transactions;
|
||||
|
||||
import "public_messages.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.Transactions";
|
||||
|
||||
service TransactionsContract
|
||||
{
|
||||
rpc CreateNewTransactions(CreateNewTransactionsRequest) returns (CreateNewTransactionsResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/CreateNewTransactions"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc UpdateTransactions(UpdateTransactionsRequest) returns (google.protobuf.Empty){
|
||||
option (google.api.http) = {
|
||||
put: "/UpdateTransactions"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc DeleteTransactions(DeleteTransactionsRequest) returns (google.protobuf.Empty){
|
||||
option (google.api.http) = {
|
||||
delete: "/DeleteTransactions"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetTransactions"
|
||||
|
||||
};
|
||||
};
|
||||
rpc GetAllTransactionsByFilter(GetAllTransactionsByFilterRequest) returns (GetAllTransactionsByFilterResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetAllTransactionsByFilter"
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
message CreateNewTransactionsRequest
|
||||
{
|
||||
string merchant_id = 1;
|
||||
int64 amount = 2;
|
||||
string callback_url = 3;
|
||||
string description = 4;
|
||||
google.protobuf.StringValue mobile = 5;
|
||||
google.protobuf.StringValue email = 6;
|
||||
google.protobuf.Int32Value request_status_code = 7;
|
||||
google.protobuf.StringValue request_status_message = 8;
|
||||
google.protobuf.StringValue authority = 9;
|
||||
google.protobuf.StringValue fee_type = 10;
|
||||
google.protobuf.Int64Value fee = 11;
|
||||
google.protobuf.Int32Value currency = 12;
|
||||
oneof PaymentStatus_item
|
||||
{
|
||||
messages.PaymentStatus payment_status = 13;
|
||||
}
|
||||
google.protobuf.Timestamp payment_date = 14;
|
||||
google.protobuf.Int32Value verification_status_code = 15;
|
||||
google.protobuf.StringValue verification_status_message = 16;
|
||||
google.protobuf.StringValue card_hash = 17;
|
||||
google.protobuf.StringValue card_pan = 18;
|
||||
google.protobuf.StringValue ref_id = 19;
|
||||
google.protobuf.StringValue order_id = 20;
|
||||
oneof Type_item
|
||||
{
|
||||
messages.TransactionType type = 21;
|
||||
}
|
||||
}
|
||||
message CreateNewTransactionsResponse
|
||||
{
|
||||
int64 id = 1;
|
||||
}
|
||||
message UpdateTransactionsRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
string merchant_id = 2;
|
||||
int64 amount = 3;
|
||||
string callback_url = 4;
|
||||
string description = 5;
|
||||
google.protobuf.StringValue mobile = 6;
|
||||
google.protobuf.StringValue email = 7;
|
||||
google.protobuf.Int32Value request_status_code = 8;
|
||||
google.protobuf.StringValue request_status_message = 9;
|
||||
google.protobuf.StringValue authority = 10;
|
||||
google.protobuf.StringValue fee_type = 11;
|
||||
google.protobuf.Int64Value fee = 12;
|
||||
google.protobuf.Int32Value currency = 13;
|
||||
oneof PaymentStatus_item
|
||||
{
|
||||
messages.PaymentStatus payment_status = 14;
|
||||
}
|
||||
google.protobuf.Timestamp payment_date = 15;
|
||||
google.protobuf.Int32Value verification_status_code = 16;
|
||||
google.protobuf.StringValue verification_status_message = 17;
|
||||
google.protobuf.StringValue card_hash = 18;
|
||||
google.protobuf.StringValue card_pan = 19;
|
||||
google.protobuf.StringValue ref_id = 20;
|
||||
google.protobuf.StringValue order_id = 21;
|
||||
oneof Type_item
|
||||
{
|
||||
messages.TransactionType type = 22;
|
||||
}
|
||||
}
|
||||
message DeleteTransactionsRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
}
|
||||
message GetTransactionsRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
}
|
||||
message GetTransactionsResponse
|
||||
{
|
||||
int64 id = 1;
|
||||
string merchant_id = 2;
|
||||
int64 amount = 3;
|
||||
string callback_url = 4;
|
||||
string description = 5;
|
||||
google.protobuf.StringValue mobile = 6;
|
||||
google.protobuf.StringValue email = 7;
|
||||
google.protobuf.Int32Value request_status_code = 8;
|
||||
google.protobuf.StringValue request_status_message = 9;
|
||||
google.protobuf.StringValue authority = 10;
|
||||
google.protobuf.StringValue fee_type = 11;
|
||||
google.protobuf.Int64Value fee = 12;
|
||||
google.protobuf.Int32Value currency = 13;
|
||||
oneof PaymentStatus_item
|
||||
{
|
||||
messages.PaymentStatus payment_status = 14;
|
||||
}
|
||||
google.protobuf.Timestamp payment_date = 15;
|
||||
google.protobuf.Int32Value verification_status_code = 16;
|
||||
google.protobuf.StringValue verification_status_message = 17;
|
||||
google.protobuf.StringValue card_hash = 18;
|
||||
google.protobuf.StringValue card_pan = 19;
|
||||
google.protobuf.StringValue ref_id = 20;
|
||||
google.protobuf.StringValue order_id = 21;
|
||||
oneof Type_item
|
||||
{
|
||||
messages.TransactionType type = 22;
|
||||
}
|
||||
}
|
||||
message GetAllTransactionsByFilterRequest
|
||||
{
|
||||
messages.PaginationState pagination_state = 1;
|
||||
google.protobuf.StringValue sort_by = 2;
|
||||
GetAllTransactionsByFilterFilter filter = 3;
|
||||
}
|
||||
message GetAllTransactionsByFilterFilter
|
||||
{
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.StringValue merchant_id = 2;
|
||||
google.protobuf.Int64Value amount = 3;
|
||||
google.protobuf.StringValue callback_url = 4;
|
||||
google.protobuf.StringValue description = 5;
|
||||
google.protobuf.StringValue mobile = 6;
|
||||
google.protobuf.StringValue email = 7;
|
||||
google.protobuf.Int32Value request_status_code = 8;
|
||||
google.protobuf.StringValue request_status_message = 9;
|
||||
google.protobuf.StringValue authority = 10;
|
||||
google.protobuf.StringValue fee_type = 11;
|
||||
google.protobuf.Int64Value fee = 12;
|
||||
google.protobuf.Int32Value currency = 13;
|
||||
oneof PaymentStatus_item
|
||||
{
|
||||
messages.PaymentStatus payment_status = 14;
|
||||
}
|
||||
google.protobuf.Timestamp payment_date = 15;
|
||||
google.protobuf.Int32Value verification_status_code = 16;
|
||||
google.protobuf.StringValue verification_status_message = 17;
|
||||
google.protobuf.StringValue card_hash = 18;
|
||||
google.protobuf.StringValue card_pan = 19;
|
||||
google.protobuf.StringValue ref_id = 20;
|
||||
google.protobuf.StringValue order_id = 21;
|
||||
oneof Type_item
|
||||
{
|
||||
messages.TransactionType type = 22;
|
||||
}
|
||||
}
|
||||
message GetAllTransactionsByFilterResponse
|
||||
{
|
||||
messages.MetaData meta_data = 1;
|
||||
repeated GetAllTransactionsByFilterResponseModel models = 2;
|
||||
}
|
||||
message GetAllTransactionsByFilterResponseModel
|
||||
{
|
||||
int64 id = 1;
|
||||
string merchant_id = 2;
|
||||
int64 amount = 3;
|
||||
string callback_url = 4;
|
||||
string description = 5;
|
||||
google.protobuf.StringValue mobile = 6;
|
||||
google.protobuf.StringValue email = 7;
|
||||
google.protobuf.Int32Value request_status_code = 8;
|
||||
google.protobuf.StringValue request_status_message = 9;
|
||||
google.protobuf.StringValue authority = 10;
|
||||
google.protobuf.StringValue fee_type = 11;
|
||||
google.protobuf.Int64Value fee = 12;
|
||||
google.protobuf.Int32Value currency = 13;
|
||||
oneof PaymentStatus_item
|
||||
{
|
||||
messages.PaymentStatus payment_status = 14;
|
||||
}
|
||||
google.protobuf.Timestamp payment_date = 15;
|
||||
google.protobuf.Int32Value verification_status_code = 16;
|
||||
google.protobuf.StringValue verification_status_message = 17;
|
||||
google.protobuf.StringValue card_hash = 18;
|
||||
google.protobuf.StringValue card_pan = 19;
|
||||
google.protobuf.StringValue ref_id = 20;
|
||||
google.protobuf.StringValue order_id = 21;
|
||||
oneof Type_item
|
||||
{
|
||||
messages.TransactionType type = 22;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user