mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
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:
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user