Issue:
feat(payments): add support for profile aggregates

Show count of aggregate payments status in the given time range for a particular profile 

Resolution:
<think>
PR Context:
- Title: feat(payments): add support for profile aggregates
- Merged: 2024-09-11T11:31:30Z
- Files changed: 7 files
- Commits: 11 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [X] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
- Add support for profile level aggregates in payments.
- For now it will have list of intent status along with the their count for a given time range.

### Additional Changes

- [X] This PR modifies the API contract
- [ ] This PR modifi
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(payments): add support for profile aggregates (#5845)
Files to modify:


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

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

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

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

**crates/router/src/routes/payments.rs**
  Add:
    - function: pub::get_payments_aggregates_profile

**crates/storage_impl/src/mock_db/payment_intent.rs**
  Modify existing code

**crates/storage_impl/src/payments/payment_intent.rs**
  Modify existing code