Issue:
fix(router): change the retrieve's payload to query

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates

## Description
Change the deserialisation method from Json to Query in the payments retrieve function
<!-- Describe your changes in detail -->


### Additional Changes

- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!-- Provide links to the files with corresponding changes -->


## Motivation and Context
Based on the requirements for the payments retrieve API to accept parameters instead of fields in the body
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless its an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?
Tested the endpoint by sending proper query parameters & by sending no query params
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->


## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed submitted code
- [ ] I added unit tests for my changes where possible
- [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable


Resolution:
<think>
PR Context:
- Title: feat(themes): Create user APIs for managing themes
- Merged: 2025-07-28T07:46:16Z
- Files changed: 18 files
- Commits: 30 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

This PR adds user APIs to manage themes. Earlier themes was being managed using Admin apis.
These are the following APIs

1. Create Theme
2. Delete Theme
3. Update Theme
4. Upload Asset
5. Find Theme by Theme ID
6. List themes by entity level
7. Get Theme by lineage 

- A
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(themes): Create user APIs for managing themes (#8387)
Co-authored-by: hyperswitch-bot[bot] <148
Files to modify:


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

**crates/api_models/src/user/theme.rs**
  Add:
    - struct: pub::CreateUserThemeRequest
    - struct: pub::EntityTypeQueryParam

**crates/common_enums/src/enums.rs**
  Modify existing code

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

**crates/common_utils/src/types/user/theme.rs**
  Modify existing code

**crates/diesel_models/src/query/user/theme.rs**
  Add:
    - function: private::lineage_hierarchy_filter
    - function: pub::delete_by_theme_id
    - function: pub::find_all_by_lineage_hierarchy

**crates/router/src/core/user/theme.rs**
  Add:
    - function: pub::delete_theme
    - function: pub::create_user_theme
    - function: pub::update_user_theme
    - function: pub::upload_file_to_user_theme_storage
    - function: pub::list_all_themes_in_lineage
    - function: pub::get_user_theme_using_theme_id
    - function: pub::get_user_theme_using_lineage

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

**crates/router/src/db/user/theme.rs**
  Add:
    - function: private::check_theme_belongs_to_lineage_hierarchy
    - function: private::delete_theme_by_theme_id

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

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

**crates/router/src/routes/user/theme.rs**
  Add:
    - function: pub::create_user_theme
    - function: pub::get_user_theme_using_theme_id
    - function: pub::update_user_theme
    - function: pub::delete_user_theme
    - function: pub::upload_file_to_user_theme_storage
    - function: pub::list_all_themes_in_lineage
    - function: pub::get_user_theme_using_lineage

**crates/router/src/services/authorization/info.rs**
  Modify existing code

**crates/router/src/services/authorization/permission_groups.rs**
  Modify existing code

**crates/router/src/services/authorization/permissions.rs**
  Modify existing code

**crates/router/src/services/authorization/roles/predefined_roles.rs**
  Modify existing code

**crates/router/src/utils/user/theme.rs**
  Add:
    - function: pub::get_theme_lineage_from_user_token
    - function: pub::can_user_access_theme

**crates/router_env/src/logger/types.rs**
  Modify existing code