add more payment related shit
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 37s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m10s

This commit is contained in:
matst80
2025-12-01 18:35:32 +01:00
parent d23bfe62a1
commit c227870f13
15 changed files with 821 additions and 173 deletions

View File

@@ -94,13 +94,39 @@ message SubscriptionAdded {
string orderReference = 4;
}
message PaymentStarted {
string paymentId = 1;
uint32 version = 2;
int64 amount = 3;
string currency = 4;
string provider = 5;
optional string method = 6;
optional google.protobuf.Timestamp startedAt = 7;
}
message PaymentCompleted {
string paymentId = 1;
string status = 2;
int64 amount = 3;
string currency = 4;
optional string processorReference = 5;
optional google.protobuf.Timestamp completedAt = 6;
}
message PaymentDeclined {
string message = 1;
optional string code = 2;
string paymentId = 1;
string message = 2;
optional string code = 3;
}
message PaymentEvent {
string paymentId = 1;
string name = 2;
google.protobuf.Any data = 3;
}
message ConfirmationViewed {
google.protobuf.Timestamp viewedAt = 1;
}
message CreateCheckoutOrder {
@@ -198,5 +224,8 @@ message Mutation {
PreConditionFailed pre_condition_failed = 22;
AddGiftcard add_giftcard = 23;
RemoveGiftcard remove_giftcard = 24;
PaymentStarted payment_started = 25;
PaymentCompleted payment_completed = 26;
PaymentEvent payment_event = 27;
}
}