Bug: [FEATURE] [BRAINTREE] Pass connector request reference id



### Feature Description

Pass connector request reference id in payment requests to braintree

### Possible Implementation

Pass connector request reference id in orderId field in payment requests.

### 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/hyperswitch_connectors/src/connectors/braintree/transformers.rs b/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
index 80a62072db2..7f008b24f1a 100644
--- a/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
@@ -218,6 +218,7 @@ pub struct RegularTransactionBody {
     channel: String,
     #[serde(skip_serializing_if = "Option::is_none")]
     customer_details: Option<CustomerBody>,
+    order_id: String,
 }
 
 #[derive(Debug, Serialize)]
@@ -228,6 +229,7 @@ pub struct VaultTransactionBody {
     vault_payment_method_after_transacting: TransactionTiming,
     #[serde(skip_serializing_if = "Option::is_none")]
     customer_details: Option<CustomerBody>,
+    order_id: String,
 }
 
 #[derive(Debug, Serialize)]
@@ -268,6 +270,7 @@ impl
                 merchant_account_id: metadata.merchant_account_id,
                 channel: CHANNEL_CODE.to_string(),
                 customer_details: None,
+                order_id: item.router_data.connector_request_reference_id.clone(),
             }),
         );
         Ok(Self {
@@ -875,6 +878,8 @@ pub struct DataResponse {
 pub struct RefundInputData {
     amount: StringMajorUnit,
     merchant_account_id: Secret<String>,
+    #[serde(skip_serializing_if = "Option::is_none")]
+    order_id: Option<String>,
 }
 #[derive(Serialize, Debug, Clone)]
 struct IdFilter {
@@ -928,6 +933,7 @@ impl<F> TryFrom<BraintreeRouterData<&RefundsRouterData<F>>> for BraintreeRefundR
                 refund: RefundInputData {
                     amount: item.amount,
                     merchant_account_id: metadata.merchant_account_id,
+                    order_id: item.router_data.refund_id.clone(),
                 },
             },
         };
@@ -1761,6 +1767,7 @@ impl
                         .get_billing_email()
                         .ok()
                         .map(|email| CustomerBody { email }),
+                    order_id: item.router_data.connector_request_reference_id.clone(),
                 }),
             )
         } else {
@@ -1778,6 +1785,7 @@ impl
                         .get_billing_email()
                         .ok()
                         .map(|email| CustomerBody { email }),
+                    order_id: item.router_data.connector_request_reference_id.clone(),
                 }),
             )
         };
@@ -1870,6 +1878,7 @@ impl TryFrom<&BraintreeRouterData<&types::PaymentsCompleteAuthorizeRouterData>>
                         .get_billing_email()
                         .ok()
                         .map(|email| CustomerBody { email }),
+                    order_id: item.router_data.connector_request_reference_id.clone(),
                 }),
             )
         } else {
@@ -1887,6 +1896,7 @@ impl TryFrom<&BraintreeRouterData<&types::PaymentsCompleteAuthorizeRouterData>>
                         .get_billing_email()
                         .ok()
                         .map(|email| CustomerBody { email }),
+                    order_id: item.router_data.connector_request_reference_id.clone(),
                 }),
             )
         };

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

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

## Description
<!-- Describe your changes in detail -->
Pass connector request reference id in payment requests to braintree

### 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).
-->
https://github.com/juspay/hyperswitch/issues/7608

## 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)?
-->
Order ID on braintree dashboard should contain Hyperswitch connector request reference ID for all the transactions:
<img width="1618" alt="image" src="https://github.com/user-attachments/assets/63dbd338-ce24-4e45-91bf-99905de22775" />
Request:
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_q0iUEbBtK5AYpgqOXSEq5bha8S9xpSZeZ7HeRzRDZSIVLREPxMnRGOBxEB6mcbjU' \
--data-raw '{
    "amount": 100,
    "currency": "EUR",
    "confirm": true,
    "customer_id": "deepanshu",
    "email": "deepanshubansal515@gmail.com",
    "description": "Its my first payment request",
    "authentication_type": "three_ds",
    "return_url": "https://duck.com",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "5200000000001096",
            "card_exp_month": "10",
            "card_exp_year": "25",
            "card_holder_name": "Deepanshu Bansal",
            "card_cvc": "123"
        }
    },
    "setup_future_usage": "off_session",
    "customer_acceptance": {
        "acceptance_type": "offline"
    },
    "billing": {
        "email": "guest@example.com"
    }
}'
```

Response:
```
{
    "payment_id": "pay_qj6nnKBVA02m4m16Bf0p",
    "merchant_id": "postman_merchant_GHAction_8dc59add-138a-4366-b2f4-e7fd9a76682e",
    "status": "requires_customer_action",
    "amount": 100,
    "net_amount": 100,
    "shipping_cost": null,
    "amount_capturable": 100,
    "amount_received": null,
    "connector": "braintree",
    "client_secret": "pay_qj6nnKBVA02m4m16Bf0p_secret_vp3Dm540FBjEy5oODEu0",
    "created": "2025-03-24T12:18:19.821Z",
    "currency": "EUR",
    "customer_id": "deepanshu",
    "customer": {
        "id": "deepanshu",
        "name": null,
        "email": "deepanshubansal515@gmail.com",
        "phone": null,
        "phone_country_code": null
    },
    "description": "Its my first payment request",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": "off_session",
    "off_session": null,
    "capture_on": null,
    "capture_method": null,
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "1096",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "520000",
            "card_extended_bin": null,
            "card_exp_month": "10",
            "card_exp_year": "25",
            "card_holder_name": "Deepanshu Bansal",
            "payment_checks": null,
            "authentication_data": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": null,
        "phone": null,
        "email": "guest@example.com"
    },
    "order_details": null,
    "email": "deepanshubansal515@gmail.com",
    "name": null,
    "phone": null,
    "return_url": "https://duck.com/",
    "authentication_type": "three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": {
        "type": "redirect_to_url",
        "redirect_to_url": "http://localhost:8080/payments/redirect/pay_qj6nnKBVA02m4m16Bf0p/postman_merchant_GHAction_8dc59add-138a-4366-b2f4-e7fd9a76682e/pay_qj6nnKBVA02m4m16Bf0p_1"
    },
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "credit",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": {
        "customer_id": "deepanshu",
        "created_at": 1742818699,
        "expires": 1742822299,
        "secret": "epk_ece8705d8e4d40f59864e32e6e61727a"
    },
    "manual_retry_allowed": null,
    "connector_transaction_id": null,
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": null,
    "payment_link": null,
    "profile_id": "pro_7Mi4xtmmjuOFZgzb4rqz",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_fQJW054s61taxmNcIf7d",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-03-24T12:33:19.820Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_method_id": "pm_0j6JND9oAujfW12x9utN",
    "payment_method_status": "inactive",
    "updated": "2025-03-24T12:18:23.369Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "order_tax_amount": null,
    "connector_mandate_id": null,
    "card_discovery": "manual",
    "issuer_error_code": null,
    "issuer_error_message": null
}
```

Refunds Request:
```
curl --location 'http://localhost:8080/refunds' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_q0iUEbBtK5AYpgqOXSEq5bha8S9xpSZeZ7HeRzRDZSIVLREPxMnRGOBxEB6mcbjU' \
--data '{
  "payment_id": "pay_0SDwU6UegcLz7XeOQdPR",
  "amount": 123,
  "reason": "Customer returned product",
  "refund_type": "instant",
  "metadata": {
    "udf1": "value1",
    "new_customer": "true",
    "login_date": "2019-09-10T10:11:12Z"
  }
}'
```

Refunds Response:
```
{
    "refund_id": "ref_cqDKR27PsjuksAuU1feK",
    "payment_id": "pay_0SDwU6UegcLz7XeOQdPR",
    "amount": 123,
    "currency": "EUR",
    "status": "succeeded",
    "reason": "Customer returned product",
    "metadata": {
        "udf1": "value1",
        "new_customer": "true",
        "login_date": "2019-09-10T10:11:12Z"
    },
    "error_message": null,
    "error_code": null,
    "unified_code": null,
    "unified_message": null,
    "created_at": "2025-03-24T12:58:51.627Z",
    "updated_at": "2025-03-24T12:58:53.214Z",
    "connector": "braintree",
    "profile_id": "pro_7Mi4xtmmjuOFZgzb4rqz",
    "merchant_connector_id": "mca_fQJW054s61taxmNcIf7d",
    "split_refunds": null,
    "issuer_error_code": null,
    "issuer_error_message": null
}
```
<img width="1618" alt="image" src="https://github.com/user-attachments/assets/1243347a-14d1-44bb-8f17-2d045affa523" />

## 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
