Skip to content

Commit 58f8429

Browse files
authored
fix(connector): [Access Worldpay] correct enum deserialization for payment responses for (#8689)
1 parent 2b6f6c4 commit 58f8429

File tree

1 file changed

+3
-3
lines changed
  • crates/hyperswitch_connectors/src/connectors/worldpay

1 file changed

+3
-3
lines changed

crates/hyperswitch_connectors/src/connectors/worldpay/response.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ pub struct WorldpayPaymentsResponse {
1818
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
1919
#[serde(untagged)]
2020
pub enum WorldpayPaymentResponseFields {
21-
AuthorizedResponse(Box<AuthorizedResponse>),
22-
DDCResponse(DDCResponse),
23-
FraudHighRisk(FraudHighRiskResponse),
2421
RefusedResponse(RefusedResponse),
22+
DDCResponse(DDCResponse),
2523
ThreeDsChallenged(ThreeDsChallengedResponse),
24+
FraudHighRisk(FraudHighRiskResponse),
25+
AuthorizedResponse(Box<AuthorizedResponse>),
2626
}
2727

2828
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]

0 commit comments

Comments
 (0)