Bug: [BUG] Fix incorrect consumer authenttication information fields



### Bug Description

Fix consumer authenttication information request field
1. Rename consumer_authentication_information.pares_status_reason field to consumer_authentication_information.signed_pares_status_reason
2. Move cavv_algorithm from processing_information to consumer_authentication_information

### Expected Behavior

n/a

### Actual Behavior

Request field struct is correctly incorrect for consumer_authentication_information -
- pares_status_reason
- cavv_algorithm

### Steps To Reproduce

Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'


### Context For The Bug

_No response_

### Environment

Are you using hyperswitch hosted version? Yes/No
If yes, please provide the value of the `x-request-id` response header to help us debug your issue.

If not (or if building/running locally), please provide the following details:
1. Operating System or Linux distribution:
2. Rust version (output of `rustc --version`): ``
3. App version (output of `cargo r --features vergen -- --version`): ``


### Have you spent some time checking if this bug has been raised before?

- [x] I checked and didn't find a similar issue

### Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md)

### Are you willing to submit a PR?

Yes, I am willing to submit a PR!
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
index f080a76b051..ca41d12e9b8 100644
--- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
@@ -335,7 +335,6 @@ impl TryFrom<&SetupMandateRouterData> for CybersourceZeroMandateRequest {
                 ))?
             }
         };
-        let cavv_algorithm = Some("2".to_string());
 
         let processing_information = ProcessingInformation {
             capture: Some(false),
@@ -345,7 +344,6 @@ impl TryFrom<&SetupMandateRouterData> for CybersourceZeroMandateRequest {
             authorization_options,
             commerce_indicator: String::from("internet"),
             payment_solution: solution.map(String::from),
-            cavv_algorithm,
         };
         Ok(Self {
             processing_information,
@@ -379,7 +377,6 @@ pub struct ProcessingInformation {
     capture: Option<bool>,
     capture_options: Option<CaptureOptions>,
     payment_solution: Option<String>,
-    cavv_algorithm: Option<String>,
 }
 
 #[derive(Debug, Serialize)]
@@ -425,13 +422,15 @@ pub struct CybersourceConsumerAuthInformation {
     /// This field indicates the authentication type or challenge presented to the cardholder at checkout.
     challenge_code: Option<String>,
     /// This field indicates the reason for payer authentication response status. It is only supported for secure transactions in France.
-    pares_status_reason: Option<String>,
+    signed_pares_status_reason: Option<String>,
     /// This field indicates the reason why strong authentication was cancelled. It is only supported for secure transactions in France.
     challenge_cancel_code: Option<String>,
     /// This field indicates the score calculated by the 3D Securing platform. It is only supported for secure transactions in France.
     network_score: Option<u32>,
     /// This is the transaction ID generated by the access control server. This field is supported only for secure transactions in France.
     acs_transaction_id: Option<String>,
+    /// This is the algorithm for generating a cardholder authentication verification value (CAVV) or universal cardholder authentication field (UCAF) data.
+    cavv_algorithm: Option<String>,
 }
 
 #[derive(Debug, Serialize)]
@@ -1007,11 +1006,6 @@ impl
                     .map(|eci| get_commerce_indicator_for_external_authentication(network, eci))
             });
 
-        // The 3DS Server might not include the `cavvAlgorithm` field in the challenge response.
-        // In such cases, we default to "2", which represents the CVV with Authentication Transaction Number (ATN) algorithm.
-        // This is the most commonly used value for 3DS 2.0 transactions (e.g., Visa, Mastercard).
-        let cavv_algorithm = Some("2".to_string());
-
         Ok(Self {
             capture: Some(matches!(
                 item.router_data.request.capture_method,
@@ -1024,7 +1018,6 @@ impl
             capture_options: None,
             commerce_indicator: commerce_indicator_for_external_authentication
                 .unwrap_or(commerce_indicator),
-            cavv_algorithm,
         })
     }
 }
@@ -1121,7 +1114,6 @@ impl
             } else {
                 (None, None, None)
             };
-        let cavv_algorithm = Some("2".to_string());
 
         Ok(Self {
             capture: Some(matches!(
@@ -1137,7 +1129,6 @@ impl
                 .indicator
                 .to_owned()
                 .unwrap_or(String::from("internet")),
-            cavv_algorithm,
         })
     }
 }
@@ -1456,6 +1447,11 @@ impl
                         .and_then(|exts| extract_score_id(&exts))
                 });
 
+                // The 3DS Server might not include the `cavvAlgorithm` field in the challenge response.
+                // In such cases, we default to "2", which represents the CVV with Authentication Transaction Number (ATN) algorithm.
+                // This is the most commonly used value for 3DS 2.0 transactions (e.g., Visa, Mastercard).
+                let cavv_algorithm = Some("2".to_string());
+
                 CybersourceConsumerAuthInformation {
                     pares_status,
                     ucaf_collection_indicator,
@@ -1473,10 +1469,11 @@ impl
                     authentication_date,
                     effective_authentication_type,
                     challenge_code: authn_data.challenge_code.clone(),
-                    pares_status_reason: authn_data.challenge_code_reason.clone(),
+                    signed_pares_status_reason: authn_data.challenge_code_reason.clone(),
                     challenge_cancel_code: authn_data.challenge_cancel.clone(),
                     network_score,
                     acs_transaction_id: authn_data.acs_trans_id.clone(),
+                    cavv_algorithm,
                 }
             });
 
@@ -1577,6 +1574,8 @@ impl
                         .and_then(|exts| extract_score_id(&exts))
                 });
 
+                let cavv_algorithm = Some("2".to_string());
+
                 CybersourceConsumerAuthInformation {
                     pares_status,
                     ucaf_collection_indicator,
@@ -1594,10 +1593,11 @@ impl
                     authentication_date,
                     effective_authentication_type,
                     challenge_code: authn_data.challenge_code.clone(),
-                    pares_status_reason: authn_data.challenge_code_reason.clone(),
+                    signed_pares_status_reason: authn_data.challenge_code_reason.clone(),
                     challenge_cancel_code: authn_data.challenge_cancel.clone(),
                     network_score,
                     acs_transaction_id: authn_data.acs_trans_id.clone(),
+                    cavv_algorithm,
                 }
             });
 
@@ -1702,6 +1702,8 @@ impl
                         .and_then(|exts| extract_score_id(&exts))
                 });
 
+                let cavv_algorithm = Some("2".to_string());
+
                 CybersourceConsumerAuthInformation {
                     pares_status,
                     ucaf_collection_indicator,
@@ -1719,10 +1721,11 @@ impl
                     authentication_date,
                     effective_authentication_type,
                     challenge_code: authn_data.challenge_code.clone(),
-                    pares_status_reason: authn_data.challenge_code_reason.clone(),
+                    signed_pares_status_reason: authn_data.challenge_code_reason.clone(),
                     challenge_cancel_code: authn_data.challenge_cancel.clone(),
                     network_score,
                     acs_transaction_id: authn_data.acs_trans_id.clone(),
+                    cavv_algorithm,
                 }
             });
 
@@ -1907,10 +1910,11 @@ impl
             authentication_date: None,
             effective_authentication_type: None,
             challenge_code: None,
-            pares_status_reason: None,
+            signed_pares_status_reason: None,
             challenge_cancel_code: None,
             network_score: None,
             acs_transaction_id: None,
+            cavv_algorithm: None,
         });
 
         let merchant_defined_information = item
@@ -2014,10 +2018,11 @@ impl
                 authentication_date: None,
                 effective_authentication_type: None,
                 challenge_code: None,
-                pares_status_reason: None,
+                signed_pares_status_reason: None,
                 challenge_cancel_code: None,
                 network_score: None,
                 acs_transaction_id: None,
+                cavv_algorithm: None,
             }),
             merchant_defined_information,
         })
@@ -2166,10 +2171,11 @@ impl
                 authentication_date: None,
                 effective_authentication_type: None,
                 challenge_code: None,
-                pares_status_reason: None,
+                signed_pares_status_reason: None,
                 challenge_cancel_code: None,
                 network_score: None,
                 acs_transaction_id: None,
+                cavv_algorithm: None,
             }),
             merchant_defined_information,
         })
@@ -2384,10 +2390,11 @@ impl TryFrom<&CybersourceRouterData<&PaymentsAuthorizeRouterData>> for Cybersour
                                                 authentication_date: None,
                                                 effective_authentication_type: None,
                                                 challenge_code: None,
-                                                pares_status_reason: None,
+                                                signed_pares_status_reason: None,
                                                 challenge_cancel_code: None,
                                                 network_score: None,
                                                 acs_transaction_id: None,
+                                                cavv_algorithm: None,
                                             },
                                         ),
                                     })
@@ -2658,7 +2665,6 @@ impl TryFrom<&CybersourceRouterData<&PaymentsCaptureRouterData>>
         )
         .then_some(true);
 
-        let cavv_algorithm = Some("2".to_string());
         Ok(Self {
             processing_information: ProcessingInformation {
                 capture_options: Some(CaptureOptions {
@@ -2672,7 +2678,6 @@ impl TryFrom<&CybersourceRouterData<&PaymentsCaptureRouterData>>
                 capture: None,
                 commerce_indicator: String::from("internet"),
                 payment_solution: None,
-                cavv_algorithm,
             },
             order_information: OrderInformationWithBill {
                 amount_details: Amount {
@@ -2698,7 +2703,6 @@ impl TryFrom<&CybersourceRouterData<&PaymentsIncrementalAuthorizationRouterData>
     ) -> Result<Self, Self::Error> {
         let connector_merchant_config =
             CybersourceConnectorMetadataObject::try_from(&item.router_data.connector_meta_data)?;
-        let cavv_algorithm = Some("2".to_string());
 
         Ok(Self {
             processing_information: ProcessingInformation {
@@ -2722,7 +2726,6 @@ impl TryFrom<&CybersourceRouterData<&PaymentsIncrementalAuthorizationRouterData>
                 capture: None,
                 capture_options: None,
                 payment_solution: None,
-                cavv_algorithm,
             },
             order_information: OrderInformationIncrementalAuthorization {
                 amount_details: AdditionalAmount {

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
Fix consumer authenttication information fields
1. Renamed _consumer_authentication_information.pares_status_reason_ field to _consumer_authentication_information.signed_pares_status_reason_
2. Moved _cavv_algorithm_ from _processing_information_ to _consumer_authentication_information_


Verified with cybersouce api spec
<img width="531" height="634" alt="Screenshot 2025-08-12 at 5 24 33 PM" src="https://github.com/user-attachments/assets/4e8a1c93-1827-4991-b750-6449f52398fe" />
<img width="416" height="487" alt="Screenshot 2025-08-12 at 5 24 58 PM" src="https://github.com/user-attachments/assets/e80e3233-26ba-49f7-90af-4e2bce65456c" />

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!--
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
3. `crates/router/src/configs`
4. `loadtest/config`
-->


## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Steps:
1. Do a 3ds payment via cybersource and netcetera
2. Check cybersource request fields for signed_pares_status_reason, cavv_algorithm
<img width="1496" height="359" alt="Screenshot 2025-08-12 at 5 22 54 PM" src="https://github.com/user-attachments/assets/82bcb9fc-4a0f-4dcf-a45b-fb7f6c4530c9" />


## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
