mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:56:46 +00:00
refactor/use all connector methods for code generator - WIP
This commit is contained in:
parent
803f1e660c
commit
cfddb1dc89
@ -37,9 +37,13 @@ object CommonsCaseClassGenerator extends App {
|
||||
}
|
||||
// private val str: String = ru.typeOf[Bank].decls.map(it => s"${it.name} :${it.typeSignature.typeSymbol.name}").mkString(", \n")
|
||||
private val caseClassStrings: Set[String] = missingReturnModels.map(mkClass)
|
||||
println("#################################Started########################################################################")
|
||||
caseClassStrings.foreach {
|
||||
println
|
||||
}
|
||||
println()
|
||||
|
||||
println("#################################Finished########################################################################")
|
||||
println("Please copy and compair the result to obp-commons/src/main/scala/com/openbankproject/commons/model/CommonModel.scala")
|
||||
|
||||
System.exit(0)
|
||||
}
|
||||
|
||||
@ -273,6 +273,9 @@ object ConnectorBuilderUtil {
|
||||
}
|
||||
}
|
||||
|
||||
//TODO WIP, need to fix the code to support the following methods
|
||||
// val commonMethodNames = Connector.getConnectorInstance("mapped").callableMethods.keySet.toList
|
||||
|
||||
val commonMethodNames = List(
|
||||
"getAdapterInfo",
|
||||
"getChallengeThreshold",
|
||||
|
||||
@ -34,6 +34,7 @@ object InOutCaseClassGenerator extends App {
|
||||
|case class InBound${it.name.toString.capitalize} (inboundAdapterCallContext: InboundAdapterCallContext, status: Status, data: $payload) extends InBoundTrait[$payload]
|
||||
""".stripMargin
|
||||
})
|
||||
println("#################################Started########################################################################")
|
||||
code.foreach(println)
|
||||
|
||||
println("#################################Finished########################################################################")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user