refactor/removed accountOwnerExists

This commit is contained in:
hongwei 2024-10-22 18:01:46 +02:00
parent c091ab5c83
commit 9add6e6703
4 changed files with 0 additions and 31 deletions

View File

@ -1104,19 +1104,6 @@ trait Connector extends MdcLoggable {
Failure(setUnimplementedError(nameOf(getAllAtms _)))
}
//This method is only existing in mapper
def accountOwnerExists(user: User, bankId: BankId, accountId: AccountId): Box[Boolean]= {
val res =
MapperAccountHolders.findAll(
By(MapperAccountHolders.user, user.asInstanceOf[ResourceUser]),
By(MapperAccountHolders.accountBankPermalink, bankId.value),
By(MapperAccountHolders.accountPermalink, accountId.value)
)
Full(res.nonEmpty)
}
def getCurrentCurrencies(bankId: BankId, callContext: Option[CallContext]): OBPReturnType[Box[List[String]]] = Future{Failure(setUnimplementedError(nameOf(getCurrentCurrencies _)))}
def getCurrentFxRate(bankId: BankId, fromCurrencyCode: String, toCurrencyCode: String): Box[FXRate] = Failure(setUnimplementedError(nameOf(getCurrentFxRate _)))

View File

@ -402,7 +402,6 @@ object ConnectorBuilderUtil {
"createOrUpdateAtm",
"createOrUpdateProduct",
"createOrUpdateFXRate",
"accountOwnerExists",
"getCurrentFxRate",
"getTransactionRequestTypeCharges",
//"getPhysicalCardsForBankLegacy", // should not generate for Legacy methods

View File

@ -5270,18 +5270,6 @@ object LocalMappedConnector extends Connector with MdcLoggable {
}
}
//This method is only existing in mapper
override def accountOwnerExists(user: User, bankId: BankId, accountId: AccountId): Box[Boolean] = {
val res =
MapperAccountHolders.findAll(
By(MapperAccountHolders.user, user.asInstanceOf[ResourceUser]),
By(MapperAccountHolders.accountBankPermalink, bankId.value),
By(MapperAccountHolders.accountPermalink, accountId.value)
)
Full(res.nonEmpty)
}
/**
* get transaction request type charges
*/

View File

@ -1277,11 +1277,6 @@ case class InBoundGetAtmLegacy(status: Status, data: AtmTCommons) extends InBoun
override val inboundAdapterCallContext: InboundAdapterCallContext = InboundAdapterCallContext()
}
case class OutBoundAccountOwnerExists(user: User, bankId: BankId, accountId: AccountId) extends TopicTrait
case class InBoundAccountOwnerExists(status: Status, data: Boolean) extends InBoundTrait[Boolean] {
override val inboundAdapterCallContext: InboundAdapterCallContext = InboundAdapterCallContext()
}
case class OutBoundGetCurrentFxRate(bankId: BankId, fromCurrencyCode: String, toCurrencyCode: String) extends TopicTrait
case class InBoundGetCurrentFxRate(status: Status, data: FXRateCommons) extends InBoundTrait[FXRateCommons] {
override val inboundAdapterCallContext: InboundAdapterCallContext = InboundAdapterCallContext()