feat(user): add list org, merchant and profile api (#5662)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Rachit Naithani
2024-08-22 14:34:32 +05:30
committed by GitHub
parent 7f10678c36
commit 98cbf2e71a
9 changed files with 445 additions and 4 deletions

View File

@ -390,3 +390,21 @@ pub struct UserKeyTransferRequest {
pub struct UserTransferKeyResponse {
pub total_transferred: usize,
}
#[derive(Debug, serde::Serialize)]
pub struct ListOrgsForUserResponse {
pub org_id: id_type::OrganizationId,
pub org_name: Option<String>,
}
#[derive(Debug, serde::Serialize)]
pub struct ListMerchantsForUserInOrgResponse {
pub merchant_id: id_type::MerchantId,
pub merchant_name: OptionalEncryptableName,
}
#[derive(Debug, serde::Serialize)]
pub struct ListProfilesForUserInOrgAndMerchantAccountResponse {
pub profile_id: String,
pub profile_name: String,
}