Bug: [BUG] Fix status mapping for Plaid



### Feature Description

The current status mapping for Plaid is incorrect. 
We need to fix the few of the status in the status mapping from Plaid status to Attempt status

### Possible Implementation

Will fix accordingly

### Have you spent some time checking if this feature request 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/router/src/connector/plaid/transformers.rs b/crates/router/src/connector/plaid/transformers.rs
index 545ea271c43..cf9c91afd0c 100644
--- a/crates/router/src/connector/plaid/transformers.rs
+++ b/crates/router/src/connector/plaid/transformers.rs
@@ -233,16 +233,16 @@ impl From<PlaidPaymentStatus> for enums::AttemptStatus {
     fn from(item: PlaidPaymentStatus) -> Self {
         match item {
             PlaidPaymentStatus::PaymentStatusAuthorising => Self::Authorizing,
-            PlaidPaymentStatus::PaymentStatusBlocked => Self::AuthorizationFailed,
+            PlaidPaymentStatus::PaymentStatusBlocked
+            | PlaidPaymentStatus::PaymentStatusInsufficientFunds
+            | PlaidPaymentStatus::PaymentStatusRejected => Self::AuthorizationFailed,
             PlaidPaymentStatus::PaymentStatusCancelled => Self::Voided,
             PlaidPaymentStatus::PaymentStatusEstablished => Self::Authorized,
-            PlaidPaymentStatus::PaymentStatusExecuted => Self::Authorized,
+            PlaidPaymentStatus::PaymentStatusExecuted
+            | PlaidPaymentStatus::PaymentStatusSettled
+            | PlaidPaymentStatus::PaymentStatusInitiated => Self::Charged,
             PlaidPaymentStatus::PaymentStatusFailed => Self::Failure,
-            PlaidPaymentStatus::PaymentStatusInitiated => Self::AuthenticationPending,
             PlaidPaymentStatus::PaymentStatusInputNeeded => Self::AuthenticationPending,
-            PlaidPaymentStatus::PaymentStatusInsufficientFunds => Self::AuthorizationFailed,
-            PlaidPaymentStatus::PaymentStatusRejected => Self::AuthorizationFailed,
-            PlaidPaymentStatus::PaymentStatusSettled => Self::Charged,
         }
     }
 }

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

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

## Description
<!-- Describe your changes in detail -->
There was a need to fix the status mapping for Plaid as the previous mapping was incorrect. 

### 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`
2. `crates/router/src/configs`
3. `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)?
-->
Payment sync - 
```
curl --location --request GET 'https://sandbox.hyperswitch.io/payments/pay_IKnoLdEMCFdurH4Ps1Zl?force_sync=true' \
--header 'Accept: application/json' \
--header 'api-key: some key'
```
During payments sync, we used to get `status` as `requires_capture` for Open banking PIS flow, which is wrong 
```
{
    "payment_id": "pay_iwAee7HK6dpcvgROftP2",
    "merchant_id": "merchant_1722345123",
    "status": "requires_capture",
    "amount": 2999,
    "net_amount": 2999,
    "amount_capturable": 2999,
    "amount_received": null,
    "connector": "plaid",
    "client_secret": "pay_iwAee7HK6dpcvgROftP2_secret_6chxX9TLDDz4CGYoLoBG",
    "created": "2024-08-05T07:25:10.346Z",
    "currency": "EUR",
    "customer_id": "hyperswitch_sdk_demo_id",
    "customer": {
        "id": "hyperswitch_sdk_demo_id",
        "name": null,
        "email": "hyperswitch_sdk_demo_id@gmail.com",
        "phone": null,
        "phone_country_code": null
    },
    "description": "Hello this is description",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": null,
    "payment_method_data": null,
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "GB",
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "zip": "94122",
            "state": "California",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "GB",
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "zip": "94122",
            "state": "California",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "order_details": [
        {
            "brand": null,
            "amount": 2999,
            "category": null,
            "quantity": 1,
            "product_id": null,
            "product_name": "Apple iPhone 15",
            "product_type": null,
            "sub_category": null,
            "product_img_link": null,
            "requires_shipping": null
        }
    ],
    "email": "hyperswitch_sdk_demo_id@gmail.com",
    "name": null,
    "phone": null,
    "return_url": "http://localhost:9060/",
    "authentication_type": "three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": null,
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "open_banking_pis",
    "connector_label": null,
    "business_country": null,
    "business_label": null,
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": false,
    "connector_transaction_id": "payment-id-sandbox-da16858f-7096-4162-b6a8-2f3b1a06eb24",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "payment-id-sandbox-da16858f-7096-4162-b6a8-2f3b1a06eb24",
    "payment_link": null,
    "profile_id": "pro_RKQntIzzPm28JaWdlSe6",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_EqOrIDNZEPknqvKnEO7H",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2024-08-05T07:40:10.346Z",
    "fingerprint": null,
    "browser_info": {
        "language": "en-GB",
        "time_zone": -330,
        "ip_address": "103.159.11.202",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
        "color_depth": 24,
        "java_enabled": true,
        "screen_width": 2560,
        "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "screen_height": 1440,
        "java_script_enabled": true
    },
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2024-08-05T07:32:25.029Z",
    "charges": null,
    "frm_metadata": null,
    "merchant_order_reference_id": null
}
```

With this fix the ideal response would have `status` as `succeeded` this - 
```
{
    "payment_id": "pay_iwAee7HK6dpcvgROftP2",
    "merchant_id": "merchant_1722345123",
    "status": "succeeded",
    "amount": 2999,
    "net_amount": 2999,
    "amount_capturable": 2999,
    "amount_received": null,
    "connector": "plaid",
    "client_secret": "pay_iwAee7HK6dpcvgROftP2_secret_6chxX9TLDDz4CGYoLoBG",
    "created": "2024-08-05T07:25:10.346Z",
    "currency": "EUR",
    "customer_id": "hyperswitch_sdk_demo_id",
    "customer": {
        "id": "hyperswitch_sdk_demo_id",
        "name": null,
        "email": "hyperswitch_sdk_demo_id@gmail.com",
        "phone": null,
        "phone_country_code": null
    },
    "description": "Hello this is description",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": null,
    "payment_method_data": null,
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "GB",
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "zip": "94122",
            "state": "California",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "GB",
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "zip": "94122",
            "state": "California",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "order_details": [
        {
            "brand": null,
            "amount": 2999,
            "category": null,
            "quantity": 1,
            "product_id": null,
            "product_name": "Apple iPhone 15",
            "product_type": null,
            "sub_category": null,
            "product_img_link": null,
            "requires_shipping": null
        }
    ],
    "email": "hyperswitch_sdk_demo_id@gmail.com",
    "name": null,
    "phone": null,
    "return_url": "http://localhost:9060/",
    "authentication_type": "three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": null,
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "open_banking_pis",
    "connector_label": null,
    "business_country": null,
    "business_label": null,
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": false,
    "connector_transaction_id": "payment-id-sandbox-da16858f-7096-4162-b6a8-2f3b1a06eb24",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "payment-id-sandbox-da16858f-7096-4162-b6a8-2f3b1a06eb24",
    "payment_link": null,
    "profile_id": "pro_RKQntIzzPm28JaWdlSe6",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_EqOrIDNZEPknqvKnEO7H",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2024-08-05T07:40:10.346Z",
    "fingerprint": null,
    "browser_info": {
        "language": "en-GB",
        "time_zone": -330,
        "ip_address": "103.159.11.202",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
        "color_depth": 24,
        "java_enabled": true,
        "screen_width": 2560,
        "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "screen_height": 1440,
        "java_script_enabled": true
    },
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2024-08-05T07:32:25.029Z",
    "charges": null,
    "frm_metadata": null,
    "merchant_order_reference_id": null
}
```

## 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`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
