2
2
#[ allow( clippy:: derive_partial_eq_without_eq) ]
3
3
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
4
4
pub struct EventEnvelope {
5
- #[ prost( oneof = "event_envelope::Event" , tags = "2" ) ]
5
+ #[ prost( oneof = "event_envelope::Event" , tags = "2, 3, 4, 6 " ) ]
6
6
pub event : :: core:: option:: Option < event_envelope:: Event > ,
7
7
}
8
8
/// Nested message and enum types in `EventEnvelope`.
@@ -11,9 +11,39 @@ pub mod event_envelope {
11
11
#[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
12
12
pub enum Event {
13
13
#[ prost( message, tag = "2" ) ]
14
+ PaymentReceived ( super :: PaymentReceived ) ,
15
+ #[ prost( message, tag = "3" ) ]
16
+ PaymentSuccessful ( super :: PaymentSuccessful ) ,
17
+ #[ prost( message, tag = "4" ) ]
18
+ PaymentFailed ( super :: PaymentFailed ) ,
19
+ #[ prost( message, tag = "6" ) ]
14
20
PaymentForwarded ( super :: PaymentForwarded ) ,
15
21
}
16
22
}
23
+ /// PaymentReceived indicates a payment has been received.
24
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
25
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
26
+ pub struct PaymentReceived {
27
+ /// The payment details for the payment in event.
28
+ #[ prost( message, optional, tag = "1" ) ]
29
+ pub payment : :: core:: option:: Option < super :: types:: Payment > ,
30
+ }
31
+ /// PaymentSuccessful indicates a sent payment was successful.
32
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
33
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
34
+ pub struct PaymentSuccessful {
35
+ /// The payment details for the payment in event.
36
+ #[ prost( message, optional, tag = "1" ) ]
37
+ pub payment : :: core:: option:: Option < super :: types:: Payment > ,
38
+ }
39
+ /// PaymentFailed indicates a sent payment has failed.
40
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
41
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
42
+ pub struct PaymentFailed {
43
+ /// The payment details for the payment in event.
44
+ #[ prost( message, optional, tag = "1" ) ]
45
+ pub payment : :: core:: option:: Option < super :: types:: Payment > ,
46
+ }
17
47
/// PaymentForwarded indicates a payment was forwarded through the node.
18
48
#[ allow( clippy:: derive_partial_eq_without_eq) ]
19
49
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
0 commit comments