customer/api/proto/callback/callback.proto
skeris 2f514522b6
All checks were successful
Deploy / CreateImage (push) Successful in 2m48s
Deploy / DeployService (push) Successful in 21s
fix: buf
2025-08-14 02:22:45 +03:00

33 lines
692 B
Protocol Buffer

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) {}
rpc OnCartPurchase(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;
}