Issue:
[REFCTOR]: Move CustomerAcceptance type to `common_types`

`CustomerAcceptance` is currently defined separately in `api_models` and `hyperswitch_domain_models`. These types are exactly the same, so they can be moved to `common_types`.


Additionally, in V2, we can use this strict type in `diesel_models` as well, instead of having a `SecretSerdeValue`

Resolution:
<think>
PR Context:
- Title: refactor: Move CustomerAcceptance to common_types
- Merged: 2025-06-25T06:30:07Z
- Files changed: 30 files
- Commits: 11 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
- Moved `CustomerAcceptance`, `AcceptanceType`, `OnlineMandate` to `common_types`
- Removed unnecessary conversions from the code
- Changed `payment_attempt` domain model and diesel model in v2 to use strict type

### Additional Changes

</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** refactor: Move CustomerAcceptance to common_types (#8299)
Co-authored-by: hyperswitch-bot[bot] <1485
Files to modify:


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

**crates/api_models/src/payments.rs**
  Remove:
    - struct: pub::CustomerAcceptance
    - struct: pub::OnlineMandate
    - enum: pub::AcceptanceType

**crates/common_types/src/payments.rs**
  Add:
    - function: pub::get_ip_address
    - function: pub::get_user_agent
    - function: pub::get_accepted_at
    - struct: pub::CustomerAcceptance
    - struct: pub::OnlineMandate
    - enum: pub::AcceptanceType
    - impl: impl CustomerAcceptance
    - impl: impl masking::SerializableSecret for CustomerAcceptance

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

**crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/mandates.rs**
  Remove:
    - function: private::from
    - function: private::from
    - function: private::from
    - function: private::from
    - function: private::from
    - function: private::from
    - function: pub::get_ip_address
    - function: pub::get_user_agent
    - function: pub::get_accepted_at
    - struct: pub::CustomerAcceptance
    - struct: pub::OnlineMandate
    - enum: pub::AcceptanceType
    - impl: impl From<ApiCustomerAcceptance> for CustomerAcceptance
    - impl: impl From<CustomerAcceptance> for ApiCustomerAcceptance
    - impl: impl From<ApiAcceptanceType> for AcceptanceType
    - impl: impl From<AcceptanceType> for ApiAcceptanceType
    - impl: impl From<ApiOnlineMandate> for OnlineMandate
    - impl: impl From<OnlineMandate> for ApiOnlineMandate
    - impl: impl CustomerAcceptance

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

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

**crates/openapi/src/openapi.rs**
  Modify existing code

**crates/openapi/src/openapi_v2.rs**
  Modify existing code

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

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

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

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

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

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

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

**crates/router/src/core/payments/operations/payment_complete_authorize.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_update.rs**
  Modify existing code

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

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

**crates/router/src/core/payments/session_operation.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/payments/vault_session.rs**
  Modify existing code

**crates/router/src/services/kafka/payment_attempt.rs**
  Modify existing code

**crates/router/src/services/kafka/payment_attempt_event.rs**
  Modify existing code

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

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