content: {-# OPTIONS_GHC -Wwarn=unused-imports #-}
  
  module Domain.Action.RiderPlatform.Management.Media (getMediaFile) where
  
  import qualified API.Client.RiderPlatform.Management
  import qualified API.Types.RiderPlatform.Management.Media
  import qualified Data.Text
  import qualified "lib-dashboard" Domain.Types.Merchant
  import qualified "lib-dashboard" Environment
  import EulerHS.Prelude
  import qualified Kernel.Types.Beckn.Context
  import qualified Kernel.Types.Id
  import Kernel.Utils.Common
  import Storage.Beam.CommonInstances ()
  import Tools.Auth.Api
  import Tools.Auth.Merchant
  
  getMediaFile :: (Kernel.Types.Id.ShortId Domain.Types.Merchant.Merchant -> Kernel.Types.Beckn.Context.City -> ApiTokenInfo -> Data.Text.Text -> Environment.Flow API.Types.RiderPlatform.Management.Media.GetMediaFileResponse)
  getMediaFile merchantShortId opCity apiTokenInfo filePath = do
    checkedMerchantId <- merchantCityAccessCheck merchantShortId apiTokenInfo.merchant.shortId opCity apiTokenInfo.city
    API.Client.RiderPlatform.Management.callManagementAPI checkedMerchantId opCity (.mediaDSL.getMediaFile) filePath
  