mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
feat: add create retrieve and update api endpoints for organization resource (#5361)
This commit is contained in:
@ -36,6 +36,7 @@ pub mod user;
|
||||
pub mod user_authentication_method;
|
||||
pub mod user_key_store;
|
||||
pub mod user_role;
|
||||
use common_utils::id_type;
|
||||
use diesel_models::{
|
||||
fraud_check::{FraudCheck, FraudCheckUpdate},
|
||||
organization::{Organization, OrganizationNew, OrganizationUpdate},
|
||||
@ -346,14 +347,14 @@ impl OrganizationInterface for KafkaStore {
|
||||
}
|
||||
async fn find_organization_by_org_id(
|
||||
&self,
|
||||
org_id: &str,
|
||||
org_id: &id_type::OrganizationId,
|
||||
) -> CustomResult<Organization, StorageError> {
|
||||
self.diesel_store.find_organization_by_org_id(org_id).await
|
||||
}
|
||||
|
||||
async fn update_organization_by_org_id(
|
||||
&self,
|
||||
org_id: &str,
|
||||
org_id: &id_type::OrganizationId,
|
||||
update: OrganizationUpdate,
|
||||
) -> CustomResult<Organization, StorageError> {
|
||||
self.diesel_store
|
||||
|
||||
Reference in New Issue
Block a user