feat(routing): Contract based routing integration  (#6761)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify:


**routing.rs**
  Remove:
    - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery
  Add:
    - function: private::get_api_event_type
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper
    - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper
    - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery

**routing.rs**
  Remove:
    - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery
  Add:
    - function: private::get_api_event_type
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper
    - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper
    - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery

**build.rs**
  Modify existing code

**dynamic_routing.rs**
  Remove:
    - mod: pub::elimination_rate_client
  Add:
    - mod: pub::contract_routing_client
    - mod: pub::elimination_based_client

**contract_routing_client.rs**
  Add:
    - function: private::calculate_contract_score
    - function: private::update_contracts
    - function: private::invalidate_contracts
    - function: private::foreign_from
    - function: private::foreign_try_from
    - function: private::foreign_from
    - trait: pub::ContractBasedDynamicRouting
    - impl: impl ContractBasedDynamicRouting for ContractScoreCalculatorClient<Client>
    - impl: impl ForeignFrom<ContractBasedTimeScale> for TimeScale
    - impl: impl ForeignTryFrom<ContractBasedRoutingConfigBody> for CalContractScoreConfig
    - impl: impl ForeignFrom<LabelInformation> for ProtoLabelInfo
    - mod: pub::contract_routing

**elimination_based_client.rs**
  Modify existing code

**openapi.rs**
  Modify existing code

**routing.rs**
  Remove:
    - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery
  Add:
    - function: private::get_api_event_type
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper
    - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper
    - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery

**errors.rs**
  Modify existing code

**metrics.rs**
  Modify existing code

**payments.rs**
  Modify existing code

**payment_response.rs**
  Modify existing code

**routing.rs**
  Remove:
    - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery
  Add:
    - function: private::get_api_event_type
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper
    - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper
    - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery

**routing.rs**
  Remove:
    - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery
  Add:
    - function: private::get_api_event_type
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper
    - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper
    - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery

**helpers.rs**
  Add:
    - function: private::get_cached_dynamic_routing_config_for_profile
    - function: private::refresh_dynamic_routing_cache
    - function: private::get_cached_dynamic_routing_config_for_profile
    - function: private::refresh_dynamic_routing_cache
    - trait: pub::DynamicRoutingCache

**app.rs**
  Modify existing code

**bg_metrics_collector.rs**
  Modify existing code

**routing.rs**
  Remove:
    - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery
  Add:
    - function: private::get_api_event_type
    - function: private::get_api_event_type
    - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper
    - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper
    - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery

**cache.rs**
  Modify existing code

**pub_sub.rs**
  Modify existing code