customer/api/proto/callback/service.proto

32 lines
658 B
Protocol Buffer
Raw Normal View History

2023-06-22 09:36:43 +00:00
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;
}