fix(router): fix retry_count and add validation for process_tracker (#7614)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local>
Files to modify:


**payments.rs**
  Add:
    - struct: pub::PaymentAttemptRecordResponse

**enums.rs**
  Modify existing code

**lib.rs**
  Modify existing code

**merchant_connector_account.rs**
  Add:
    - function: pub::get_retry_threshold

**payments.rs**
  Add:
    - struct: pub::PaymentAttemptRecordResponse

**payment_attempt.rs**
  Modify existing code

**payment_intent.rs**
  Modify existing code

**revenue_recovery.rs**
  Modify existing code

**router_data.rs**
  Modify existing code

**conversion_impls.rs**
  Modify existing code

**openapi_v2.rs**
  Modify existing code

**errors.rs**
  Modify existing code

**payments.rs**
  Add:
    - struct: pub::PaymentAttemptRecordResponse

**payment_attempt_record.rs**
  Modify existing code

**transformers.rs**
  Add:
    - function: private::generate_response
    - function: private::foreign_from
    - function: private::foreign_from
    - function: private::foreign_from
    - impl: impl GenerateResponse<api_models::payments::PaymentAttemptRecordResponse> for hyperswitch_domain_models::payments::PaymentAttemptRecordData<F>
    - impl: impl ForeignFrom<diesel_models::types::RedirectResponse> for api_models::payments::RedirectResponse
    - impl: impl ForeignFrom<&diesel_models::types::BillingConnectorPaymentDetails> for api_models::payments::BillingConnectorPaymentDetails
    - impl: impl ForeignFrom<&diesel_models::types::FeatureMetadata> for api_models::payments::FeatureMetadata

**revenue_recovery.rs**
  Modify existing code

**types.rs**
  Modify existing code

**recovery_incoming.rs**
  Modify existing code

**revenue_recovery.rs**
  Modify existing code