syntax = "proto3"; package payment_callback; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; option go_package = "./payment_callback"; service PaymentCallbackService { rpc OnSuccess(Event) returns (google.protobuf.Empty) {} rpc OnFailure(Event) returns (google.protobuf.Empty) {} } message Event { string Key = 1; string Message = 2; Payment Payment = 3; } message Payment { string ID = 1; string UserID = 2; string PaymentID = 3; string IdempotencePaymentID = 4; int64 Amount = 5; string Currency = 6; string Type = 7; string Status = 8; bool Completed = 9; }