/// <summary> /// Returns an instance of the Core Banking System integration object with the specified <see cref="System.Guid"/> /// </summary> /// <param name="issuerId"> /// The issuer id used to to do a lookup for the which integration layer to use. /// </param> /// <returns></returns> public void CoreBankingSystem(int productId, InterfaceArea interfaceArea, out External.ExternalSystemFields externalFields, out Config.IConfig config) { config = _configDAL.GetProductInterfaceConfig(productId, (int)InterfaceTypes.CORE_BANKING_SYSTEM, (int)interfaceArea, null, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); if (config == null) { throw new Exception(String.Format(PRODUCT_MISSING_INTERFACE, InterfaceTypes.CORE_BANKING_SYSTEM)); } //string guid = issuerInterfaces.First().interface_guid; //Guid guidOut = ValidateGuidArgument(guid); externalFields = _externalSystemDal.GetExternalSystemFields((int)External.ExternalSystemType.CoreBankingSystem, productId, 0, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); // throw new Exception(String.Format(MISSING_INTEGRATION_DLL, interfaceConfig.InterfaceGuid)); }
/// <summary> /// Returns an instance of the card management system integration object with the specified <see cref="System.Guid"/> /// </summary> /// <param name="guid"> /// The <see cref="System.Guid"/> of the integration layer, this may not be an empty string or <see langword="null"/>. /// </param> /// <returns></returns> public void CardManagementSystem(int productId, InterfaceArea interfaceArea, out External.ExternalSystemFields externalFields, out Config.IConfig config) { config = _configDAL.GetProductInterfaceConfig(productId, (int)InterfaceTypes.CARD_MANAGEMENT_SYSTEM, (int)interfaceArea, null, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); if (config == null) { throw new Exception(String.Format(PRODUCT_MISSING_INTERFACE, InterfaceTypes.CARD_MANAGEMENT_SYSTEM)); } externalFields = _externalSystemDal.GetExternalSystemFields((int)External.ExternalSystemType.CardManagementSystem, productId, 0, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); //var cmsInterface = iCardManagementSystems.Where(w => Guid.Parse(w.Metadata.IntegrationGUID) == interfaceConfig.InterfaceGuid).SingleOrDefault(); //if (cmsInterface != null && cmsInterface.Value != null) //{ // externalFields = _externalSystemDal.GetExternalSystemFields((int)External.ExternalSystemType.CardManagementSystem, // productId, 0, SystemConfiguration.SYSTEM_USER_ID, // SystemConfiguration.SYSTEM_WORKSTATION); // cmsInterface.Value.SQLConnectionString = DatabaseConnectionObject.Instance.SQLConnectionString; // config = interfaceConfig; // return cmsInterface.Value; //} //throw new Exception(String.Format(MISSING_INTEGRATION_DLL, interfaceConfig.InterfaceGuid)); }
public void FundsLoadPrepaidSystem(int productId, out External.ExternalSystemFields externalFields, out Config.IConfig config) { config = _configDAL.GetProductInterfaceConfig(productId, (int)InterfaceTypes.PREPAID_FUNDS_LOAD, (int)InterfaceArea.ISSUING, null, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); if (config == null) { throw new Exception(String.Format(PRODUCT_MISSING_INTERFACE, InterfaceTypes.PREPAID_FUNDS_LOAD)); } }
public void FeeSchemeInterface(int productId, InterfaceArea interfaceArea, out External.ExternalSystemFields externalFields, out Config.IConfig config) { config = _configDAL.GetProductInterfaceConfig(productId, (int)InterfaceTypes.FEE_SCHEME, (int)interfaceArea, null, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); if (config == null) { log.Debug("Fee Scheme is not Configured."); } externalFields = _externalSystemDal.GetExternalSystemFields((int)External.ExternalSystemType.CoreBankingSystem, productId, 0, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); }
/// <summary> /// Returns an instance of the card production system integration object with the specified <see cref="System.Guid"/> /// </summary> /// <param name="guid"> /// The <see cref="System.Guid"/> of the integration layer, this may not be an empty string or <see langword="null"/>. /// </param> /// <returns></returns> public ICardProductionSystem CardProductionSystem(int productId, InterfaceArea interfaceArea, out External.ExternalSystemFields externalFields, out Config.IConfig config) { var interfaceConfig = _configDAL.GetProductInterfaceConfig(productId, (int)InterfaceTypes.CARD_PRODUCTION, (int)interfaceArea, null, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); if (interfaceConfig == null) { throw new Exception(String.Format(PRODUCT_MISSING_INTERFACE, InterfaceTypes.CARD_PRODUCTION)); } var cpsInterface = iCardProductionSystems.Where(w => Guid.Parse(w.Metadata.IntegrationGUID) == interfaceConfig.InterfaceGuid).SingleOrDefault(); if (cpsInterface != null && cpsInterface.Value != null) { externalFields = _externalSystemDal.GetExternalSystemFields((int)External.ExternalSystemType.CardProductionSystem, productId, 0, SystemConfiguration.SYSTEM_USER_ID, SystemConfiguration.SYSTEM_WORKSTATION); cpsInterface.Value.DataSource = new LocalDataSource(); // = DatabaseConnectionObject.Instance.SQLConnectionString; config = interfaceConfig; return(cpsInterface.Value); } throw new Exception(String.Format(MISSING_INTEGRATION_DLL, interfaceConfig.InterfaceGuid)); }