INT-973: Rewrite UI webhook (#119)

* INT-973: Rewrite UI webhook

* Fix
This commit is contained in:
ndiezel0 2024-02-27 16:13:54 +05:00 committed by GitHub
parent da17a84b84
commit a2f3317fa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,5 @@
include "base.thrift"
include "domain.thrift"
include "user_interaction.thrift"
namespace java dev.vality.damsel.webhooker
namespace erlang dmsl.webhooker
@ -104,10 +103,17 @@ struct InvoicePaymentRefundStatusChanged {
}
struct InvoicePaymentUserInteractionChange {
1: required user_interaction.UserInteraction user_interaction
2: required user_interaction.Status status
1: required UserInteractionStatus status
}
union UserInteractionStatus {
1: UserInteractionStatusRequested requested
2: UserInteractionStatusCompleted completed
}
struct UserInteractionStatusRequested {}
struct UserInteractionStatusCompleted {}
union InvoicePaymentStatus {
1: InvoicePaymentPending pending
4: InvoicePaymentProcessed processed