mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
refactor/removed accountOwnerExists
This commit is contained in:
parent
c091ab5c83
commit
9add6e6703
@ -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 _)))
|
||||
|
||||
@ -402,7 +402,6 @@ object ConnectorBuilderUtil {
|
||||
"createOrUpdateAtm",
|
||||
"createOrUpdateProduct",
|
||||
"createOrUpdateFXRate",
|
||||
"accountOwnerExists",
|
||||
"getCurrentFxRate",
|
||||
"getTransactionRequestTypeCharges",
|
||||
//"getPhysicalCardsForBankLegacy", // should not generate for Legacy methods
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user