File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
crates/router/src/connector/worldpay Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,13 @@ impl From<EventType> for enums::AttemptStatus {
217
217
EventType :: CaptureFailed => Self :: CaptureFailed ,
218
218
EventType :: Refused => Self :: Failure ,
219
219
EventType :: Charged | EventType :: SentForSettlement => Self :: Charged ,
220
- _ => Self :: Pending ,
220
+ EventType :: Cancelled
221
+ | EventType :: SentForRefund
222
+ | EventType :: RefundFailed
223
+ | EventType :: Refunded
224
+ | EventType :: Error
225
+ | EventType :: Expired
226
+ | EventType :: Unknown => Self :: Pending ,
221
227
}
222
228
}
223
229
}
@@ -227,7 +233,16 @@ impl From<EventType> for enums::RefundStatus {
227
233
match value {
228
234
EventType :: Refunded => Self :: Success ,
229
235
EventType :: RefundFailed => Self :: Failure ,
230
- _ => Self :: Pending ,
236
+ EventType :: Authorized
237
+ | EventType :: Cancelled
238
+ | EventType :: Charged
239
+ | EventType :: SentForRefund
240
+ | EventType :: Refused
241
+ | EventType :: Error
242
+ | EventType :: SentForSettlement
243
+ | EventType :: Expired
244
+ | EventType :: CaptureFailed
245
+ | EventType :: Unknown => Self :: Pending ,
231
246
}
232
247
}
233
248
}
You can’t perform that action at this time.
0 commit comments