mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 16:56:56 +00:00
cleanup
This commit is contained in:
parent
097c88b225
commit
bc12fd846d
@ -26,7 +26,6 @@ class Account extends MongoRecord[Account] with ObjectIdPk[Account]{
|
||||
protected object kind extends StringField(this, 255)
|
||||
protected object bank extends BsonRecordField(this, OBPBank)
|
||||
object otherAccounts extends BsonRecordListField(this, OtherAccount)
|
||||
//object otherAccounts extends MongoJsonObjectListField[Account, OtherAccount](this, OtherAccount)
|
||||
|
||||
def getUnmediatedOtherAccountUrl(user: String, otherAccountHolder: String) : Box[String] = {
|
||||
for{
|
||||
@ -123,20 +122,3 @@ class OtherAccount private() extends BsonRecord[OtherAccount] {
|
||||
}
|
||||
|
||||
object OtherAccount extends OtherAccount with BsonMetaRecord[OtherAccount]
|
||||
|
||||
/*case class OtherAccount(holder: String = "",
|
||||
publicAlias: String = "",
|
||||
privateAlias: String = "",
|
||||
moreInfo: String = "",
|
||||
url: String = "",
|
||||
imageUrl: String = "",
|
||||
openCorporatesUrl: Box[String])
|
||||
//TODO: Probably need a rework here as openCorporatesUrl is marked optional due to existing
|
||||
// OtherAccount objects in the db that don't have it set. Probably all these fields except
|
||||
// holder should be made optional.
|
||||
extends JsonObject[OtherAccount]{
|
||||
def meta = OtherAccount
|
||||
}
|
||||
|
||||
object OtherAccount extends JsonObjectMeta[OtherAccount]
|
||||
*/
|
||||
|
||||
@ -434,27 +434,6 @@ object OBPAccount extends OBPAccount with BsonMetaRecord[OBPAccount]{
|
||||
case object APrivateAlias extends AnAlias
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
class OBPAccount private() extends MongoRecord[OBPAccount] with ObjectIdPk[OBPAccount] {
|
||||
def meta = OBPAccount
|
||||
|
||||
object holder extends net.liftweb.record.field.StringField(this, 255)
|
||||
object number extends net.liftweb.record.field.StringField(this, 255)
|
||||
object kind extends net.liftweb.record.field.StringField(this, 255)
|
||||
object bank extends BsonRecordField(this, OBPBank)
|
||||
|
||||
|
||||
}
|
||||
|
||||
object OBPAccount extends OBPAccount with MongoMetaRecord[OBPAccount]
|
||||
|
||||
*/
|
||||
|
||||
|
||||
///////////
|
||||
|
||||
class OBPBank private() extends BsonRecord[OBPBank]{
|
||||
def meta = OBPBank
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user