<!-- Describe your changes in detail -->
With this PR, whether extended_authorization is requested or not is stored will be stored in the payment_attempt and this value will be populated to a request_extended_authorization field of payments response.
To implement this **search_filter** feature, you'll need to modify these architectural layers:


**1. API Request/Response Models**
   - `crates/api_models/src/payments.rs`

**2. Database Layer (Queries & Schema)**
   - `crates/diesel_models/src/payment_attempt.rs`

**3. Domain Models (Business Logic Types)**
   - `crates/hyperswitch_domain_models/src/payments.rs`
   - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`

**4. Core Business Logic**
   - `crates/router/src/core/payments/operations/payment_confirm.rs`
   - `crates/router/src/core/payments/transformers.rs`

**5. Tests**
   - `crates/router/tests/payments.rs`
   - `crates/router/tests/payments2.rs`

**6. Other**
   - `api-reference/v1/openapi_spec_v1.json`
   - `crates/router/src/db/events.rs`

**Code Patterns Applied:**
- Extend existing types with new fields (33 changes)
- Add conditional logic for feature flags or filtering (1 changes)

**Detailed Identifier Changes:**


Commit 8e629abc:
Files to modify:


**crates/api_models/src/payments.rs**
  Modify existing code

**crates/diesel_models/src/payment_attempt.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/payments.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_confirm.rs**
  Modify existing code

**crates/router/src/core/payments/transformers.rs**
  Modify existing code

**crates/router/src/db/events.rs**
  Modify existing code

**crates/router/tests/payments.rs**
  Modify existing code

**crates/router/tests/payments2.rs**
  Modify existing code
{"pr_number": 9492, "pr_title": "fix(core): add request_extended_authorization in the payment attempt and populate it in the payment response", "merged_at": "2025-09-26T08:02:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/transformers.rs"], "tests": ["crates/router/tests/payments.rs", "crates/router/tests/payments2.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "crates/router/src/db/events.rs"]}, "change_types": {"fields_added": 33, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}