<!-- Describe your changes in detail -->
removed the payment_methods_v2 and customer_v2 feature flag from router, payment method, domain model, diesel model, api model and storage impl crate.
To implement this **search_filter** feature, you'll need to modify these architectural layers:


**1. API Request/Response Models**
   - `crates/api_models/Cargo.toml`
   - `crates/api_models/src/customers.rs`
   - `crates/api_models/src/events.rs`
   - ... and 5 more files

**2. Database Layer (Queries & Schema)**
   - `crates/diesel_models/Cargo.toml`
   - `crates/diesel_models/src/customers.rs`
   - `crates/diesel_models/src/kv.rs`
   - ... and 4 more files

**3. Domain Models (Business Logic Types)**
   - `crates/hyperswitch_domain_models/Cargo.toml`
   - `crates/hyperswitch_domain_models/src/customer.rs`
   - `crates/hyperswitch_domain_models/src/mandates.rs`
   - ... and 4 more files

**4. Core Business Logic**
   - `crates/payment_methods/src/core/migration.rs`
   - `crates/payment_methods/src/core/migration/payment_methods.rs`
   - `crates/router/src/core.rs`
   - ... and 36 more files

**5. External Connector Integration**
   - `crates/router/src/connector/utils.rs`

**6. Type Definitions**
   - `crates/router/src/compatibility/stripe/customers/types.rs`
   - `crates/router/src/types/api.rs`
   - `crates/router/src/types/api/customers.rs`
   - ... and 7 more files

**7. Utils**
   - `crates/common_utils/Cargo.toml`
   - `crates/common_utils/src/events.rs`
   - `crates/common_utils/src/id_type/customer.rs`
   - ... and 2 more files

**8. Configuration Files**
   - `crates/openapi/Cargo.toml`
   - `crates/payment_methods/Cargo.toml`
   - `crates/router/Cargo.toml`
   - ... and 1 more files

**9. Other**
   - `crates/payment_methods/src/controller.rs`
   - `crates/payment_methods/src/state.rs`
   - `crates/router/src/compatibility/stripe.rs`
   - ... and 22 more files

**Code Patterns Applied:**

**Detailed Identifier Changes:**


Commit 000aa23c:
Files to modify:


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

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

**crates/api_models/src/events/customer.rs**
  Modify existing code

**crates/api_models/src/events/payment.rs**
  Modify existing code

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

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

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

**crates/common_utils/src/events.rs**
  Modify existing code

**crates/common_utils/src/id_type/customer.rs**
  Modify existing code

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

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

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

**crates/diesel_models/src/query/customers.rs**
  Modify existing code

**crates/diesel_models/src/query/mandate.rs**
  Modify existing code

**crates/diesel_models/src/query/payment_method.rs**
  Modify existing code

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

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

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

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

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

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

**crates/payment_methods/src/controller.rs**
  Modify existing code

**crates/payment_methods/src/core/migration.rs**
  Modify existing code

**crates/payment_methods/src/core/migration/payment_methods.rs**
  Modify existing code

**crates/payment_methods/src/helpers.rs**
  Modify existing code

**crates/payment_methods/src/state.rs**
  Modify existing code

**crates/router/src/compatibility/stripe.rs**
  Modify existing code

**crates/router/src/compatibility/stripe/app.rs**
  Modify existing code

**crates/router/src/compatibility/stripe/customers.rs**
  Modify existing code

**crates/router/src/compatibility/stripe/customers/types.rs**
  Modify existing code

**crates/router/src/compatibility/stripe/payment_intents.rs**
  Modify existing code

**crates/router/src/compatibility/stripe/setup_intents.rs**
  Modify existing code

**crates/router/src/connector/utils.rs**
  Modify existing code

**crates/router/src/consts.rs**
  Modify existing code

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

**crates/router/src/core/customers.rs**
  Modify existing code

**crates/router/src/core/errors/utils.rs**
  Modify existing code

**crates/router/src/core/fraud_check/flows/checkout_flow.rs**
  Modify existing code

**crates/router/src/core/fraud_check/flows/record_return.rs**
  Modify existing code

**crates/router/src/core/fraud_check/flows/sale_flow.rs**
  Modify existing code

**crates/router/src/core/fraud_check/flows/transaction_flow.rs**
  Modify existing code

**crates/router/src/core/fraud_check/operation/fraud_check_pre.rs**
  Modify existing code

**crates/router/src/core/locker_migration.rs**
  Modify existing code

**crates/router/src/core/mandate.rs**
  Modify existing code

**crates/router/src/core/payment_methods.rs**
  Modify existing code

**crates/router/src/core/payment_methods/cards.rs**
  Modify existing code

**crates/router/src/core/payment_methods/network_tokenization.rs**
  Modify existing code

**crates/router/src/core/payment_methods/surcharge_decision_configs.rs**
  Modify existing code

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

**crates/router/src/core/payment_methods/utils.rs**
  Modify existing code

**crates/router/src/core/payment_methods/validator.rs**
  Modify existing code

**crates/router/src/core/payment_methods/vault.rs**
  Modify existing code

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

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

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

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

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

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

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

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

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

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

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

**crates/router/src/core/payout_link.rs**
  Modify existing code

**crates/router/src/core/payouts.rs**
  Modify existing code

**crates/router/src/core/payouts/helpers.rs**
  Modify existing code

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

**crates/router/src/core/payouts/validator.rs**
  Modify existing code

**crates/router/src/core/pm_auth.rs**
  Modify existing code

**crates/router/src/core/unified_authentication_service.rs**
  Modify existing code

**crates/router/src/core/utils.rs**
  Modify existing code

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

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

**crates/router/src/lib.rs**
  Modify existing code

**crates/router/src/routes.rs**
  Modify existing code

**crates/router/src/routes/app.rs**
  Modify existing code

**crates/router/src/routes/cards_info.rs**
  Modify existing code

**crates/router/src/routes/customers.rs**
  Modify existing code

**crates/router/src/routes/ephemeral_key.rs**
  Modify existing code

**crates/router/src/routes/payment_methods.rs**
  Modify existing code

**crates/router/src/routes/payments.rs**
  Modify existing code

**crates/router/src/services/authentication.rs**
  Modify existing code

**crates/router/src/types/api.rs**
  Modify existing code

**crates/router/src/types/api/customers.rs**
  Modify existing code

**crates/router/src/types/api/mandates.rs**
  Modify existing code

**crates/router/src/types/api/payment_methods.rs**
  Modify existing code

**crates/router/src/types/domain.rs**
  Modify existing code

**crates/router/src/types/payment_methods.rs**
  Modify existing code

**crates/router/src/types/storage/customers.rs**
  Modify existing code

**crates/router/src/types/storage/payment_method.rs**
  Modify existing code

**crates/router/src/types/transformers.rs**
  Modify existing code

**crates/router/src/utils.rs**
  Modify existing code

**crates/router/src/workflows/payment_method_status_update.rs**
  Modify existing code

**crates/storage_impl/src/customers.rs**
  Modify existing code

**crates/storage_impl/src/lib.rs**
  Modify existing code

**crates/storage_impl/src/payment_method.rs**
  Modify existing code

**crates/storage_impl/src/payouts/payouts.rs**
  Modify existing code

**crates/storage_impl/src/redis/kv_store.rs**
  Modify existing code
{"pr_number": 8236, "pr_title": "refactor(router): Remove `payment_methods_v2` and `customer_v2` feature flag", "merged_at": "2025-06-11T19:09:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/Cargo.toml", "crates/api_models/src/customers.rs", "crates/api_models/src/events.rs", "crates/api_models/src/events/customer.rs", "crates/api_models/src/events/payment.rs", "crates/api_models/src/lib.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/Cargo.toml", "crates/diesel_models/src/customers.rs", "crates/diesel_models/src/kv.rs", "crates/diesel_models/src/payment_method.rs", "crates/diesel_models/src/query/customers.rs", "crates/diesel_models/src/query/mandate.rs", "crates/diesel_models/src/query/payment_method.rs"], "domain": ["crates/hyperswitch_domain_models/Cargo.toml", "crates/hyperswitch_domain_models/src/customer.rs", "crates/hyperswitch_domain_models/src/mandates.rs", "crates/hyperswitch_domain_models/src/network_tokenization.rs", "crates/hyperswitch_domain_models/src/payment_method_data.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/vault.rs"], "core_business": ["crates/payment_methods/src/core/migration.rs", "crates/payment_methods/src/core/migration/payment_methods.rs", "crates/router/src/core.rs", "crates/router/src/core/customers.rs", "crates/router/src/core/errors/utils.rs", "crates/router/src/core/fraud_check/flows/checkout_flow.rs", "crates/router/src/core/fraud_check/flows/record_return.rs", "crates/router/src/core/fraud_check/flows/sale_flow.rs", "crates/router/src/core/fraud_check/flows/transaction_flow.rs", "crates/router/src/core/fraud_check/operation/fraud_check_pre.rs", "crates/router/src/core/locker_migration.rs", "crates/router/src/core/mandate.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/network_tokenization.rs", "crates/router/src/core/payment_methods/surcharge_decision_configs.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payment_methods/utils.rs", "crates/router/src/core/payment_methods/validator.rs", "crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/customers.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/payment_methods.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payout_link.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/payouts/helpers.rs", "crates/router/src/core/payouts/transformers.rs", "crates/router/src/core/payouts/validator.rs", "crates/router/src/core/pm_auth.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/utils.rs"], "connectors": ["crates/router/src/connector/utils.rs"], "types": ["crates/router/src/compatibility/stripe/customers/types.rs", "crates/router/src/types/api.rs", "crates/router/src/types/api/customers.rs", "crates/router/src/types/api/mandates.rs", "crates/router/src/types/api/payment_methods.rs", "crates/router/src/types/domain.rs", "crates/router/src/types/payment_methods.rs", "crates/router/src/types/storage/customers.rs", "crates/router/src/types/storage/payment_method.rs", "crates/router/src/types/transformers.rs"], "utils": ["crates/common_utils/Cargo.toml", "crates/common_utils/src/events.rs", "crates/common_utils/src/id_type/customer.rs", "crates/payment_methods/src/helpers.rs", "crates/router/src/utils.rs"], "config": ["crates/openapi/Cargo.toml", "crates/payment_methods/Cargo.toml", "crates/router/Cargo.toml", "crates/storage_impl/Cargo.toml"], "other": ["crates/payment_methods/src/controller.rs", "crates/payment_methods/src/state.rs", "crates/router/src/compatibility/stripe.rs", "crates/router/src/compatibility/stripe/app.rs", "crates/router/src/compatibility/stripe/customers.rs", "crates/router/src/compatibility/stripe/payment_intents.rs", "crates/router/src/compatibility/stripe/setup_intents.rs", "crates/router/src/consts.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/db/mandate.rs", "crates/router/src/lib.rs", "crates/router/src/routes.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/cards_info.rs", "crates/router/src/routes/customers.rs", "crates/router/src/routes/ephemeral_key.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/routes/payments.rs", "crates/router/src/services/authentication.rs", "crates/router/src/workflows/payment_method_status_update.rs", "crates/storage_impl/src/customers.rs", "crates/storage_impl/src/lib.rs", "crates/storage_impl/src/payment_method.rs", "crates/storage_impl/src/payouts/payouts.rs", "crates/storage_impl/src/redis/kv_store.rs"]}, "change_types": {"imports_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}