mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(recon): add merchant and profile IDs in auth tokens (#5643)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -5,7 +5,6 @@ use crate::enums;
|
||||
|
||||
#[derive(serde::Deserialize, Debug, serde::Serialize)]
|
||||
pub struct ReconUpdateMerchantRequest {
|
||||
pub merchant_id: common_utils::id_type::MerchantId,
|
||||
pub recon_status: enums::ReconStatus,
|
||||
pub user_email: pii::Email,
|
||||
}
|
||||
|
||||
@ -37,6 +37,7 @@ pub enum Permission {
|
||||
PayoutRead,
|
||||
WebhookEventWrite,
|
||||
GenerateReport,
|
||||
ReconAdmin,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Serialize, PartialEq, Eq, Hash)]
|
||||
@ -50,6 +51,7 @@ pub enum ParentGroup {
|
||||
Merchant,
|
||||
#[serde(rename = "OrganizationAccess")]
|
||||
Organization,
|
||||
Recon,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
@ -67,6 +69,7 @@ pub enum PermissionModule {
|
||||
SurchargeDecisionManager,
|
||||
AccountCreate,
|
||||
Payouts,
|
||||
Recon,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user