diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/AccountsApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/AccountsApi.scala
index ee01fe1577..7bc13a98fb 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/AccountsApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/AccountsApi.scala
@@ -1,301 +1,185 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_AccountsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getAccountDetail ::
- getTransactionDetail ::
- getTransactions ::
-// listAccounts ::
-// listBalance ::
- listBalancesBulk ::
- listBalancesSpecificAccounts ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getAccountDetail,
- apiVersion,
- nameOf(getAccountDetail),
- "GET",
- "/banking/accounts/ACCOUNT_ID",
- "Get Account Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a single account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val getAccountDetail : OBPEndpoint = {
- case "banking":: "accounts" :: accountId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionDetail,
- apiVersion,
- nameOf(getTransactionDetail),
- "GET",
- "/banking/accounts/ACCOUNT_ID/transactions/TRANSACTION_ID",
- "Get Transaction Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a transaction for a specific account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionDetail : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "transactions" :: transactionId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactions,
- apiVersion,
- nameOf(getTransactions),
- "GET",
- "/banking/accounts/ACCOUNT_ID/transactions",
- "Get Transactions For Account",
- s"""${mockedDataText(true)}
- Obtain transactions for a specific account.
-
-Some general notes that apply to all end points that retrieve transactions:
-
-- Where multiple transactions are returned, transactions should be ordered according to effective date in descending order
-
-- As the date and time for a transaction can alter depending on status and transaction type two separate date/times are included in the payload. There are still some scenarios where neither of these time stamps is available. For the purpose of filtering and ordering it is expected that the data holder will use the "effective" date/time which will be defined as:
-
-- Posted date/time if available, then
-
-- Execution date/time if available, then
-
-- A reasonable date/time nominated by the data holder using internal data structures
-
-- For transaction amounts it should be assumed that a negative value indicates a reduction of the available balance on the account while a positive value indicates an increase in the available balance on the account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "transactions" : [ {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- }, {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactions : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "transactions" : [ {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- }, {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_AccountsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getAccountDetail ::
+// getTransactionDetail ::
+// getTransactions ::
+//// listAccounts ::
+//// listBalance ::
+// listBalancesBulk ::
+// listBalancesSpecificAccounts ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getAccountDetail,
+// apiVersion,
+// nameOf(getAccountDetail),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID",
+// "Get Account Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a single account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getAccountDetail : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionDetail,
+// apiVersion,
+// nameOf(getTransactionDetail),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/transactions/TRANSACTION_ID",
+// "Get Transaction Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a transaction for a specific account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionDetail : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "transactions" :: transactionId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
// resourceDocs += ResourceDoc(
-// listAccounts,
+// getTransactions,
// apiVersion,
-// nameOf(listAccounts),
+// nameOf(getTransactions),
// "GET",
-// "/banking/accounts",
-// "Get Accounts",
+// "/banking/accounts/ACCOUNT_ID/transactions",
+// "Get Transactions For Account",
// s"""${mockedDataText(true)}
-// Obtain a list of accounts
+// Obtain transactions for a specific account.
+//
+//Some general notes that apply to all end points that retrieve transactions:
+//
+//- Where multiple transactions are returned, transactions should be ordered according to effective date in descending order
+//
+//- As the date and time for a transaction can alter depending on status and transaction type two separate date/times are included in the payload. There are still some scenarios where neither of these time stamps is available. For the purpose of filtering and ordering it is expected that the data holder will use the "effective" date/time which will be defined as:
+//
+//- Posted date/time if available, then
+//
+//- Execution date/time if available, then
+//
+//- A reasonable date/time nominated by the data holder using internal data structures
+//
+//- For transaction amounts it should be assumed that a negative value indicates a reduction of the available balance on the account while a positive value indicates an increase in the available balance on the account
//
// """,
// EmptyBody,
// json.parse("""{
// "data" : {
-// "accounts" : [ {
+// "transactions" : [ {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
// "accountId" : "accountId",
-// "maskedNumber" : "maskedNumber",
-// "openStatus" : "OPEN",
-// "displayName" : "displayName",
-// "isOwned" : true,
-// "nickname" : "nickname",
-// "creationDate" : "creationDate",
-// "productName" : "productName",
-// "productCategory" : { }
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
// }, {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
// "accountId" : "accountId",
-// "maskedNumber" : "maskedNumber",
-// "openStatus" : "OPEN",
-// "displayName" : "displayName",
-// "isOwned" : true,
-// "nickname" : "nickname",
-// "creationDate" : "creationDate",
-// "productName" : "productName",
-// "productCategory" : { }
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
// } ]
// },
// "meta" : {
@@ -311,38 +195,55 @@ Some general notes that apply to all end points that retrieve transactions:
// }
//}"""),
// List(AuthenticatedUserIsRequired, UnknownError),
-//
// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
// )
//
-// lazy val listAccounts : OBPEndpoint = {
-// case "banking":: "accounts" :: Nil JsonGet _ => {
+// lazy val getTransactions : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
// cc =>
// for {
-// (Full(u), callContext) <- authorizedAccess(cc, AuthenticatedUserIsRequired)
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
// } yield {
// (json.parse("""{
// "data" : {
-// "accounts" : [ {
+// "transactions" : [ {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
// "accountId" : "accountId",
-// "maskedNumber" : "maskedNumber",
-// "openStatus" : "OPEN",
-// "displayName" : "displayName",
-// "isOwned" : true,
-// "nickname" : "nickname",
-// "creationDate" : "creationDate",
-// "productName" : "productName",
-// "productCategory" : { }
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
// }, {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
// "accountId" : "accountId",
-// "maskedNumber" : "maskedNumber",
-// "openStatus" : "OPEN",
-// "displayName" : "displayName",
-// "isOwned" : true,
-// "nickname" : "nickname",
-// "creationDate" : "creationDate",
-// "productName" : "productName",
-// "productCategory" : { }
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
// } ]
// },
// "meta" : {
@@ -360,310 +261,409 @@ Some general notes that apply to all end points that retrieve transactions:
// }
// }
// }
-
+//
+//// resourceDocs += ResourceDoc(
+//// listAccounts,
+//// apiVersion,
+//// nameOf(listAccounts),
+//// "GET",
+//// "/banking/accounts",
+//// "Get Accounts",
+//// s"""${mockedDataText(true)}
+//// Obtain a list of accounts
+////
+//// """,
+//// EmptyBody,
+//// json.parse("""{
+//// "data" : {
+//// "accounts" : [ {
+//// "accountId" : "accountId",
+//// "maskedNumber" : "maskedNumber",
+//// "openStatus" : "OPEN",
+//// "displayName" : "displayName",
+//// "isOwned" : true,
+//// "nickname" : "nickname",
+//// "creationDate" : "creationDate",
+//// "productName" : "productName",
+//// "productCategory" : { }
+//// }, {
+//// "accountId" : "accountId",
+//// "maskedNumber" : "maskedNumber",
+//// "openStatus" : "OPEN",
+//// "displayName" : "displayName",
+//// "isOwned" : true,
+//// "nickname" : "nickname",
+//// "creationDate" : "creationDate",
+//// "productName" : "productName",
+//// "productCategory" : { }
+//// } ]
+//// },
+//// "meta" : {
+//// "totalRecords" : 0,
+//// "totalPages" : 6
+//// },
+//// "links" : {
+//// "next" : "next",
+//// "last" : "last",
+//// "prev" : "prev",
+//// "self" : "self",
+//// "first" : "first"
+//// }
+////}"""),
+//// List(AuthenticatedUserIsRequired, UnknownError),
+////
+//// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+//// )
+////
+//// lazy val listAccounts : OBPEndpoint = {
+//// case "banking":: "accounts" :: Nil JsonGet _ => {
+//// cc =>
+//// for {
+//// (Full(u), callContext) <- authorizedAccess(cc, AuthenticatedUserIsRequired)
+//// } yield {
+//// (json.parse("""{
+//// "data" : {
+//// "accounts" : [ {
+//// "accountId" : "accountId",
+//// "maskedNumber" : "maskedNumber",
+//// "openStatus" : "OPEN",
+//// "displayName" : "displayName",
+//// "isOwned" : true,
+//// "nickname" : "nickname",
+//// "creationDate" : "creationDate",
+//// "productName" : "productName",
+//// "productCategory" : { }
+//// }, {
+//// "accountId" : "accountId",
+//// "maskedNumber" : "maskedNumber",
+//// "openStatus" : "OPEN",
+//// "displayName" : "displayName",
+//// "isOwned" : true,
+//// "nickname" : "nickname",
+//// "creationDate" : "creationDate",
+//// "productName" : "productName",
+//// "productCategory" : { }
+//// } ]
+//// },
+//// "meta" : {
+//// "totalRecords" : 0,
+//// "totalPages" : 6
+//// },
+//// "links" : {
+//// "next" : "next",
+//// "last" : "last",
+//// "prev" : "prev",
+//// "self" : "self",
+//// "first" : "first"
+//// }
+////}"""), callContext)
+//// }
+//// }
+//// }
+//
+//// resourceDocs += ResourceDoc(
+//// listBalance,
+//// apiVersion,
+//// nameOf(listBalance),
+//// "GET",
+//// "/banking/accounts/ACCOUNT_ID/balance",
+//// "Get Account Balance",
+//// s"""${mockedDataText(true)}
+//// Obtain the balance for a single specified account
+////
+//// """,
+//// EmptyBody,
+//// json.parse("""{
+//// "data" : {
+//// "accountId" : "accountId",
+//// "purses" : [ {
+//// "amount" : "amount",
+//// "currency" : "currency"
+//// }, {
+//// "amount" : "amount",
+//// "currency" : "currency"
+//// } ],
+//// "amortisedLimit" : "amortisedLimit",
+//// "currentBalance" : "currentBalance",
+//// "creditLimit" : "creditLimit",
+//// "currency" : "currency",
+//// "availableBalance" : "availableBalance"
+//// },
+//// "meta" : " ",
+//// "links" : {
+//// "self" : "self"
+//// }
+////}"""),
+//// List(AuthenticatedUserIsRequired, UnknownError),
+////
+//// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+//// )
+////
+//// lazy val listBalance : OBPEndpoint = {
+//// case "banking":: "accounts" :: accountId:: "balance" :: Nil JsonGet _ => {
+//// cc =>
+//// for {
+//// (Full(u), callContext) <- authorizedAccess(cc, AuthenticatedUserIsRequired)
+//// } yield {
+//// (json.parse("""{
+//// "data" : {
+//// "accountId" : "accountId",
+//// "purses" : [ {
+//// "amount" : "amount",
+//// "currency" : "currency"
+//// }, {
+//// "amount" : "amount",
+//// "currency" : "currency"
+//// } ],
+//// "amortisedLimit" : "amortisedLimit",
+//// "currentBalance" : "currentBalance",
+//// "creditLimit" : "creditLimit",
+//// "currency" : "currency",
+//// "availableBalance" : "availableBalance"
+//// },
+//// "meta" : " ",
+//// "links" : {
+//// "self" : "self"
+//// }
+////}"""), callContext)
+//// }
+//// }
+//// }
+//
// resourceDocs += ResourceDoc(
-// listBalance,
+// listBalancesBulk,
// apiVersion,
-// nameOf(listBalance),
+// nameOf(listBalancesBulk),
// "GET",
-// "/banking/accounts/ACCOUNT_ID/balance",
-// "Get Account Balance",
+// "/banking/accounts/balances",
+// "Get Bulk Balances",
// s"""${mockedDataText(true)}
-// Obtain the balance for a single specified account
+// Obtain balances for multiple, filtered accounts
//
// """,
// EmptyBody,
// json.parse("""{
// "data" : {
-// "accountId" : "accountId",
-// "purses" : [ {
-// "amount" : "amount",
-// "currency" : "currency"
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
// }, {
-// "amount" : "amount",
-// "currency" : "currency"
-// } ],
-// "amortisedLimit" : "amortisedLimit",
-// "currentBalance" : "currentBalance",
-// "creditLimit" : "creditLimit",
-// "currency" : "currency",
-// "availableBalance" : "availableBalance"
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
// },
-// "meta" : " ",
// "links" : {
-// "self" : "self"
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
// }
//}"""),
// List(AuthenticatedUserIsRequired, UnknownError),
-//
// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
// )
//
-// lazy val listBalance : OBPEndpoint = {
-// case "banking":: "accounts" :: accountId:: "balance" :: Nil JsonGet _ => {
+// lazy val listBalancesBulk : OBPEndpoint = {
+// case "banking":: "accounts":: "balances" :: Nil JsonGet _ => {
// cc =>
// for {
-// (Full(u), callContext) <- authorizedAccess(cc, AuthenticatedUserIsRequired)
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
// } yield {
// (json.parse("""{
// "data" : {
-// "accountId" : "accountId",
-// "purses" : [ {
-// "amount" : "amount",
-// "currency" : "currency"
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
// }, {
-// "amount" : "amount",
-// "currency" : "currency"
-// } ],
-// "amortisedLimit" : "amortisedLimit",
-// "currentBalance" : "currentBalance",
-// "creditLimit" : "creditLimit",
-// "currency" : "currency",
-// "availableBalance" : "availableBalance"
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
// },
-// "meta" : " ",
// "links" : {
-// "self" : "self"
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
// }
//}"""), callContext)
// }
// }
// }
-
- resourceDocs += ResourceDoc(
- listBalancesBulk,
- apiVersion,
- nameOf(listBalancesBulk),
- "GET",
- "/banking/accounts/balances",
- "Get Bulk Balances",
- s"""${mockedDataText(true)}
- Obtain balances for multiple, filtered accounts
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val listBalancesBulk : OBPEndpoint = {
- case "banking":: "accounts":: "balances" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listBalancesSpecificAccounts,
- apiVersion,
- nameOf(listBalancesSpecificAccounts),
- "POST",
- "/banking/accounts/balances",
- "Get Balances For Specific Accounts",
- s"""${mockedDataText(true)}
- Obtain balances for a specified list of accounts
-
- """,
- json.parse("""{
- "data" : {
- "accountIds" : [ "accountIds", "accountIds" ]
- },
- "meta" : " ",
-}"""),
- json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val listBalancesSpecificAccounts : OBPEndpoint = {
- case "banking":: "accounts":: "balances" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//
+// resourceDocs += ResourceDoc(
+// listBalancesSpecificAccounts,
+// apiVersion,
+// nameOf(listBalancesSpecificAccounts),
+// "POST",
+// "/banking/accounts/balances",
+// "Get Balances For Specific Accounts",
+// s"""${mockedDataText(true)}
+// Obtain balances for a specified list of accounts
+//
+// """,
+// json.parse("""{
+// "data" : {
+// "accountIds" : [ "accountIds", "accountIds" ]
+// },
+// "meta" : " ",
+//}"""),
+// json.parse("""{
+// "data" : {
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// }, {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listBalancesSpecificAccounts : OBPEndpoint = {
+// case "banking":: "accounts":: "balances" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// }, {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ApiCollector.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ApiCollector.scala
index e66cd1ab19..04f771d673 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ApiCollector.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ApiCollector.scala
@@ -1,82 +1,82 @@
-/**
- * Open Bank Project - API
- * Copyright (C) 2011-2019, TESOBE GmbH
- **
- *This program is free software: you can redistribute it and/or modify
- *it under the terms of the GNU Affero General Public License as published by
- *the Free Software Foundation, either version 3 of the License, or
- *(at your option) any later version.
- **
- *This program is distributed in the hope that it will be useful,
- *but WITHOUT ANY WARRANTY; without even the implied warranty of
- *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *GNU Affero General Public License for more details.
- **
- *You should have received a copy of the GNU Affero General Public License
- *along with this program. If not, see .
- **
- *Email: contact@tesobe.com
- *TESOBE GmbH
- *Osloerstrasse 16/17
- *Berlin 13359, Germany
- **
- *This product includes software developed at
- *TESOBE (http://www.tesobe.com/)
- * by
- *Simon Redfern : simon AT tesobe DOT com
- *Stefan Bethge : stefan AT tesobe DOT com
- *Everett Sochowski : everett AT tesobe DOT com
- *Ayoub Benali: ayoub AT tesobe DOT com
- *
- */
-package code.api.AUOpenBanking.v1_0_0
-
-import code.api.OBPRestHelper
-import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
-import code.api.util.ScannedApis
-import code.util.Helper.MdcLoggable
-import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
-
-import scala.collection.mutable.ArrayBuffer
-
-
-
-
-/*
-This file defines which endpoints from all the versions are available in v1
- */
-object ApiCollector extends OBPRestHelper with MdcLoggable with ScannedApis {
- //please modify these three parameter if it is not correct.
- override val apiVersion = ApiVersion.cdsAuV100
- val versionStatus = ApiVersionStatus.DRAFT.toString
-
- private[this] val endpoints =
- APIMethods_AccountsApi.endpoints ++
- APIMethods_BankingApi.endpoints ++
- APIMethods_CommonApi.endpoints ++
- APIMethods_CustomerApi.endpoints ++
- APIMethods_DirectDebitsApi.endpoints ++
- APIMethods_DiscoveryApi.endpoints ++
- APIMethods_PayeesApi.endpoints ++
- APIMethods_ProductsApi.endpoints ++
- APIMethods_ScheduledPaymentsApi.endpoints
-
- override val allResourceDocs: ArrayBuffer[ResourceDoc] =
- APIMethods_AccountsApi.resourceDocs ++
- APIMethods_BankingApi.resourceDocs ++
- APIMethods_CommonApi.resourceDocs ++
- APIMethods_CustomerApi.resourceDocs ++
- APIMethods_DirectDebitsApi.resourceDocs ++
- APIMethods_DiscoveryApi.resourceDocs ++
- APIMethods_PayeesApi.resourceDocs ++
- APIMethods_ProductsApi.resourceDocs ++
- APIMethods_ScheduledPaymentsApi.resourceDocs
-
- // Filter the possible endpoints by the disabled / enabled Props settings and add them together
- override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
-
- // Make them available for use!
- registerRoutes(routes, allResourceDocs, apiPrefix)
-
- logger.info(s"version $version has been run! There are ${routes.length} routes.")
-}
+///**
+// * Open Bank Project - API
+// * Copyright (C) 2011-2019, TESOBE GmbH
+// **
+// *This program is free software: you can redistribute it and/or modify
+// *it under the terms of the GNU Affero General Public License as published by
+// *the Free Software Foundation, either version 3 of the License, or
+// *(at your option) any later version.
+// **
+// *This program is distributed in the hope that it will be useful,
+// *but WITHOUT ANY WARRANTY; without even the implied warranty of
+// *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// *GNU Affero General Public License for more details.
+// **
+// *You should have received a copy of the GNU Affero General Public License
+// *along with this program. If not, see .
+// **
+// *Email: contact@tesobe.com
+// *TESOBE GmbH
+// *Osloerstrasse 16/17
+// *Berlin 13359, Germany
+// **
+// *This product includes software developed at
+// *TESOBE (http://www.tesobe.com/)
+// * by
+// *Simon Redfern : simon AT tesobe DOT com
+// *Stefan Bethge : stefan AT tesobe DOT com
+// *Everett Sochowski : everett AT tesobe DOT com
+// *Ayoub Benali: ayoub AT tesobe DOT com
+// *
+// */
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import code.api.OBPRestHelper
+//import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
+//import code.api.util.ScannedApis
+//import code.util.Helper.MdcLoggable
+//import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
+//
+//import scala.collection.mutable.ArrayBuffer
+//
+//
+//
+//
+///*
+//This file defines which endpoints from all the versions are available in v1
+// */
+//object ApiCollector extends OBPRestHelper with MdcLoggable with ScannedApis {
+// //please modify these three parameter if it is not correct.
+// override val apiVersion = ApiVersion.cdsAuV100
+// val versionStatus = ApiVersionStatus.DRAFT.toString
+//
+// private[this] val endpoints =
+// APIMethods_AccountsApi.endpoints ++
+// APIMethods_BankingApi.endpoints ++
+// APIMethods_CommonApi.endpoints ++
+// APIMethods_CustomerApi.endpoints ++
+// APIMethods_DirectDebitsApi.endpoints ++
+// APIMethods_DiscoveryApi.endpoints ++
+// APIMethods_PayeesApi.endpoints ++
+// APIMethods_ProductsApi.endpoints ++
+// APIMethods_ScheduledPaymentsApi.endpoints
+//
+// override val allResourceDocs: ArrayBuffer[ResourceDoc] =
+// APIMethods_AccountsApi.resourceDocs ++
+// APIMethods_BankingApi.resourceDocs ++
+// APIMethods_CommonApi.resourceDocs ++
+// APIMethods_CustomerApi.resourceDocs ++
+// APIMethods_DirectDebitsApi.resourceDocs ++
+// APIMethods_DiscoveryApi.resourceDocs ++
+// APIMethods_PayeesApi.resourceDocs ++
+// APIMethods_ProductsApi.resourceDocs ++
+// APIMethods_ScheduledPaymentsApi.resourceDocs
+//
+// // Filter the possible endpoints by the disabled / enabled Props settings and add them together
+// override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
+//
+// // Make them available for use!
+// registerRoutes(routes, allResourceDocs, apiPrefix)
+//
+// logger.info(s"version $version has been run! There are ${routes.length} routes.")
+//}
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/BankingApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/BankingApi.scala
index 4473838552..0c191b7d7a 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/BankingApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/BankingApi.scala
@@ -1,3135 +1,3135 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil.{defaultBankId, _}
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import code.api.util.{ApiTag, NewStyle}
-import code.api.util.NewStyle.HttpCode
-import code.views.Views
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.model.{AccountId, BankId}
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.{List, Nil}
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_BankingApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getAccountDetail ::
- getPayeeDetail ::
- getProductDetail ::
- getTransactionDetail ::
- getTransactions ::
- listAccounts ::
- listBalance ::
- listBalancesBulk ::
- listBalancesSpecificAccounts ::
- listDirectDebits ::
- listDirectDebitsBulk ::
- listDirectDebitsSpecificAccounts ::
- listPayees ::
- listProducts ::
- listScheduledPayments ::
- listScheduledPaymentsBulk ::
- listScheduledPaymentsSpecificAccounts ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getAccountDetail,
- apiVersion,
- nameOf(getAccountDetail),
- "GET",
- "/banking/accounts/ACCOUNT_ID",
- "Get Account Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a single account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val getAccountDetail : OBPEndpoint = {
- case "banking":: "accounts" :: accountId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getPayeeDetail,
- apiVersion,
- nameOf(getPayeeDetail),
- "GET",
- "/banking/payees/PAYEE_ID",
- "Get Payee Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a single payee
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
- )
-
- lazy val getPayeeDetail : OBPEndpoint = {
- case "banking":: "payees" :: payeeId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getProductDetail,
- apiVersion,
- nameOf(getProductDetail),
- "GET",
- "/banking/products/PRODUCT_ID",
- "Get Product Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a single product offered openly to the market
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
- )
-
- lazy val getProductDetail : OBPEndpoint = {
- case "banking":: "products" :: productId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionDetail,
- apiVersion,
- nameOf(getTransactionDetail),
- "GET",
- "/banking/accounts/ACCOUNT_ID/transactions/TRANSACTION_ID",
- "Get Transaction Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a transaction for a specific account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionDetail : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "transactions" :: transactionId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactions,
- apiVersion,
- nameOf(getTransactions),
- "GET",
- "/banking/accounts/ACCOUNT_ID/transactions",
- "Get Transactions For Account",
- s"""${mockedDataText(true)}
- Obtain transactions for a specific account.
-
-Some general notes that apply to all end points that retrieve transactions:
-
-- Where multiple transactions are returned, transactions should be ordered according to effective date in descending order
-
-- As the date and time for a transaction can alter depending on status and transaction type two separate date/times are included in the payload. There are still some scenarios where neither of these time stamps is available. For the purpose of filtering and ordering it is expected that the data holder will use the "effective" date/time which will be defined as:
-
-- Posted date/time if available, then
-
-- Execution date/time if available, then
-
-- A reasonable date/time nominated by the data holder using internal data structures
-
-- For transaction amounts it should be assumed that a negative value indicates a reduction of the available balance on the account while a positive value indicates an increase in the available balance on the account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "transactions" : [ {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- }, {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactions : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "transactions" : [ {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- }, {
- "postingDateTime" : "postingDateTime",
- "amount" : "amount",
- "apcaNumber" : "apcaNumber",
- "isDetailAvailable" : true,
- "description" : "description",
- "type" : "FEE",
- "billerName" : "billerName",
- "executionDateTime" : "executionDateTime",
- "transactionId" : "transactionId",
- "merchantName" : "merchantName",
- "billerCode" : "billerCode",
- "reference" : "reference",
- "accountId" : "accountId",
- "merchantCategoryCode" : "merchantCategoryCode",
- "valueDateTime" : "valueDateTime",
- "currency" : "currency",
- "crn" : "crn",
- "status" : "PENDING"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listAccounts,
- apiVersion,
- nameOf(listAccounts),
- "GET",
- "/banking/accounts",
- "Get Accounts",
- s"""${mockedDataText(false)}
- Obtain a list of accounts
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "accounts" : [ {
- "accountId" : "accountId",
- "maskedNumber" : "maskedNumber",
- "openStatus" : "OPEN",
- "displayName" : "displayName",
- "isOwned" : true,
- "nickname" : "nickname",
- "creationDate" : "creationDate",
- "productName" : "productName",
- "productCategory" : { }
- }, {
- "accountId" : "accountId",
- "maskedNumber" : "maskedNumber",
- "openStatus" : "OPEN",
- "displayName" : "displayName",
- "isOwned" : true,
- "nickname" : "nickname",
- "creationDate" : "creationDate",
- "productName" : "productName",
- "productCategory" : { }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: Nil
- )
-
- lazy val listAccounts : OBPEndpoint = {
- case "banking":: "accounts" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- availablePrivateAccounts <- Views.views.vend.getPrivateBankAccountsFuture(u, BankId(defaultBankId))
- (coreAccounts, callContext) <- NewStyle.function.getCoreBankAccountsFuture(availablePrivateAccounts, callContext)
- } yield {
- (JSONFactory_AU_OpenBanking_1_0_0.createListAccountsJson(coreAccounts), HttpCode.`200`(callContext))
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listBalance,
- apiVersion,
- nameOf(listBalance),
- "GET",
- "/banking/accounts/ACCOUNT_ID/balance",
- "Get Account Balance",
- s"""${mockedDataText(false)}
- Obtain the balance for a single specified account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: Nil
- )
-
- lazy val listBalance : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "balance" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- (account, callContext) <- NewStyle.function.checkBankAccountExists(BankId(defaultBankId), AccountId(accountId), callContext)
- } yield {
- (JSONFactory_AU_OpenBanking_1_0_0.createAccountBalanceJson(account), HttpCode.`200`(callContext))
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listBalancesBulk,
- apiVersion,
- nameOf(listBalancesBulk),
- "GET",
- "/banking/accounts/balances",
- "Get Bulk Balances",
- s"""${mockedDataText(true)}
- Obtain balances for multiple, filtered accounts
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val listBalancesBulk : OBPEndpoint = {
- case "banking":: "accounts":: "balances" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listBalancesSpecificAccounts,
- apiVersion,
- nameOf(listBalancesSpecificAccounts),
- "POST",
- "/banking/accounts/balances",
- "Get Balances For Specific Accounts",
- s"""${mockedDataText(true)}
- Obtain balances for a specified list of accounts
-
- """,
- json.parse("""{
- "data" : {
- "accountIds" : [ "accountIds", "accountIds" ]
- },
- "meta" : " ",
-}"""),
- json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val listBalancesSpecificAccounts : OBPEndpoint = {
- case "banking":: "accounts":: "balances" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "balances" : [ {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- }, {
- "accountId" : "accountId",
- "purses" : [ {
- "amount" : "amount",
- "currency" : "currency"
- }, {
- "amount" : "amount",
- "currency" : "currency"
- } ],
- "amortisedLimit" : "amortisedLimit",
- "currentBalance" : "currentBalance",
- "creditLimit" : "creditLimit",
- "currency" : "currency",
- "availableBalance" : "availableBalance"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listDirectDebits,
- apiVersion,
- nameOf(listDirectDebits),
- "GET",
- "/banking/accounts/ACCOUNT_ID/direct-debits",
- "Get Direct Debits For Account",
- s"""${mockedDataText(true)}
- Obtain direct debit authorisations for a specific account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val listDirectDebits : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "direct-debits" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listDirectDebitsBulk,
- apiVersion,
- nameOf(listDirectDebitsBulk),
- "GET",
- "/banking/accounts/direct-debits",
- "Get Bulk Direct Debits",
- s"""${mockedDataText(true)}
- Obtain direct debit authorisations for multiple, filtered accounts
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val listDirectDebitsBulk : OBPEndpoint = {
- case "banking":: "accounts":: "direct-debits" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listDirectDebitsSpecificAccounts,
- apiVersion,
- nameOf(listDirectDebitsSpecificAccounts),
- "POST",
- "/banking/accounts/direct-debits",
- "Get Direct Debits For Specific Accounts",
- s"""${mockedDataText(true)}
- Obtain direct debit authorisations for a specified list of accounts
-
- """,
- json.parse("""{
- "data" : {
- "accountIds" : [ "accountIds", "accountIds" ]
- },
- "meta" : " ",
-}"""),
- json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val listDirectDebitsSpecificAccounts : OBPEndpoint = {
- case "banking":: "accounts":: "direct-debits" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listPayees,
- apiVersion,
- nameOf(listPayees),
- "GET",
- "/banking/payees",
- "Get Payees",
- s"""${mockedDataText(true)}
- Obtain a list of pre-registered payees
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "payees" : [ {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- }, {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
- )
-
- lazy val listPayees : OBPEndpoint = {
- case "banking":: "payees" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "payees" : [ {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- }, {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listProducts,
- apiVersion,
- nameOf(listProducts),
- "GET",
- "/banking/products",
- "Get Products",
- s"""${mockedDataText(true)}
- Obtain a list of products that are currently openly offered to the market
-
-Note that the results returned by this end point are expected to be ordered according to updated-since
-
-### Conventions
-
-In the product reference payloads there are a number of recurring conventions that are explained here, in one place.
-
-#### Arrays Of Features
-
-In the product detail payload there are a number of arrays articulating generic features, constraints, prices, etc. The intent of these arrays is as follows:
-
-- Each element in an array has the same structure so that clients can reliably interpret the payloads
-
-- Each element as a type element that is an enumeration of the specific aspect of a product being described, such as types of fees.
-
-- Each element has a field name \\[additionalValue\\](#productfeaturetypedoc). This is a generic field with contents that will vary based on the type of object being described. The contents of this field for the ADDITIONAL_CARDS feature is the number of cards allowed while the contents of this field for the MAX_LIMIT constraint would be the maximum credit limit allowed for the product.
-
-- An element in these arrays of the same type may appear more than once. For instance, a product may offer two separate loyalty programs that the customer can select from. A fixed term mortgage may have different rates for different term lengths.
-
-- An element in these arrays may contain an additionalInfo and additionalInfoUri field. The additionalInfo field is used to provide displayable text clarifying the purpose of the element in some way when the product is presented to a customer. The additionalInfoUri provides a link to externally hosted information specifically relevant to that feature of the product.
-
-- Depending on the type of data being represented there may be additional specific fields.
-
-#### URIs To More Information
-
-As the complexities and nuances of a financial product can not easily be fully expressed in a data structure without a high degree of complexity it is necessary to provide additional reference information that a potential customer can access so that they are fully informed of the features and implications of the product. The payloads for product reference therefore contain numerous fields that are provided to allow the product holder to describe the product more fully using a web page hosted on their online channels.
-
-These URIs do not need to all link to different pages. If desired, they can all link to a single hosted page and use difference HTML anchors to focus on a specific topic such as eligibility or fees.
-
-#### Linkage To Accounts
-
-From the moment that a customer applies for a product and an account is created the account and the product that spawned it will diverge. Rates and features of the product may change and a discount may be negotiated for the account.
-
-For this reason, while productCategory is a common field between accounts and products, there is no specific ID that can be used to link an account to a product within the regime.
-
-Similarly, many of the fields and objects in the product payload will appear in the account detail payload but the structures and semantics are not identical as one refers to a product that can potentially be originated and one refers to an account that actual has been instantiated and created along with the associated decisions inherent in that process.
-
-#### Dates
-
-It is expected that data consumers needing this data will call relatively frequently to ensure the data they have is representative of the current offering from a bank. To minimise the volume and frequency of these calls the ability to set a lastUpdated field with the date and time of the last update to this product is included. A call for a list of products can then be filtered to only return products that have been updated since the last time that data was obtained using the updated-since query parameter.
-
-In addition, the concept of effective date and time has also been included. This allows for a product to be marked for obsolescence, or introduction, from a certain time without the need for an update to show that a product has been changed. The inclusion of these dates also removes the need to represent deleted products in the payload. Products that are no long offered can be marked not effective for a few weeks before they are then removed from the product set as an option entirely.
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "products" : [ {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- }, {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
- )
-
- lazy val listProducts : OBPEndpoint = {
- case "banking":: "products" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "products" : [ {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- }, {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listScheduledPayments,
- apiVersion,
- nameOf(listScheduledPayments),
- "GET",
- "/banking/accounts/ACCOUNT_ID/payments/scheduled",
- "Get Scheduled Payments for Account",
- s"""${mockedDataText(true)}
- Obtain scheduled, outgoing payments for a specific account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val listScheduledPayments : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "payments":: "scheduled" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listScheduledPaymentsBulk,
- apiVersion,
- nameOf(listScheduledPaymentsBulk),
- "GET",
- "/banking/payments/scheduled",
- "Get Scheduled Payments Bulk",
- s"""${mockedDataText(true)}
- Obtain scheduled payments for multiple, filtered accounts that are the source of funds for the payments
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val listScheduledPaymentsBulk : OBPEndpoint = {
- case "banking":: "payments":: "scheduled" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listScheduledPaymentsSpecificAccounts,
- apiVersion,
- nameOf(listScheduledPaymentsSpecificAccounts),
- "POST",
- "/banking/payments/scheduled",
- "Get Scheduled Payments For Specific Accounts",
- s"""${mockedDataText(true)}
- Obtain scheduled payments for a specified list of accounts
-
- """,
- json.parse("""{
- "data" : {
- "accountIds" : [ "accountIds", "accountIds" ]
- },
- "meta" : " ",
-}"""),
- json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val listScheduledPaymentsSpecificAccounts : OBPEndpoint = {
- case "banking":: "payments":: "scheduled" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil.{defaultBankId, _}
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import code.api.util.{ApiTag, NewStyle}
+//import code.api.util.NewStyle.HttpCode
+//import code.views.Views
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.model.{AccountId, BankId}
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.{List, Nil}
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_BankingApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getAccountDetail ::
+// getPayeeDetail ::
+// getProductDetail ::
+// getTransactionDetail ::
+// getTransactions ::
+// listAccounts ::
+// listBalance ::
+// listBalancesBulk ::
+// listBalancesSpecificAccounts ::
+// listDirectDebits ::
+// listDirectDebitsBulk ::
+// listDirectDebitsSpecificAccounts ::
+// listPayees ::
+// listProducts ::
+// listScheduledPayments ::
+// listScheduledPaymentsBulk ::
+// listScheduledPaymentsSpecificAccounts ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getAccountDetail,
+// apiVersion,
+// nameOf(getAccountDetail),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID",
+// "Get Account Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a single account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getAccountDetail : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getPayeeDetail,
+// apiVersion,
+// nameOf(getPayeeDetail),
+// "GET",
+// "/banking/payees/PAYEE_ID",
+// "Get Payee Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a single payee
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getPayeeDetail : OBPEndpoint = {
+// case "banking":: "payees" :: payeeId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getProductDetail,
+// apiVersion,
+// nameOf(getProductDetail),
+// "GET",
+// "/banking/products/PRODUCT_ID",
+// "Get Product Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a single product offered openly to the market
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getProductDetail : OBPEndpoint = {
+// case "banking":: "products" :: productId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionDetail,
+// apiVersion,
+// nameOf(getTransactionDetail),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/transactions/TRANSACTION_ID",
+// "Get Transaction Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a transaction for a specific account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionDetail : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "transactions" :: transactionId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactions,
+// apiVersion,
+// nameOf(getTransactions),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/transactions",
+// "Get Transactions For Account",
+// s"""${mockedDataText(true)}
+// Obtain transactions for a specific account.
+//
+//Some general notes that apply to all end points that retrieve transactions:
+//
+//- Where multiple transactions are returned, transactions should be ordered according to effective date in descending order
+//
+//- As the date and time for a transaction can alter depending on status and transaction type two separate date/times are included in the payload. There are still some scenarios where neither of these time stamps is available. For the purpose of filtering and ordering it is expected that the data holder will use the "effective" date/time which will be defined as:
+//
+//- Posted date/time if available, then
+//
+//- Execution date/time if available, then
+//
+//- A reasonable date/time nominated by the data holder using internal data structures
+//
+//- For transaction amounts it should be assumed that a negative value indicates a reduction of the available balance on the account while a positive value indicates an increase in the available balance on the account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "transactions" : [ {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
+// "accountId" : "accountId",
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
+// }, {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
+// "accountId" : "accountId",
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactions : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "transactions" : [ {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
+// "accountId" : "accountId",
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
+// }, {
+// "postingDateTime" : "postingDateTime",
+// "amount" : "amount",
+// "apcaNumber" : "apcaNumber",
+// "isDetailAvailable" : true,
+// "description" : "description",
+// "type" : "FEE",
+// "billerName" : "billerName",
+// "executionDateTime" : "executionDateTime",
+// "transactionId" : "transactionId",
+// "merchantName" : "merchantName",
+// "billerCode" : "billerCode",
+// "reference" : "reference",
+// "accountId" : "accountId",
+// "merchantCategoryCode" : "merchantCategoryCode",
+// "valueDateTime" : "valueDateTime",
+// "currency" : "currency",
+// "crn" : "crn",
+// "status" : "PENDING"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listAccounts,
+// apiVersion,
+// nameOf(listAccounts),
+// "GET",
+// "/banking/accounts",
+// "Get Accounts",
+// s"""${mockedDataText(false)}
+// Obtain a list of accounts
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "accounts" : [ {
+// "accountId" : "accountId",
+// "maskedNumber" : "maskedNumber",
+// "openStatus" : "OPEN",
+// "displayName" : "displayName",
+// "isOwned" : true,
+// "nickname" : "nickname",
+// "creationDate" : "creationDate",
+// "productName" : "productName",
+// "productCategory" : { }
+// }, {
+// "accountId" : "accountId",
+// "maskedNumber" : "maskedNumber",
+// "openStatus" : "OPEN",
+// "displayName" : "displayName",
+// "isOwned" : true,
+// "nickname" : "nickname",
+// "creationDate" : "creationDate",
+// "productName" : "productName",
+// "productCategory" : { }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: Nil
+// )
+//
+// lazy val listAccounts : OBPEndpoint = {
+// case "banking":: "accounts" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// availablePrivateAccounts <- Views.views.vend.getPrivateBankAccountsFuture(u, BankId(defaultBankId))
+// (coreAccounts, callContext) <- NewStyle.function.getCoreBankAccountsFuture(availablePrivateAccounts, callContext)
+// } yield {
+// (JSONFactory_AU_OpenBanking_1_0_0.createListAccountsJson(coreAccounts), HttpCode.`200`(callContext))
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listBalance,
+// apiVersion,
+// nameOf(listBalance),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/balance",
+// "Get Account Balance",
+// s"""${mockedDataText(false)}
+// Obtain the balance for a single specified account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: Nil
+// )
+//
+// lazy val listBalance : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "balance" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// (account, callContext) <- NewStyle.function.checkBankAccountExists(BankId(defaultBankId), AccountId(accountId), callContext)
+// } yield {
+// (JSONFactory_AU_OpenBanking_1_0_0.createAccountBalanceJson(account), HttpCode.`200`(callContext))
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listBalancesBulk,
+// apiVersion,
+// nameOf(listBalancesBulk),
+// "GET",
+// "/banking/accounts/balances",
+// "Get Bulk Balances",
+// s"""${mockedDataText(true)}
+// Obtain balances for multiple, filtered accounts
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// }, {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listBalancesBulk : OBPEndpoint = {
+// case "banking":: "accounts":: "balances" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// }, {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listBalancesSpecificAccounts,
+// apiVersion,
+// nameOf(listBalancesSpecificAccounts),
+// "POST",
+// "/banking/accounts/balances",
+// "Get Balances For Specific Accounts",
+// s"""${mockedDataText(true)}
+// Obtain balances for a specified list of accounts
+//
+// """,
+// json.parse("""{
+// "data" : {
+// "accountIds" : [ "accountIds", "accountIds" ]
+// },
+// "meta" : " ",
+//}"""),
+// json.parse("""{
+// "data" : {
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// }, {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listBalancesSpecificAccounts : OBPEndpoint = {
+// case "banking":: "accounts":: "balances" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "balances" : [ {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// }, {
+// "accountId" : "accountId",
+// "purses" : [ {
+// "amount" : "amount",
+// "currency" : "currency"
+// }, {
+// "amount" : "amount",
+// "currency" : "currency"
+// } ],
+// "amortisedLimit" : "amortisedLimit",
+// "currentBalance" : "currentBalance",
+// "creditLimit" : "creditLimit",
+// "currency" : "currency",
+// "availableBalance" : "availableBalance"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listDirectDebits,
+// apiVersion,
+// nameOf(listDirectDebits),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/direct-debits",
+// "Get Direct Debits For Account",
+// s"""${mockedDataText(true)}
+// Obtain direct debit authorisations for a specific account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listDirectDebits : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "direct-debits" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listDirectDebitsBulk,
+// apiVersion,
+// nameOf(listDirectDebitsBulk),
+// "GET",
+// "/banking/accounts/direct-debits",
+// "Get Bulk Direct Debits",
+// s"""${mockedDataText(true)}
+// Obtain direct debit authorisations for multiple, filtered accounts
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listDirectDebitsBulk : OBPEndpoint = {
+// case "banking":: "accounts":: "direct-debits" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listDirectDebitsSpecificAccounts,
+// apiVersion,
+// nameOf(listDirectDebitsSpecificAccounts),
+// "POST",
+// "/banking/accounts/direct-debits",
+// "Get Direct Debits For Specific Accounts",
+// s"""${mockedDataText(true)}
+// Obtain direct debit authorisations for a specified list of accounts
+//
+// """,
+// json.parse("""{
+// "data" : {
+// "accountIds" : [ "accountIds", "accountIds" ]
+// },
+// "meta" : " ",
+//}"""),
+// json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listDirectDebitsSpecificAccounts : OBPEndpoint = {
+// case "banking":: "accounts":: "direct-debits" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listPayees,
+// apiVersion,
+// nameOf(listPayees),
+// "GET",
+// "/banking/payees",
+// "Get Payees",
+// s"""${mockedDataText(true)}
+// Obtain a list of pre-registered payees
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "payees" : [ {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// }, {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listPayees : OBPEndpoint = {
+// case "banking":: "payees" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "payees" : [ {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// }, {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listProducts,
+// apiVersion,
+// nameOf(listProducts),
+// "GET",
+// "/banking/products",
+// "Get Products",
+// s"""${mockedDataText(true)}
+// Obtain a list of products that are currently openly offered to the market
+//
+//Note that the results returned by this end point are expected to be ordered according to updated-since
+//
+//### Conventions
+//
+//In the product reference payloads there are a number of recurring conventions that are explained here, in one place.
+//
+//#### Arrays Of Features
+//
+//In the product detail payload there are a number of arrays articulating generic features, constraints, prices, etc. The intent of these arrays is as follows:
+//
+//- Each element in an array has the same structure so that clients can reliably interpret the payloads
+//
+//- Each element as a type element that is an enumeration of the specific aspect of a product being described, such as types of fees.
+//
+//- Each element has a field name \\[additionalValue\\](#productfeaturetypedoc). This is a generic field with contents that will vary based on the type of object being described. The contents of this field for the ADDITIONAL_CARDS feature is the number of cards allowed while the contents of this field for the MAX_LIMIT constraint would be the maximum credit limit allowed for the product.
+//
+//- An element in these arrays of the same type may appear more than once. For instance, a product may offer two separate loyalty programs that the customer can select from. A fixed term mortgage may have different rates for different term lengths.
+//
+//- An element in these arrays may contain an additionalInfo and additionalInfoUri field. The additionalInfo field is used to provide displayable text clarifying the purpose of the element in some way when the product is presented to a customer. The additionalInfoUri provides a link to externally hosted information specifically relevant to that feature of the product.
+//
+//- Depending on the type of data being represented there may be additional specific fields.
+//
+//#### URIs To More Information
+//
+//As the complexities and nuances of a financial product can not easily be fully expressed in a data structure without a high degree of complexity it is necessary to provide additional reference information that a potential customer can access so that they are fully informed of the features and implications of the product. The payloads for product reference therefore contain numerous fields that are provided to allow the product holder to describe the product more fully using a web page hosted on their online channels.
+//
+//These URIs do not need to all link to different pages. If desired, they can all link to a single hosted page and use difference HTML anchors to focus on a specific topic such as eligibility or fees.
+//
+//#### Linkage To Accounts
+//
+//From the moment that a customer applies for a product and an account is created the account and the product that spawned it will diverge. Rates and features of the product may change and a discount may be negotiated for the account.
+//
+//For this reason, while productCategory is a common field between accounts and products, there is no specific ID that can be used to link an account to a product within the regime.
+//
+//Similarly, many of the fields and objects in the product payload will appear in the account detail payload but the structures and semantics are not identical as one refers to a product that can potentially be originated and one refers to an account that actual has been instantiated and created along with the associated decisions inherent in that process.
+//
+//#### Dates
+//
+//It is expected that data consumers needing this data will call relatively frequently to ensure the data they have is representative of the current offering from a bank. To minimise the volume and frequency of these calls the ability to set a lastUpdated field with the date and time of the last update to this product is included. A call for a list of products can then be filtered to only return products that have been updated since the last time that data was obtained using the updated-since query parameter.
+//
+//In addition, the concept of effective date and time has also been included. This allows for a product to be marked for obsolescence, or introduction, from a certain time without the need for an update to show that a product has been changed. The inclusion of these dates also removes the need to represent deleted products in the payload. Products that are no long offered can be marked not effective for a few weeks before they are then removed from the product set as an option entirely.
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "products" : [ {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// }, {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listProducts : OBPEndpoint = {
+// case "banking":: "products" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "products" : [ {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// }, {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listScheduledPayments,
+// apiVersion,
+// nameOf(listScheduledPayments),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/payments/scheduled",
+// "Get Scheduled Payments for Account",
+// s"""${mockedDataText(true)}
+// Obtain scheduled, outgoing payments for a specific account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listScheduledPayments : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "payments":: "scheduled" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listScheduledPaymentsBulk,
+// apiVersion,
+// nameOf(listScheduledPaymentsBulk),
+// "GET",
+// "/banking/payments/scheduled",
+// "Get Scheduled Payments Bulk",
+// s"""${mockedDataText(true)}
+// Obtain scheduled payments for multiple, filtered accounts that are the source of funds for the payments
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listScheduledPaymentsBulk : OBPEndpoint = {
+// case "banking":: "payments":: "scheduled" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listScheduledPaymentsSpecificAccounts,
+// apiVersion,
+// nameOf(listScheduledPaymentsSpecificAccounts),
+// "POST",
+// "/banking/payments/scheduled",
+// "Get Scheduled Payments For Specific Accounts",
+// s"""${mockedDataText(true)}
+// Obtain scheduled payments for a specified list of accounts
+//
+// """,
+// json.parse("""{
+// "data" : {
+// "accountIds" : [ "accountIds", "accountIds" ]
+// },
+// "meta" : " ",
+//}"""),
+// json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listScheduledPaymentsSpecificAccounts : OBPEndpoint = {
+// case "banking":: "payments":: "scheduled" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CommonApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CommonApi.scala
index b649a08445..55bb5453ad 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CommonApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CommonApi.scala
@@ -1,295 +1,295 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_CommonApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getCustomer ::
- getCustomerDetail ::
- getOutages ::
- getStatus ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getCustomer,
- apiVersion,
- nameOf(getCustomer),
- "GET",
- "/common/customer",
- "Get Customer",
- s"""${mockedDataText(true)}
- Obtain basic information on the customer that has authorised the current session
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "person" : {
- "middleNames" : [ "middleNames", "middleNames" ],
- "firstName" : "firstName",
- "lastName" : "lastName",
- "occupationCode" : "occupationCode",
- "prefix" : "prefix",
- "suffix" : "suffix",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "organisation" : {
- "agentRole" : "agentRole",
- "agentLastName" : "agentLastName",
- "establishmentDate" : "establishmentDate",
- "businessName" : "businessName",
- "registeredCountry" : "registeredCountry",
- "abn" : "abn",
- "acn" : "acn",
- "industryCode" : "industryCode",
- "organisationType" : "SOLE_TRADER",
- "legalName" : "legalName",
- "isACNCRegistered" : true,
- "agentFirstName" : "agentFirstName",
- "shortName" : "shortName",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
- )
-
- lazy val getCustomer : OBPEndpoint = {
- case "common":: "customer" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "person" : {
- "middleNames" : [ "middleNames", "middleNames" ],
- "firstName" : "firstName",
- "lastName" : "lastName",
- "occupationCode" : "occupationCode",
- "prefix" : "prefix",
- "suffix" : "suffix",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "organisation" : {
- "agentRole" : "agentRole",
- "agentLastName" : "agentLastName",
- "establishmentDate" : "establishmentDate",
- "businessName" : "businessName",
- "registeredCountry" : "registeredCountry",
- "abn" : "abn",
- "acn" : "acn",
- "industryCode" : "industryCode",
- "organisationType" : "SOLE_TRADER",
- "legalName" : "legalName",
- "isACNCRegistered" : true,
- "agentFirstName" : "agentFirstName",
- "shortName" : "shortName",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getCustomerDetail,
- apiVersion,
- nameOf(getCustomerDetail),
- "GET",
- "/common/customer/detail",
- "Get Customer Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on the authorised customer within the current session.
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "person" : "",
- "organisation" : "",
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
- )
-
- lazy val getCustomerDetail : OBPEndpoint = {
- case "common":: "customer":: "detail" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "person" : "",
- "organisation" : "",
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getOutages,
- apiVersion,
- nameOf(getOutages),
- "GET",
- "/discovery/outages",
- "Get Outages",
- s"""${mockedDataText(true)}
- Obtain a list of scheduled outages for the implementation
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "outages" : [ {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- }, {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- } ]
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
- )
-
- lazy val getOutages : OBPEndpoint = {
- case "discovery":: "outages" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "outages" : [ {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- }, {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- } ]
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getStatus,
- apiVersion,
- nameOf(getStatus),
- "GET",
- "/discovery/status",
- "Get Status",
- s"""${mockedDataText(true)}
- Obtain a health check status for the implementation
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "updateTime" : "updateTime",
- "explanation" : "explanation",
- "expectedResolutionTime" : "expectedResolutionTime",
- "detectionTime" : "detectionTime",
- "status" : "OK"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
- )
-
- lazy val getStatus : OBPEndpoint = {
- case "discovery":: "status" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "updateTime" : "updateTime",
- "explanation" : "explanation",
- "expectedResolutionTime" : "expectedResolutionTime",
- "detectionTime" : "detectionTime",
- "status" : "OK"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_CommonApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getCustomer ::
+// getCustomerDetail ::
+// getOutages ::
+// getStatus ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getCustomer,
+// apiVersion,
+// nameOf(getCustomer),
+// "GET",
+// "/common/customer",
+// "Get Customer",
+// s"""${mockedDataText(true)}
+// Obtain basic information on the customer that has authorised the current session
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "person" : {
+// "middleNames" : [ "middleNames", "middleNames" ],
+// "firstName" : "firstName",
+// "lastName" : "lastName",
+// "occupationCode" : "occupationCode",
+// "prefix" : "prefix",
+// "suffix" : "suffix",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "organisation" : {
+// "agentRole" : "agentRole",
+// "agentLastName" : "agentLastName",
+// "establishmentDate" : "establishmentDate",
+// "businessName" : "businessName",
+// "registeredCountry" : "registeredCountry",
+// "abn" : "abn",
+// "acn" : "acn",
+// "industryCode" : "industryCode",
+// "organisationType" : "SOLE_TRADER",
+// "legalName" : "legalName",
+// "isACNCRegistered" : true,
+// "agentFirstName" : "agentFirstName",
+// "shortName" : "shortName",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getCustomer : OBPEndpoint = {
+// case "common":: "customer" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "person" : {
+// "middleNames" : [ "middleNames", "middleNames" ],
+// "firstName" : "firstName",
+// "lastName" : "lastName",
+// "occupationCode" : "occupationCode",
+// "prefix" : "prefix",
+// "suffix" : "suffix",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "organisation" : {
+// "agentRole" : "agentRole",
+// "agentLastName" : "agentLastName",
+// "establishmentDate" : "establishmentDate",
+// "businessName" : "businessName",
+// "registeredCountry" : "registeredCountry",
+// "abn" : "abn",
+// "acn" : "acn",
+// "industryCode" : "industryCode",
+// "organisationType" : "SOLE_TRADER",
+// "legalName" : "legalName",
+// "isACNCRegistered" : true,
+// "agentFirstName" : "agentFirstName",
+// "shortName" : "shortName",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getCustomerDetail,
+// apiVersion,
+// nameOf(getCustomerDetail),
+// "GET",
+// "/common/customer/detail",
+// "Get Customer Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on the authorised customer within the current session.
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "person" : "",
+// "organisation" : "",
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getCustomerDetail : OBPEndpoint = {
+// case "common":: "customer":: "detail" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "person" : "",
+// "organisation" : "",
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getOutages,
+// apiVersion,
+// nameOf(getOutages),
+// "GET",
+// "/discovery/outages",
+// "Get Outages",
+// s"""${mockedDataText(true)}
+// Obtain a list of scheduled outages for the implementation
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "outages" : [ {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// }, {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// } ]
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getOutages : OBPEndpoint = {
+// case "discovery":: "outages" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "outages" : [ {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// }, {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// } ]
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getStatus,
+// apiVersion,
+// nameOf(getStatus),
+// "GET",
+// "/discovery/status",
+// "Get Status",
+// s"""${mockedDataText(true)}
+// Obtain a health check status for the implementation
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "updateTime" : "updateTime",
+// "explanation" : "explanation",
+// "expectedResolutionTime" : "expectedResolutionTime",
+// "detectionTime" : "detectionTime",
+// "status" : "OK"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getStatus : OBPEndpoint = {
+// case "discovery":: "status" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "updateTime" : "updateTime",
+// "explanation" : "explanation",
+// "expectedResolutionTime" : "expectedResolutionTime",
+// "detectionTime" : "detectionTime",
+// "status" : "OK"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CustomerApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CustomerApi.scala
index 5041a61afc..0487b7d497 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CustomerApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/CustomerApi.scala
@@ -1,177 +1,177 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_CustomerApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getCustomer ::
- getCustomerDetail ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getCustomer,
- apiVersion,
- nameOf(getCustomer),
- "GET",
- "/common/customer",
- "Get Customer",
- s"""${mockedDataText(true)}
- Obtain basic information on the customer that has authorised the current session
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "person" : {
- "middleNames" : [ "middleNames", "middleNames" ],
- "firstName" : "firstName",
- "lastName" : "lastName",
- "occupationCode" : "occupationCode",
- "prefix" : "prefix",
- "suffix" : "suffix",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "organisation" : {
- "agentRole" : "agentRole",
- "agentLastName" : "agentLastName",
- "establishmentDate" : "establishmentDate",
- "businessName" : "businessName",
- "registeredCountry" : "registeredCountry",
- "abn" : "abn",
- "acn" : "acn",
- "industryCode" : "industryCode",
- "organisationType" : "SOLE_TRADER",
- "legalName" : "legalName",
- "isACNCRegistered" : true,
- "agentFirstName" : "agentFirstName",
- "shortName" : "shortName",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
- )
-
- lazy val getCustomer : OBPEndpoint = {
- case "common":: "customer" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "person" : {
- "middleNames" : [ "middleNames", "middleNames" ],
- "firstName" : "firstName",
- "lastName" : "lastName",
- "occupationCode" : "occupationCode",
- "prefix" : "prefix",
- "suffix" : "suffix",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "organisation" : {
- "agentRole" : "agentRole",
- "agentLastName" : "agentLastName",
- "establishmentDate" : "establishmentDate",
- "businessName" : "businessName",
- "registeredCountry" : "registeredCountry",
- "abn" : "abn",
- "acn" : "acn",
- "industryCode" : "industryCode",
- "organisationType" : "SOLE_TRADER",
- "legalName" : "legalName",
- "isACNCRegistered" : true,
- "agentFirstName" : "agentFirstName",
- "shortName" : "shortName",
- "lastUpdateTime" : "lastUpdateTime"
- },
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getCustomerDetail,
- apiVersion,
- nameOf(getCustomerDetail),
- "GET",
- "/common/customer/detail",
- "Get Customer Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on the authorised customer within the current session.
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "person" : "",
- "organisation" : "",
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
- )
-
- lazy val getCustomerDetail : OBPEndpoint = {
- case "common":: "customer":: "detail" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "person" : "",
- "organisation" : "",
- "customerUType" : "person"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_CustomerApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getCustomer ::
+// getCustomerDetail ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getCustomer,
+// apiVersion,
+// nameOf(getCustomer),
+// "GET",
+// "/common/customer",
+// "Get Customer",
+// s"""${mockedDataText(true)}
+// Obtain basic information on the customer that has authorised the current session
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "person" : {
+// "middleNames" : [ "middleNames", "middleNames" ],
+// "firstName" : "firstName",
+// "lastName" : "lastName",
+// "occupationCode" : "occupationCode",
+// "prefix" : "prefix",
+// "suffix" : "suffix",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "organisation" : {
+// "agentRole" : "agentRole",
+// "agentLastName" : "agentLastName",
+// "establishmentDate" : "establishmentDate",
+// "businessName" : "businessName",
+// "registeredCountry" : "registeredCountry",
+// "abn" : "abn",
+// "acn" : "acn",
+// "industryCode" : "industryCode",
+// "organisationType" : "SOLE_TRADER",
+// "legalName" : "legalName",
+// "isACNCRegistered" : true,
+// "agentFirstName" : "agentFirstName",
+// "shortName" : "shortName",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getCustomer : OBPEndpoint = {
+// case "common":: "customer" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "person" : {
+// "middleNames" : [ "middleNames", "middleNames" ],
+// "firstName" : "firstName",
+// "lastName" : "lastName",
+// "occupationCode" : "occupationCode",
+// "prefix" : "prefix",
+// "suffix" : "suffix",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "organisation" : {
+// "agentRole" : "agentRole",
+// "agentLastName" : "agentLastName",
+// "establishmentDate" : "establishmentDate",
+// "businessName" : "businessName",
+// "registeredCountry" : "registeredCountry",
+// "abn" : "abn",
+// "acn" : "acn",
+// "industryCode" : "industryCode",
+// "organisationType" : "SOLE_TRADER",
+// "legalName" : "legalName",
+// "isACNCRegistered" : true,
+// "agentFirstName" : "agentFirstName",
+// "shortName" : "shortName",
+// "lastUpdateTime" : "lastUpdateTime"
+// },
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getCustomerDetail,
+// apiVersion,
+// nameOf(getCustomerDetail),
+// "GET",
+// "/common/customer/detail",
+// "Get Customer Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on the authorised customer within the current session.
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "person" : "",
+// "organisation" : "",
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Customer") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getCustomerDetail : OBPEndpoint = {
+// case "common":: "customer":: "detail" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "person" : "",
+// "organisation" : "",
+// "customerUType" : "person"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DirectDebitsApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DirectDebitsApi.scala
index 035ff3d34b..5158073f89 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DirectDebitsApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DirectDebitsApi.scala
@@ -1,347 +1,347 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_DirectDebitsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- listDirectDebits ::
- listDirectDebitsBulk ::
- listDirectDebitsSpecificAccounts ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- listDirectDebits,
- apiVersion,
- nameOf(listDirectDebits),
- "GET",
- "/banking/accounts/ACCOUNT_ID/direct-debits",
- "Get Direct Debits For Account",
- s"""${mockedDataText(true)}
- Obtain direct debit authorisations for a specific account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val listDirectDebits : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "direct-debits" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listDirectDebitsBulk,
- apiVersion,
- nameOf(listDirectDebitsBulk),
- "GET",
- "/banking/accounts/direct-debits",
- "Get Bulk Direct Debits",
- s"""${mockedDataText(true)}
- Obtain direct debit authorisations for multiple, filtered accounts
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val listDirectDebitsBulk : OBPEndpoint = {
- case "banking":: "accounts":: "direct-debits" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listDirectDebitsSpecificAccounts,
- apiVersion,
- nameOf(listDirectDebitsSpecificAccounts),
- "POST",
- "/banking/accounts/direct-debits",
- "Get Direct Debits For Specific Accounts",
- s"""${mockedDataText(true)}
- Obtain direct debit authorisations for a specified list of accounts
-
- """,
- json.parse("""{
- "data" : {
- "accountIds" : [ "accountIds", "accountIds" ]
- },
- "meta" : " ",
-}"""),
- json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val listDirectDebitsSpecificAccounts : OBPEndpoint = {
- case "banking":: "accounts":: "direct-debits" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "directDebitAuthorisations" : [ {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- }, {
- "lastDebitAmount" : "lastDebitAmount",
- "accountId" : "accountId",
- "lastDebitDateTime" : "lastDebitDateTime",
- "authorisedEntity" : {
- "arbn" : "arbn",
- "description" : "description",
- "financialInstitution" : "financialInstitution",
- "abn" : "abn",
- "acn" : "acn"
- }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_DirectDebitsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// listDirectDebits ::
+// listDirectDebitsBulk ::
+// listDirectDebitsSpecificAccounts ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// listDirectDebits,
+// apiVersion,
+// nameOf(listDirectDebits),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/direct-debits",
+// "Get Direct Debits For Account",
+// s"""${mockedDataText(true)}
+// Obtain direct debit authorisations for a specific account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listDirectDebits : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "direct-debits" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listDirectDebitsBulk,
+// apiVersion,
+// nameOf(listDirectDebitsBulk),
+// "GET",
+// "/banking/accounts/direct-debits",
+// "Get Bulk Direct Debits",
+// s"""${mockedDataText(true)}
+// Obtain direct debit authorisations for multiple, filtered accounts
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listDirectDebitsBulk : OBPEndpoint = {
+// case "banking":: "accounts":: "direct-debits" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listDirectDebitsSpecificAccounts,
+// apiVersion,
+// nameOf(listDirectDebitsSpecificAccounts),
+// "POST",
+// "/banking/accounts/direct-debits",
+// "Get Direct Debits For Specific Accounts",
+// s"""${mockedDataText(true)}
+// Obtain direct debit authorisations for a specified list of accounts
+//
+// """,
+// json.parse("""{
+// "data" : {
+// "accountIds" : [ "accountIds", "accountIds" ]
+// },
+// "meta" : " ",
+//}"""),
+// json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listDirectDebitsSpecificAccounts : OBPEndpoint = {
+// case "banking":: "accounts":: "direct-debits" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "directDebitAuthorisations" : [ {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// }, {
+// "lastDebitAmount" : "lastDebitAmount",
+// "accountId" : "accountId",
+// "lastDebitDateTime" : "lastDebitDateTime",
+// "authorisedEntity" : {
+// "arbn" : "arbn",
+// "description" : "description",
+// "financialInstitution" : "financialInstitution",
+// "abn" : "abn",
+// "acn" : "acn"
+// }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DiscoveryApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DiscoveryApi.scala
index 70bafc1614..15dcfea8ab 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DiscoveryApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/DiscoveryApi.scala
@@ -1,151 +1,151 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_DiscoveryApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getOutages ::
- getStatus ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getOutages,
- apiVersion,
- nameOf(getOutages),
- "GET",
- "/discovery/outages",
- "Get Outages",
- s"""${mockedDataText(true)}
- Obtain a list of scheduled outages for the implementation
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "outages" : [ {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- }, {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- } ]
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
- )
-
- lazy val getOutages : OBPEndpoint = {
- case "discovery":: "outages" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "outages" : [ {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- }, {
- "duration" : "duration",
- "outageTime" : "outageTime",
- "isPartial" : true,
- "explanation" : "explanation"
- } ]
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getStatus,
- apiVersion,
- nameOf(getStatus),
- "GET",
- "/discovery/status",
- "Get Status",
- s"""${mockedDataText(true)}
- Obtain a health check status for the implementation
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "updateTime" : "updateTime",
- "explanation" : "explanation",
- "expectedResolutionTime" : "expectedResolutionTime",
- "detectionTime" : "detectionTime",
- "status" : "OK"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
- )
-
- lazy val getStatus : OBPEndpoint = {
- case "discovery":: "status" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "updateTime" : "updateTime",
- "explanation" : "explanation",
- "expectedResolutionTime" : "expectedResolutionTime",
- "detectionTime" : "detectionTime",
- "status" : "OK"
- },
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_DiscoveryApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getOutages ::
+// getStatus ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getOutages,
+// apiVersion,
+// nameOf(getOutages),
+// "GET",
+// "/discovery/outages",
+// "Get Outages",
+// s"""${mockedDataText(true)}
+// Obtain a list of scheduled outages for the implementation
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "outages" : [ {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// }, {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// } ]
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getOutages : OBPEndpoint = {
+// case "discovery":: "outages" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "outages" : [ {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// }, {
+// "duration" : "duration",
+// "outageTime" : "outageTime",
+// "isPartial" : true,
+// "explanation" : "explanation"
+// } ]
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getStatus,
+// apiVersion,
+// nameOf(getStatus),
+// "GET",
+// "/discovery/status",
+// "Get Status",
+// s"""${mockedDataText(true)}
+// Obtain a health check status for the implementation
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "updateTime" : "updateTime",
+// "explanation" : "explanation",
+// "expectedResolutionTime" : "expectedResolutionTime",
+// "detectionTime" : "detectionTime",
+// "status" : "OK"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Common") ::ApiTag("Discovery") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getStatus : OBPEndpoint = {
+// case "discovery":: "status" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "updateTime" : "updateTime",
+// "explanation" : "explanation",
+// "expectedResolutionTime" : "expectedResolutionTime",
+// "detectionTime" : "detectionTime",
+// "status" : "OK"
+// },
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/JSONFactory_AU_OpenBanking_1_0_0.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/JSONFactory_AU_OpenBanking_1_0_0.scala
index 9fadd489ba..2cc2e9ddb8 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/JSONFactory_AU_OpenBanking_1_0_0.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/JSONFactory_AU_OpenBanking_1_0_0.scala
@@ -1,118 +1,118 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import code.api.util.APIUtil.getServerUrl
-import code.api.util.CustomJsonFormats
-import com.openbankproject.commons.model.{BankAccount, CoreAccount}
-import com.openbankproject.commons.util.ScannedApiVersion
-
-import scala.collection.immutable.List
-
-case class AccountJson(
- accountId: String,
- creationDate: String,
- displayName: String,
- nickname: String,
- openStatus: String,
- isOwned: Boolean,
- maskedNumber: String,
- productCategory: String,
- productName: String
-)
-case class AccountsDataJson(
- accounts: List[AccountJson]
-)
-case class LinksJson(
- self: String,
- first: String,
- prev: String,
- next: String,
- last: String
-)
-case class AccountsMetaJson(
- totalRecords: Double,
- totalPages: Double
-)
-case class AccountListJson(
- data: AccountsDataJson,
- links: LinksJson,
- meta: AccountsMetaJson
-)
-case class PursesJson(
- amount: String,
- currency: String
-)
-case class BalanceDataJson(
- accountId: String,
- currentBalance: String,
- availableBalance: String,
- currency: String,
- amortisedLimit: String,
- creditLimit: String,
- purses: List[PursesJson]
-)
-case class BalacenMetaJson(
-)
-case class BalanceLinks(
- self: String
-)
-case class AccountBalanceJson(
- data: BalanceDataJson,
- meta: BalacenMetaJson,
- links: BalanceLinks
-)
-
-
-object JSONFactory_AU_OpenBanking_1_0_0 extends CustomJsonFormats {
- def createListAccountsJson(coreAccounts : List[CoreAccount]) ={
- val accountsJson = coreAccounts.map(obpCoreAccount =>AccountJson(
- accountId = obpCoreAccount.id,
- creationDate = "",
- displayName = obpCoreAccount.label,
- nickname ="",
- openStatus = "Open",
- isOwned = true,
- maskedNumber = "String",
- productCategory= obpCoreAccount.accountType,
- productName= obpCoreAccount.accountType
- ))
- val totalRecords = coreAccounts.length.toDouble
- val totalPages = 1.toDouble
- val links = LinksJson(
- self = s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
- first =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
- prev =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
- next =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
- last =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
- )
- val meta = AccountsMetaJson(
- totalRecords,
- totalPages
- )
- AccountListJson(
- AccountsDataJson(accountsJson),
- links,
- meta
- )
- }
-
- def createAccountBalanceJson(account : BankAccount) = {
- val balanceDataJson = BalanceDataJson(
- accountId = account.accountId.value,
- currentBalance = account.balance.toString(),
- availableBalance = account.balance.toString(),
- currency = account.currency,
- amortisedLimit ="",
- creditLimit ="",
- purses = Nil
- )
- val meta = BalacenMetaJson()
- val links = BalanceLinks(
- self = s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts/${account.accountId.value}/balance",
- )
- AccountBalanceJson(
- balanceDataJson,
- meta,
- links
- )
- }
-}
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import code.api.util.APIUtil.getServerUrl
+//import code.api.util.CustomJsonFormats
+//import com.openbankproject.commons.model.{BankAccount, CoreAccount}
+//import com.openbankproject.commons.util.ScannedApiVersion
+//
+//import scala.collection.immutable.List
+//
+//case class AccountJson(
+// accountId: String,
+// creationDate: String,
+// displayName: String,
+// nickname: String,
+// openStatus: String,
+// isOwned: Boolean,
+// maskedNumber: String,
+// productCategory: String,
+// productName: String
+//)
+//case class AccountsDataJson(
+// accounts: List[AccountJson]
+//)
+//case class LinksJson(
+// self: String,
+// first: String,
+// prev: String,
+// next: String,
+// last: String
+//)
+//case class AccountsMetaJson(
+// totalRecords: Double,
+// totalPages: Double
+//)
+//case class AccountListJson(
+// data: AccountsDataJson,
+// links: LinksJson,
+// meta: AccountsMetaJson
+//)
+//case class PursesJson(
+// amount: String,
+// currency: String
+//)
+//case class BalanceDataJson(
+// accountId: String,
+// currentBalance: String,
+// availableBalance: String,
+// currency: String,
+// amortisedLimit: String,
+// creditLimit: String,
+// purses: List[PursesJson]
+//)
+//case class BalacenMetaJson(
+//)
+//case class BalanceLinks(
+// self: String
+//)
+//case class AccountBalanceJson(
+// data: BalanceDataJson,
+// meta: BalacenMetaJson,
+// links: BalanceLinks
+//)
+//
+//
+//object JSONFactory_AU_OpenBanking_1_0_0 extends CustomJsonFormats {
+// def createListAccountsJson(coreAccounts : List[CoreAccount]) ={
+// val accountsJson = coreAccounts.map(obpCoreAccount =>AccountJson(
+// accountId = obpCoreAccount.id,
+// creationDate = "",
+// displayName = obpCoreAccount.label,
+// nickname ="",
+// openStatus = "Open",
+// isOwned = true,
+// maskedNumber = "String",
+// productCategory= obpCoreAccount.accountType,
+// productName= obpCoreAccount.accountType
+// ))
+// val totalRecords = coreAccounts.length.toDouble
+// val totalPages = 1.toDouble
+// val links = LinksJson(
+// self = s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
+// first =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
+// prev =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
+// next =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
+// last =s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts",
+// )
+// val meta = AccountsMetaJson(
+// totalRecords,
+// totalPages
+// )
+// AccountListJson(
+// AccountsDataJson(accountsJson),
+// links,
+// meta
+// )
+// }
+//
+// def createAccountBalanceJson(account : BankAccount) = {
+// val balanceDataJson = BalanceDataJson(
+// accountId = account.accountId.value,
+// currentBalance = account.balance.toString(),
+// availableBalance = account.balance.toString(),
+// currency = account.currency,
+// amortisedLimit ="",
+// creditLimit ="",
+// purses = Nil
+// )
+// val meta = BalacenMetaJson()
+// val links = BalanceLinks(
+// self = s"$getServerUrl/${ApiCollector.apiVersion.asInstanceOf[ScannedApiVersion].urlPrefix}/${ApiCollector.version}/banking/accounts/${account.accountId.value}/balance",
+// )
+// AccountBalanceJson(
+// balanceDataJson,
+// meta,
+// links
+// )
+// }
+//}
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/PayeesApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/PayeesApi.scala
index 335b82fc8c..4f0d794fad 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/PayeesApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/PayeesApi.scala
@@ -1,157 +1,157 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_PayeesApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getPayeeDetail ::
- listPayees ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getPayeeDetail,
- apiVersion,
- nameOf(getPayeeDetail),
- "GET",
- "/banking/payees/PAYEE_ID",
- "Get Payee Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a single payee
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
- )
-
- lazy val getPayeeDetail : OBPEndpoint = {
- case "banking":: "payees" :: payeeId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listPayees,
- apiVersion,
- nameOf(listPayees),
- "GET",
- "/banking/payees",
- "Get Payees",
- s"""${mockedDataText(true)}
- Obtain a list of pre-registered payees
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "payees" : [ {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- }, {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
- )
-
- lazy val listPayees : OBPEndpoint = {
- case "banking":: "payees" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "payees" : [ {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- }, {
- "nickname" : "nickname",
- "description" : "description",
- "payeeId" : "payeeId",
- "type" : "DOMESTIC",
- "creationDate" : "creationDate"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_PayeesApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getPayeeDetail ::
+// listPayees ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getPayeeDetail,
+// apiVersion,
+// nameOf(getPayeeDetail),
+// "GET",
+// "/banking/payees/PAYEE_ID",
+// "Get Payee Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a single payee
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getPayeeDetail : OBPEndpoint = {
+// case "banking":: "payees" :: payeeId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listPayees,
+// apiVersion,
+// nameOf(listPayees),
+// "GET",
+// "/banking/payees",
+// "Get Payees",
+// s"""${mockedDataText(true)}
+// Obtain a list of pre-registered payees
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "payees" : [ {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// }, {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Payees") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listPayees : OBPEndpoint = {
+// case "banking":: "payees" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "payees" : [ {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// }, {
+// "nickname" : "nickname",
+// "description" : "description",
+// "payeeId" : "payeeId",
+// "type" : "DOMESTIC",
+// "creationDate" : "creationDate"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ProductsApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ProductsApi.scala
index 04d227672f..d9a9bc1dc8 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ProductsApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ProductsApi.scala
@@ -1,250 +1,250 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_ProductsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getProductDetail ::
- listProducts ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getProductDetail,
- apiVersion,
- nameOf(getProductDetail),
- "GET",
- "/banking/products/PRODUCT_ID",
- "Get Product Detail",
- s"""${mockedDataText(true)}
- Obtain detailed information on a single product offered openly to the market
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
- )
-
- lazy val getProductDetail : OBPEndpoint = {
- case "banking":: "products" :: productId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : "",
- "meta" : " ",
- "links" : {
- "self" : "self"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listProducts,
- apiVersion,
- nameOf(listProducts),
- "GET",
- "/banking/products",
- "Get Products",
- s"""${mockedDataText(true)}
- Obtain a list of products that are currently openly offered to the market
-
-Note that the results returned by this end point are expected to be ordered according to updated-since
-
-### Conventions
-
-In the product reference payloads there are a number of recurring conventions that are explained here, in one place.
-
-#### Arrays Of Features
-
-In the product detail payload there are a number of arrays articulating generic features, constraints, prices, etc. The intent of these arrays is as follows:
-
-- Each element in an array has the same structure so that clients can reliably interpret the payloads
-
-- Each element as a type element that is an enumeration of the specific aspect of a product being described, such as types of fees.
-
-- Each element has a field name \\[additionalValue\\](#productfeaturetypedoc). This is a generic field with contents that will vary based on the type of object being described. The contents of this field for the ADDITIONAL_CARDS feature is the number of cards allowed while the contents of this field for the MAX_LIMIT constraint would be the maximum credit limit allowed for the product.
-
-- An element in these arrays of the same type may appear more than once. For instance, a product may offer two separate loyalty programs that the customer can select from. A fixed term mortgage may have different rates for different term lengths.
-
-- An element in these arrays may contain an additionalInfo and additionalInfoUri field. The additionalInfo field is used to provide displayable text clarifying the purpose of the element in some way when the product is presented to a customer. The additionalInfoUri provides a link to externally hosted information specifically relevant to that feature of the product.
-
-- Depending on the type of data being represented there may be additional specific fields.
-
-#### URIs To More Information
-
-As the complexities and nuances of a financial product can not easily be fully expressed in a data structure without a high degree of complexity it is necessary to provide additional reference information that a potential customer can access so that they are fully informed of the features and implications of the product. The payloads for product reference therefore contain numerous fields that are provided to allow the product holder to describe the product more fully using a web page hosted on their online channels.
-
-These URIs do not need to all link to different pages. If desired, they can all link to a single hosted page and use difference HTML anchors to focus on a specific topic such as eligibility or fees.
-
-#### Linkage To Accounts
-
-From the moment that a customer applies for a product and an account is created the account and the product that spawned it will diverge. Rates and features of the product may change and a discount may be negotiated for the account.
-
-For this reason, while productCategory is a common field between accounts and products, there is no specific ID that can be used to link an account to a product within the regime.
-
-Similarly, many of the fields and objects in the product payload will appear in the account detail payload but the structures and semantics are not identical as one refers to a product that can potentially be originated and one refers to an account that actual has been instantiated and created along with the associated decisions inherent in that process.
-
-#### Dates
-
-It is expected that data consumers needing this data will call relatively frequently to ensure the data they have is representative of the current offering from a bank. To minimise the volume and frequency of these calls the ability to set a lastUpdated field with the date and time of the last update to this product is included. A call for a list of products can then be filtered to only return products that have been updated since the last time that data was obtained using the updated-since query parameter.
-
-In addition, the concept of effective date and time has also been included. This allows for a product to be marked for obsolescence, or introduction, from a certain time without the need for an update to show that a product has been changed. The inclusion of these dates also removes the need to represent deleted products in the payload. Products that are no long offered can be marked not effective for a few weeks before they are then removed from the product set as an option entirely.
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "products" : [ {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- }, {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
- )
-
- lazy val listProducts : OBPEndpoint = {
- case "banking":: "products" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "products" : [ {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- }, {
- "effectiveTo" : "effectiveTo",
- "lastUpdated" : "lastUpdated",
- "additionalInformation" : {
- "eligibilityUri" : "eligibilityUri",
- "bundleUri" : "bundleUri",
- "feesAndPricingUri" : "feesAndPricingUri",
- "termsUri" : "termsUri",
- "overviewUri" : "overviewUri"
- },
- "brandName" : "brandName",
- "isTailored" : true,
- "productId" : "productId",
- "name" : "name",
- "description" : "description",
- "applicationUri" : "applicationUri",
- "effectiveFrom" : "effectiveFrom",
- "brand" : "brand",
- "productCategory" : { }
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_ProductsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getProductDetail ::
+// listProducts ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getProductDetail,
+// apiVersion,
+// nameOf(getProductDetail),
+// "GET",
+// "/banking/products/PRODUCT_ID",
+// "Get Product Detail",
+// s"""${mockedDataText(true)}
+// Obtain detailed information on a single product offered openly to the market
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getProductDetail : OBPEndpoint = {
+// case "banking":: "products" :: productId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : "",
+// "meta" : " ",
+// "links" : {
+// "self" : "self"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listProducts,
+// apiVersion,
+// nameOf(listProducts),
+// "GET",
+// "/banking/products",
+// "Get Products",
+// s"""${mockedDataText(true)}
+// Obtain a list of products that are currently openly offered to the market
+//
+//Note that the results returned by this end point are expected to be ordered according to updated-since
+//
+//### Conventions
+//
+//In the product reference payloads there are a number of recurring conventions that are explained here, in one place.
+//
+//#### Arrays Of Features
+//
+//In the product detail payload there are a number of arrays articulating generic features, constraints, prices, etc. The intent of these arrays is as follows:
+//
+//- Each element in an array has the same structure so that clients can reliably interpret the payloads
+//
+//- Each element as a type element that is an enumeration of the specific aspect of a product being described, such as types of fees.
+//
+//- Each element has a field name \\[additionalValue\\](#productfeaturetypedoc). This is a generic field with contents that will vary based on the type of object being described. The contents of this field for the ADDITIONAL_CARDS feature is the number of cards allowed while the contents of this field for the MAX_LIMIT constraint would be the maximum credit limit allowed for the product.
+//
+//- An element in these arrays of the same type may appear more than once. For instance, a product may offer two separate loyalty programs that the customer can select from. A fixed term mortgage may have different rates for different term lengths.
+//
+//- An element in these arrays may contain an additionalInfo and additionalInfoUri field. The additionalInfo field is used to provide displayable text clarifying the purpose of the element in some way when the product is presented to a customer. The additionalInfoUri provides a link to externally hosted information specifically relevant to that feature of the product.
+//
+//- Depending on the type of data being represented there may be additional specific fields.
+//
+//#### URIs To More Information
+//
+//As the complexities and nuances of a financial product can not easily be fully expressed in a data structure without a high degree of complexity it is necessary to provide additional reference information that a potential customer can access so that they are fully informed of the features and implications of the product. The payloads for product reference therefore contain numerous fields that are provided to allow the product holder to describe the product more fully using a web page hosted on their online channels.
+//
+//These URIs do not need to all link to different pages. If desired, they can all link to a single hosted page and use difference HTML anchors to focus on a specific topic such as eligibility or fees.
+//
+//#### Linkage To Accounts
+//
+//From the moment that a customer applies for a product and an account is created the account and the product that spawned it will diverge. Rates and features of the product may change and a discount may be negotiated for the account.
+//
+//For this reason, while productCategory is a common field between accounts and products, there is no specific ID that can be used to link an account to a product within the regime.
+//
+//Similarly, many of the fields and objects in the product payload will appear in the account detail payload but the structures and semantics are not identical as one refers to a product that can potentially be originated and one refers to an account that actual has been instantiated and created along with the associated decisions inherent in that process.
+//
+//#### Dates
+//
+//It is expected that data consumers needing this data will call relatively frequently to ensure the data they have is representative of the current offering from a bank. To minimise the volume and frequency of these calls the ability to set a lastUpdated field with the date and time of the last update to this product is included. A call for a list of products can then be filtered to only return products that have been updated since the last time that data was obtained using the updated-since query parameter.
+//
+//In addition, the concept of effective date and time has also been included. This allows for a product to be marked for obsolescence, or introduction, from a certain time without the need for an update to show that a product has been changed. The inclusion of these dates also removes the need to represent deleted products in the payload. Products that are no long offered can be marked not effective for a few weeks before they are then removed from the product set as an option entirely.
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "products" : [ {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// }, {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Products") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listProducts : OBPEndpoint = {
+// case "banking":: "products" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "products" : [ {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// }, {
+// "effectiveTo" : "effectiveTo",
+// "lastUpdated" : "lastUpdated",
+// "additionalInformation" : {
+// "eligibilityUri" : "eligibilityUri",
+// "bundleUri" : "bundleUri",
+// "feesAndPricingUri" : "feesAndPricingUri",
+// "termsUri" : "termsUri",
+// "overviewUri" : "overviewUri"
+// },
+// "brandName" : "brandName",
+// "isTailored" : true,
+// "productId" : "productId",
+// "name" : "name",
+// "description" : "description",
+// "applicationUri" : "applicationUri",
+// "effectiveFrom" : "effectiveFrom",
+// "brand" : "brand",
+// "productCategory" : { }
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ScheduledPaymentsApi.scala b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ScheduledPaymentsApi.scala
index 037447e0c4..9e85df182e 100644
--- a/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ScheduledPaymentsApi.scala
+++ b/obp-api/src/main/scala/code/api/AUOpenBanking/v1_0_0/ScheduledPaymentsApi.scala
@@ -1,1895 +1,1895 @@
-package code.api.AUOpenBanking.v1_0_0
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_ScheduledPaymentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- listScheduledPayments ::
- listScheduledPaymentsBulk ::
- listScheduledPaymentsSpecificAccounts ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- listScheduledPayments,
- apiVersion,
- nameOf(listScheduledPayments),
- "GET",
- "/banking/accounts/ACCOUNT_ID/payments/scheduled",
- "Get Scheduled Payments for Account",
- s"""${mockedDataText(true)}
- Obtain scheduled, outgoing payments for a specific account
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val listScheduledPayments : OBPEndpoint = {
- case "banking":: "accounts" :: accountId:: "payments":: "scheduled" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listScheduledPaymentsBulk,
- apiVersion,
- nameOf(listScheduledPaymentsBulk),
- "GET",
- "/banking/payments/scheduled",
- "Get Scheduled Payments Bulk",
- s"""${mockedDataText(true)}
- Obtain scheduled payments for multiple, filtered accounts that are the source of funds for the payments
-
- """,
- EmptyBody,
- json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val listScheduledPaymentsBulk : OBPEndpoint = {
- case "banking":: "payments":: "scheduled" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- listScheduledPaymentsSpecificAccounts,
- apiVersion,
- nameOf(listScheduledPaymentsSpecificAccounts),
- "POST",
- "/banking/payments/scheduled",
- "Get Scheduled Payments For Specific Accounts",
- s"""${mockedDataText(true)}
- Obtain scheduled payments for a specified list of accounts
-
- """,
- json.parse("""{
- "data" : {
- "accountIds" : [ "accountIds", "accountIds" ]
- },
- "meta" : " ",
-}"""),
- json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val listScheduledPaymentsSpecificAccounts : OBPEndpoint = {
- case "banking":: "payments":: "scheduled" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "data" : {
- "scheduledPayments" : [ {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- }, {
- "recurrence" : {
- "nextPaymentDate" : "nextPaymentDate",
- "eventBased" : {
- "description" : "description"
- },
- "onceOff" : {
- "paymentDate" : "paymentDate"
- },
- "recurrenceUType" : "onceOff",
- "intervalSchedule" : {
- "intervals" : [ {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- }, {
- "interval" : "interval",
- "dayInInterval" : "dayInInterval"
- } ],
- "paymentsRemaining" : 0,
- "finalPaymentDate" : "finalPaymentDate",
- "nonBusinessDayTreatment" : "ON"
- },
- "lastWeekDay" : {
- "paymentsRemaining" : 6,
- "interval" : "interval",
- "finalPaymentDate" : "finalPaymentDate",
- "lastWeekDay" : 1
- }
- },
- "scheduledPaymentId" : "scheduledPaymentId",
- "payeeReference" : "payeeReference",
- "payerReference" : "payerReference",
- "nickname" : "nickname",
- "from" : {
- "accountId" : "accountId"
- },
- "paymentSet" : [ {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- }, {
- "isAmountCalculated" : true,
- "amount" : "amount",
- "currency" : "currency",
- "to" : {
- "domestic" : {
- "payeeAccountUType" : "account",
- "payId" : {
- "identifier" : "identifier",
- "name" : "name",
- "type" : "EMAIL"
- },
- "account" : {
- "bsb" : "bsb",
- "accountName" : "accountName",
- "accountNumber" : "accountNumber"
- },
- "card" : {
- "cardNumber" : "cardNumber"
- }
- },
- "accountId" : "accountId",
- "biller" : {
- "billerName" : "billerName",
- "crn" : "crn",
- "billerCode" : "billerCode"
- },
- "toUType" : "accountId",
- "payeeId" : "payeeId",
- "international" : {
- "bankDetails" : {
- "country" : "country",
- "routingNumber" : "routingNumber",
- "fedWireNumber" : "fedWireNumber",
- "chipNumber" : "chipNumber",
- "legalEntityIdentifier" : "legalEntityIdentifier",
- "accountNumber" : "accountNumber",
- "bankAddress" : {
- "address" : "address",
- "name" : "name"
- },
- "sortCode" : "sortCode",
- "beneficiaryBankBIC" : "beneficiaryBankBIC"
- },
- "beneficiaryDetails" : {
- "country" : "country",
- "name" : "name",
- "message" : "message"
- }
- }
- }
- } ],
- "status" : "ACTIVE"
- } ]
- },
- "meta" : {
- "totalRecords" : 0,
- "totalPages" : 6
- },
- "links" : {
- "next" : "next",
- "last" : "last",
- "prev" : "prev",
- "self" : "self",
- "first" : "first"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.AUOpenBanking.v1_0_0
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_ScheduledPaymentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// listScheduledPayments ::
+// listScheduledPaymentsBulk ::
+// listScheduledPaymentsSpecificAccounts ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// listScheduledPayments,
+// apiVersion,
+// nameOf(listScheduledPayments),
+// "GET",
+// "/banking/accounts/ACCOUNT_ID/payments/scheduled",
+// "Get Scheduled Payments for Account",
+// s"""${mockedDataText(true)}
+// Obtain scheduled, outgoing payments for a specific account
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listScheduledPayments : OBPEndpoint = {
+// case "banking":: "accounts" :: accountId:: "payments":: "scheduled" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listScheduledPaymentsBulk,
+// apiVersion,
+// nameOf(listScheduledPaymentsBulk),
+// "GET",
+// "/banking/payments/scheduled",
+// "Get Scheduled Payments Bulk",
+// s"""${mockedDataText(true)}
+// Obtain scheduled payments for multiple, filtered accounts that are the source of funds for the payments
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listScheduledPaymentsBulk : OBPEndpoint = {
+// case "banking":: "payments":: "scheduled" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// listScheduledPaymentsSpecificAccounts,
+// apiVersion,
+// nameOf(listScheduledPaymentsSpecificAccounts),
+// "POST",
+// "/banking/payments/scheduled",
+// "Get Scheduled Payments For Specific Accounts",
+// s"""${mockedDataText(true)}
+// Obtain scheduled payments for a specified list of accounts
+//
+// """,
+// json.parse("""{
+// "data" : {
+// "accountIds" : [ "accountIds", "accountIds" ]
+// },
+// "meta" : " ",
+//}"""),
+// json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Banking") ::ApiTag("Scheduled Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val listScheduledPaymentsSpecificAccounts : OBPEndpoint = {
+// case "banking":: "payments":: "scheduled" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "data" : {
+// "scheduledPayments" : [ {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// }, {
+// "recurrence" : {
+// "nextPaymentDate" : "nextPaymentDate",
+// "eventBased" : {
+// "description" : "description"
+// },
+// "onceOff" : {
+// "paymentDate" : "paymentDate"
+// },
+// "recurrenceUType" : "onceOff",
+// "intervalSchedule" : {
+// "intervals" : [ {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// }, {
+// "interval" : "interval",
+// "dayInInterval" : "dayInInterval"
+// } ],
+// "paymentsRemaining" : 0,
+// "finalPaymentDate" : "finalPaymentDate",
+// "nonBusinessDayTreatment" : "ON"
+// },
+// "lastWeekDay" : {
+// "paymentsRemaining" : 6,
+// "interval" : "interval",
+// "finalPaymentDate" : "finalPaymentDate",
+// "lastWeekDay" : 1
+// }
+// },
+// "scheduledPaymentId" : "scheduledPaymentId",
+// "payeeReference" : "payeeReference",
+// "payerReference" : "payerReference",
+// "nickname" : "nickname",
+// "from" : {
+// "accountId" : "accountId"
+// },
+// "paymentSet" : [ {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// }, {
+// "isAmountCalculated" : true,
+// "amount" : "amount",
+// "currency" : "currency",
+// "to" : {
+// "domestic" : {
+// "payeeAccountUType" : "account",
+// "payId" : {
+// "identifier" : "identifier",
+// "name" : "name",
+// "type" : "EMAIL"
+// },
+// "account" : {
+// "bsb" : "bsb",
+// "accountName" : "accountName",
+// "accountNumber" : "accountNumber"
+// },
+// "card" : {
+// "cardNumber" : "cardNumber"
+// }
+// },
+// "accountId" : "accountId",
+// "biller" : {
+// "billerName" : "billerName",
+// "crn" : "crn",
+// "billerCode" : "billerCode"
+// },
+// "toUType" : "accountId",
+// "payeeId" : "payeeId",
+// "international" : {
+// "bankDetails" : {
+// "country" : "country",
+// "routingNumber" : "routingNumber",
+// "fedWireNumber" : "fedWireNumber",
+// "chipNumber" : "chipNumber",
+// "legalEntityIdentifier" : "legalEntityIdentifier",
+// "accountNumber" : "accountNumber",
+// "bankAddress" : {
+// "address" : "address",
+// "name" : "name"
+// },
+// "sortCode" : "sortCode",
+// "beneficiaryBankBIC" : "beneficiaryBankBIC"
+// },
+// "beneficiaryDetails" : {
+// "country" : "country",
+// "name" : "name",
+// "message" : "message"
+// }
+// }
+// }
+// } ],
+// "status" : "ACTIVE"
+// } ]
+// },
+// "meta" : {
+// "totalRecords" : 0,
+// "totalPages" : 6
+// },
+// "links" : {
+// "next" : "next",
+// "last" : "last",
+// "prev" : "prev",
+// "self" : "self",
+// "first" : "first"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountAccessConsentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountAccessConsentsApi.scala
index 450c57c03f..51067de2e3 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountAccessConsentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountAccessConsentsApi.scala
@@ -1,252 +1,252 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_AccountAccessConsentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountAccessConsentsConsentIdGet ::
- accountAccessConsentsConsentIdPatch ::
- accountAccessConsentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountAccessConsentsConsentIdGet,
- apiVersion,
- nameOf(accountAccessConsentsConsentIdGet),
- "GET",
- "/account-access-consents/CONSENT_ID",
- "Get Account Access Consents by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Authorised",
- "StatusUpdateDateTime" : { },
- "CreationDateTime" : { },
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "ConsentId" : "ConsentId",
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Account Access Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val accountAccessConsentsConsentIdGet : OBPEndpoint = {
- case "account-access-consents" :: consentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Authorised",
- "StatusUpdateDateTime" : { },
- "CreationDateTime" : { },
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "ConsentId" : "ConsentId",
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountAccessConsentsConsentIdPatch,
- apiVersion,
- nameOf(accountAccessConsentsConsentIdPatch),
- "PATCH",
- "/account-access-consents/CONSENT_ID",
- "Update Account Access Consent Status by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Data" : {
- "Status" : "Revoked"
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Authorised",
- "StatusUpdateDateTime" : { },
- "CreationDateTime" : { },
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "ConsentId" : "ConsentId",
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Account Access Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val accountAccessConsentsConsentIdPatch : OBPEndpoint = {
- case "account-access-consents" :: consentId :: Nil JsonPatch _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Authorised",
- "StatusUpdateDateTime" : { },
- "CreationDateTime" : { },
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "ConsentId" : "ConsentId",
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountAccessConsentsPost,
- apiVersion,
- nameOf(accountAccessConsentsPost),
- "POST",
- "/account-access-consents",
- "Create Account Access Consents",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Data" : {
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Authorised",
- "StatusUpdateDateTime" : { },
- "CreationDateTime" : { },
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "ConsentId" : "ConsentId",
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Account Access Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val accountAccessConsentsPost : OBPEndpoint = {
- case "account-access-consents" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Authorised",
- "StatusUpdateDateTime" : { },
- "CreationDateTime" : { },
- "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
- "ConsentId" : "ConsentId",
- "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_AccountAccessConsentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountAccessConsentsConsentIdGet ::
+// accountAccessConsentsConsentIdPatch ::
+// accountAccessConsentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountAccessConsentsConsentIdGet,
+// apiVersion,
+// nameOf(accountAccessConsentsConsentIdGet),
+// "GET",
+// "/account-access-consents/CONSENT_ID",
+// "Get Account Access Consents by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : { },
+// "CreationDateTime" : { },
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "ConsentId" : "ConsentId",
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Account Access Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountAccessConsentsConsentIdGet : OBPEndpoint = {
+// case "account-access-consents" :: consentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : { },
+// "CreationDateTime" : { },
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "ConsentId" : "ConsentId",
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountAccessConsentsConsentIdPatch,
+// apiVersion,
+// nameOf(accountAccessConsentsConsentIdPatch),
+// "PATCH",
+// "/account-access-consents/CONSENT_ID",
+// "Update Account Access Consent Status by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Data" : {
+// "Status" : "Revoked"
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : { },
+// "CreationDateTime" : { },
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "ConsentId" : "ConsentId",
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Account Access Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountAccessConsentsConsentIdPatch : OBPEndpoint = {
+// case "account-access-consents" :: consentId :: Nil JsonPatch _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : { },
+// "CreationDateTime" : { },
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "ConsentId" : "ConsentId",
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountAccessConsentsPost,
+// apiVersion,
+// nameOf(accountAccessConsentsPost),
+// "POST",
+// "/account-access-consents",
+// "Create Account Access Consents",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Data" : {
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : { },
+// "CreationDateTime" : { },
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "ConsentId" : "ConsentId",
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Account Access Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountAccessConsentsPost : OBPEndpoint = {
+// case "account-access-consents" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : { },
+// "CreationDateTime" : { },
+// "TransactionToDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Permissions" : [ "ReadAccountsBasic", "ReadAccountsBasic" ],
+// "ConsentId" : "ConsentId",
+// "TransactionFromDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountsApi.scala
index e48bafcf2d..82c95ad57c 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/AccountsApi.scala
@@ -1,148 +1,148 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_AccountsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdGet ::
- accountsGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdGet,
- apiVersion,
- nameOf(accountsAccountIdGet),
- "GET",
- "/accounts/ACCOUNT_ID",
- "Get Account by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Account" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdGet : OBPEndpoint = {
- case "accounts" :: accountId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Account" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsGet,
- apiVersion,
- nameOf(accountsGet),
- "GET",
- "/accounts",
- "Get Accounts",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Account" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Accounts") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsGet : OBPEndpoint = {
- case "accounts" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Account" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_AccountsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdGet ::
+// accountsGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdGet,
+// apiVersion,
+// nameOf(accountsAccountIdGet),
+// "GET",
+// "/accounts/ACCOUNT_ID",
+// "Get Account by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Account" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdGet : OBPEndpoint = {
+// case "accounts" :: accountId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Account" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsGet,
+// apiVersion,
+// nameOf(accountsGet),
+// "GET",
+// "/accounts",
+// "Get Accounts",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Account" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Accounts") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsGet : OBPEndpoint = {
+// case "accounts" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Account" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/ApiCollector.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/ApiCollector.scala
index 5c0148ce2d..bfd6172cab 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/ApiCollector.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/ApiCollector.scala
@@ -1,108 +1,108 @@
-/**
- * Open Bank Project - API
- * Copyright (C) 2011-2022, TESOBE GmbH
- **
- *This program is free software: you can redistribute it and/or modify
- *it under the terms of the GNU Affero General Public License as published by
- *the Free Software Foundation, either version 3 of the License, or
- *(at your option) any later version.
- **
- *This program is distributed in the hope that it will be useful,
- *but WITHOUT ANY WARRANTY; without even the implied warranty of
- *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *GNU Affero General Public License for more details.
- **
- *You should have received a copy of the GNU Affero General Public License
- *along with this program. If not, see .
- **
- *Email: contact@tesobe.com
- *TESOBE Ltd
- *Osloerstrasse 16/17
- *Berlin 13359, Germany
- **
- *This product includes software developed at
- *TESOBE (http://www.tesobe.com/)
- * by
- *Simon Redfern : simon AT tesobe DOT com
- *Stefan Bethge : stefan AT tesobe DOT com
- *Everett Sochowski : everett AT tesobe DOT com
- *Ayoub Benali: ayoub AT tesobe DOT com
- *
- */
-package code.api.BahrainOBF.v1_0_0
-
-import code.api.OBPRestHelper
-import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
-import code.api.util.{ScannedApis}
-import code.util.Helper.MdcLoggable
-import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
-import scala.collection.mutable.ArrayBuffer
-
-
-
-
-/*
-This file defines which endpoints from all the versions are available in v1
- */
-object ApiCollector extends OBPRestHelper with MdcLoggable with ScannedApis {
- override val apiVersion = ApiVersion.bahrainObfV100
- val versionStatus = ApiVersionStatus.DRAFT.toString
-
- private[this] val endpoints =
- APIMethods_DomesticFutureDatedPaymentConsentsApi.endpoints ++
- APIMethods_DomesticFutureDatedPaymentsApi.endpoints ++
- APIMethods_DomesticPaymentsApi.endpoints ++
- APIMethods_DomesticPaymentsConsentsApi.endpoints ++
- APIMethods_FilePaymentConsentsApi.endpoints ++
- APIMethods_FilePaymentsApi.endpoints ++
- APIMethods_InternationalPaymentConsentsApi.endpoints ++
- APIMethods_InternationalPaymentsApi.endpoints ++
- APIMethods_AccountAccessConsentsApi.endpoints ++
- APIMethods_AccountsApi.endpoints ++
- APIMethods_BalancesApi.endpoints ++
- APIMethods_BeneficiariesApi.endpoints ++
- APIMethods_DirectDebitsApi.endpoints ++
- APIMethods_FutureDatedPaymentsApi.endpoints ++
- APIMethods_OffersApi.endpoints ++
- APIMethods_PartiesApi.endpoints ++
- APIMethods_StandingOrdersApi.endpoints ++
- APIMethods_StatementsApi.endpoints ++
- APIMethods_SupplementaryAccountInfoApi.endpoints ++
- APIMethods_TransactionsApi.endpoints ++
- APIMethods_EventNotificationApi.endpoints
-
- override val allResourceDocs: ArrayBuffer[ResourceDoc] =
- APIMethods_DomesticFutureDatedPaymentConsentsApi.resourceDocs ++
- APIMethods_DomesticFutureDatedPaymentsApi.resourceDocs ++
- APIMethods_DomesticPaymentsApi.resourceDocs ++
- APIMethods_DomesticPaymentsConsentsApi.resourceDocs ++
- APIMethods_FilePaymentConsentsApi.resourceDocs ++
- APIMethods_FilePaymentsApi.resourceDocs ++
- APIMethods_InternationalPaymentConsentsApi.resourceDocs ++
- APIMethods_InternationalPaymentsApi.resourceDocs ++
- APIMethods_AccountAccessConsentsApi.resourceDocs ++
- APIMethods_AccountsApi.resourceDocs ++
- APIMethods_BalancesApi.resourceDocs ++
- APIMethods_BeneficiariesApi.resourceDocs ++
- APIMethods_DirectDebitsApi.resourceDocs ++
- APIMethods_FutureDatedPaymentsApi.resourceDocs ++
- APIMethods_OffersApi.resourceDocs ++
- APIMethods_PartiesApi.resourceDocs ++
- APIMethods_StandingOrdersApi.resourceDocs ++
- APIMethods_StatementsApi.resourceDocs ++
- APIMethods_SupplementaryAccountInfoApi.resourceDocs ++
- APIMethods_TransactionsApi.resourceDocs ++
- APIMethods_EventNotificationApi.resourceDocs
-
- private[this] def findResourceDoc(pf: OBPEndpoint): Option[ResourceDoc] = {
- allResourceDocs.find(_.partialFunction==pf)
- }
-
- // Filter the possible endpoints by the disabled / enabled Props settings and add them together
- override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
-
- // Make them available for use!
- registerRoutes(routes, allResourceDocs, apiPrefix)
-
- logger.info(s"version $version has been run! There are ${routes.length} routes.")
-}
+///**
+// * Open Bank Project - API
+// * Copyright (C) 2011-2022, TESOBE GmbH
+// **
+// *This program is free software: you can redistribute it and/or modify
+// *it under the terms of the GNU Affero General Public License as published by
+// *the Free Software Foundation, either version 3 of the License, or
+// *(at your option) any later version.
+// **
+// *This program is distributed in the hope that it will be useful,
+// *but WITHOUT ANY WARRANTY; without even the implied warranty of
+// *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// *GNU Affero General Public License for more details.
+// **
+// *You should have received a copy of the GNU Affero General Public License
+// *along with this program. If not, see .
+// **
+// *Email: contact@tesobe.com
+// *TESOBE Ltd
+// *Osloerstrasse 16/17
+// *Berlin 13359, Germany
+// **
+// *This product includes software developed at
+// *TESOBE (http://www.tesobe.com/)
+// * by
+// *Simon Redfern : simon AT tesobe DOT com
+// *Stefan Bethge : stefan AT tesobe DOT com
+// *Everett Sochowski : everett AT tesobe DOT com
+// *Ayoub Benali: ayoub AT tesobe DOT com
+// *
+// */
+//package code.api.BahrainOBF.v1_0_0
+//
+//import code.api.OBPRestHelper
+//import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
+//import code.api.util.{ScannedApis}
+//import code.util.Helper.MdcLoggable
+//import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
+//import scala.collection.mutable.ArrayBuffer
+//
+//
+//
+//
+///*
+//This file defines which endpoints from all the versions are available in v1
+// */
+//object ApiCollector extends OBPRestHelper with MdcLoggable with ScannedApis {
+// override val apiVersion = ApiVersion.bahrainObfV100
+// val versionStatus = ApiVersionStatus.DRAFT.toString
+//
+// private[this] val endpoints =
+// APIMethods_DomesticFutureDatedPaymentConsentsApi.endpoints ++
+// APIMethods_DomesticFutureDatedPaymentsApi.endpoints ++
+// APIMethods_DomesticPaymentsApi.endpoints ++
+// APIMethods_DomesticPaymentsConsentsApi.endpoints ++
+// APIMethods_FilePaymentConsentsApi.endpoints ++
+// APIMethods_FilePaymentsApi.endpoints ++
+// APIMethods_InternationalPaymentConsentsApi.endpoints ++
+// APIMethods_InternationalPaymentsApi.endpoints ++
+// APIMethods_AccountAccessConsentsApi.endpoints ++
+// APIMethods_AccountsApi.endpoints ++
+// APIMethods_BalancesApi.endpoints ++
+// APIMethods_BeneficiariesApi.endpoints ++
+// APIMethods_DirectDebitsApi.endpoints ++
+// APIMethods_FutureDatedPaymentsApi.endpoints ++
+// APIMethods_OffersApi.endpoints ++
+// APIMethods_PartiesApi.endpoints ++
+// APIMethods_StandingOrdersApi.endpoints ++
+// APIMethods_StatementsApi.endpoints ++
+// APIMethods_SupplementaryAccountInfoApi.endpoints ++
+// APIMethods_TransactionsApi.endpoints ++
+// APIMethods_EventNotificationApi.endpoints
+//
+// override val allResourceDocs: ArrayBuffer[ResourceDoc] =
+// APIMethods_DomesticFutureDatedPaymentConsentsApi.resourceDocs ++
+// APIMethods_DomesticFutureDatedPaymentsApi.resourceDocs ++
+// APIMethods_DomesticPaymentsApi.resourceDocs ++
+// APIMethods_DomesticPaymentsConsentsApi.resourceDocs ++
+// APIMethods_FilePaymentConsentsApi.resourceDocs ++
+// APIMethods_FilePaymentsApi.resourceDocs ++
+// APIMethods_InternationalPaymentConsentsApi.resourceDocs ++
+// APIMethods_InternationalPaymentsApi.resourceDocs ++
+// APIMethods_AccountAccessConsentsApi.resourceDocs ++
+// APIMethods_AccountsApi.resourceDocs ++
+// APIMethods_BalancesApi.resourceDocs ++
+// APIMethods_BeneficiariesApi.resourceDocs ++
+// APIMethods_DirectDebitsApi.resourceDocs ++
+// APIMethods_FutureDatedPaymentsApi.resourceDocs ++
+// APIMethods_OffersApi.resourceDocs ++
+// APIMethods_PartiesApi.resourceDocs ++
+// APIMethods_StandingOrdersApi.resourceDocs ++
+// APIMethods_StatementsApi.resourceDocs ++
+// APIMethods_SupplementaryAccountInfoApi.resourceDocs ++
+// APIMethods_TransactionsApi.resourceDocs ++
+// APIMethods_EventNotificationApi.resourceDocs
+//
+// private[this] def findResourceDoc(pf: OBPEndpoint): Option[ResourceDoc] = {
+// allResourceDocs.find(_.partialFunction==pf)
+// }
+//
+// // Filter the possible endpoints by the disabled / enabled Props settings and add them together
+// override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
+//
+// // Make them available for use!
+// registerRoutes(routes, allResourceDocs, apiPrefix)
+//
+// logger.info(s"version $version has been run! There are ${routes.length} routes.")
+//}
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BalancesApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BalancesApi.scala
index 39bf856d39..abb7f866b5 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BalancesApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BalancesApi.scala
@@ -1,292 +1,292 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_BalancesApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdBalancesGet ::
- balancesGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdBalancesGet,
- apiVersion,
- nameOf(accountsAccountIdBalancesGet),
- "GET",
- "/accounts/ACCOUNT_ID/balances",
- "Get Accounts Balances by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Balance" : [ {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- }, {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Balances") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdBalancesGet : OBPEndpoint = {
- case "accounts" :: accountId:: "balances" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Balance" : [ {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- }, {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- balancesGet,
- apiVersion,
- nameOf(balancesGet),
- "GET",
- "/balances",
- "Get Balances",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Balance" : [ {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- }, {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Balances") :: apiTagMockedData :: Nil
- )
-
- lazy val balancesGet : OBPEndpoint = {
- case "balances" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Balance" : [ {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- }, {
- "Type" : { },
- "AccountId" : { },
- "CreditLine" : [ {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- }, {
- "Type" : "Available",
- "Amount" : { },
- "Included" : true
- } ],
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "CreditDebitIndicator" : { },
- "DateTime" : "2000-01-23T04:56:07.000+00:00"
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_BalancesApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdBalancesGet ::
+// balancesGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdBalancesGet,
+// apiVersion,
+// nameOf(accountsAccountIdBalancesGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/balances",
+// "Get Accounts Balances by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Balance" : [ {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// }, {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Balances") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdBalancesGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "balances" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Balance" : [ {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// }, {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// balancesGet,
+// apiVersion,
+// nameOf(balancesGet),
+// "GET",
+// "/balances",
+// "Get Balances",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Balance" : [ {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// }, {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Balances") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val balancesGet : OBPEndpoint = {
+// case "balances" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Balance" : [ {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// }, {
+// "Type" : { },
+// "AccountId" : { },
+// "CreditLine" : [ {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// }, {
+// "Type" : "Available",
+// "Amount" : { },
+// "Included" : true
+// } ],
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "CreditDebitIndicator" : { },
+// "DateTime" : "2000-01-23T04:56:07.000+00:00"
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BeneficiariesApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BeneficiariesApi.scala
index 9a0f9aceed..3335c78f22 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BeneficiariesApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/BeneficiariesApi.scala
@@ -1,148 +1,148 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_BeneficiariesApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdBeneficiariesGet ::
- beneficiariesGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdBeneficiariesGet,
- apiVersion,
- nameOf(accountsAccountIdBeneficiariesGet),
- "GET",
- "/accounts/ACCOUNT_ID/beneficiaries",
- "Get Accounts Beneficiaries by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Beneficiary" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Beneficiaries") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdBeneficiariesGet : OBPEndpoint = {
- case "accounts" :: accountId:: "beneficiaries" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Beneficiary" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- beneficiariesGet,
- apiVersion,
- nameOf(beneficiariesGet),
- "GET",
- "/beneficiaries",
- "Get Beneficiaries",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Beneficiary" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Beneficiaries") :: apiTagMockedData :: Nil
- )
-
- lazy val beneficiariesGet : OBPEndpoint = {
- case "beneficiaries" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Beneficiary" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_BeneficiariesApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdBeneficiariesGet ::
+// beneficiariesGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdBeneficiariesGet,
+// apiVersion,
+// nameOf(accountsAccountIdBeneficiariesGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/beneficiaries",
+// "Get Accounts Beneficiaries by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Beneficiary" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Beneficiaries") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdBeneficiariesGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "beneficiaries" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Beneficiary" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// beneficiariesGet,
+// apiVersion,
+// nameOf(beneficiariesGet),
+// "GET",
+// "/beneficiaries",
+// "Get Beneficiaries",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Beneficiary" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Beneficiaries") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val beneficiariesGet : OBPEndpoint = {
+// case "beneficiaries" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Beneficiary" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DirectDebitsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DirectDebitsApi.scala
index 5fdc57f2b5..767b4c23e4 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DirectDebitsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DirectDebitsApi.scala
@@ -1,252 +1,252 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_DirectDebitsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdDirectDebitsGet ::
- directDebitsGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdDirectDebitsGet,
- apiVersion,
- nameOf(accountsAccountIdDirectDebitsGet),
- "GET",
- "/accounts/ACCOUNT_ID/direct-debits",
- "Get Accounts Direct Debits by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DirectDebit" : [ {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- }, {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdDirectDebitsGet : OBPEndpoint = {
- case "accounts" :: accountId:: "direct-debits" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DirectDebit" : [ {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- }, {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- directDebitsGet,
- apiVersion,
- nameOf(directDebitsGet),
- "GET",
- "/direct-debits",
- "Get Direct Debits",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DirectDebit" : [ {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- }, {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Direct Debits") :: apiTagMockedData :: Nil
- )
-
- lazy val directDebitsGet : OBPEndpoint = {
- case "direct-debits" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DirectDebit" : [ {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- }, {
- "SupplementaryData" : { },
- "PreviousPaymentDateTime" : { },
- "AccountId" : { },
- "MandateIdentification" : { },
- "DirectDebitStatusCode" : { },
- "Frequency" : "Frequency",
- "DirectDebitId" : { },
- "PreviousPaymentAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Name" : { }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_DirectDebitsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdDirectDebitsGet ::
+// directDebitsGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdDirectDebitsGet,
+// apiVersion,
+// nameOf(accountsAccountIdDirectDebitsGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/direct-debits",
+// "Get Accounts Direct Debits by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DirectDebit" : [ {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// }, {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdDirectDebitsGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "direct-debits" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DirectDebit" : [ {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// }, {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// directDebitsGet,
+// apiVersion,
+// nameOf(directDebitsGet),
+// "GET",
+// "/direct-debits",
+// "Get Direct Debits",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DirectDebit" : [ {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// }, {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Direct Debits") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val directDebitsGet : OBPEndpoint = {
+// case "direct-debits" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DirectDebit" : [ {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// }, {
+// "SupplementaryData" : { },
+// "PreviousPaymentDateTime" : { },
+// "AccountId" : { },
+// "MandateIdentification" : { },
+// "DirectDebitStatusCode" : { },
+// "Frequency" : "Frequency",
+// "DirectDebitId" : { },
+// "PreviousPaymentAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Name" : { }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentConsentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentConsentsApi.scala
index 182976b65b..663a4524f4 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentConsentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentConsentsApi.scala
@@ -1,682 +1,682 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_DomesticFutureDatedPaymentConsentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- domesticFutureDatedPaymentCancellationConsentsConsentIdGet ::
- domesticFutureDatedPaymentCancellationConsentsPost ::
- domesticFutureDatedPaymentConsentsConsentIdGet ::
- domesticFutureDatedPaymentConsentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentCancellationConsentsConsentIdGet,
- apiVersion,
- nameOf(domesticFutureDatedPaymentCancellationConsentsConsentIdGet),
- "GET",
- "/domestic-future-dated-payment-cancellation-consents/CONSENT_ID",
- "Get Domestic Future Dated Payment Cancellation Consents by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Data" : {
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentCancellationConsentsConsentIdGet : OBPEndpoint = {
- case "domestic-future-dated-payment-cancellation-consents" :: consentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Data" : {
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentCancellationConsentsPost,
- apiVersion,
- nameOf(domesticFutureDatedPaymentCancellationConsentsPost),
- "POST",
- "/domestic-future-dated-payment-cancellation-consents",
- "Create Domestic Future Dated Payment Cancellation Consents",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Data" : {
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Permission" : "Create",
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- json.parse("""{
- "Data" : {
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentCancellationConsentsPost : OBPEndpoint = {
- case "domestic-future-dated-payment-cancellation-consents" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Data" : {
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentConsentsConsentIdGet,
- apiVersion,
- nameOf(domesticFutureDatedPaymentConsentsConsentIdGet),
- "GET",
- "/domestic-future-dated-payment-consents/CONSENT_ID",
- "Get Domestic Future Dated Payment Consents by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentConsentsConsentIdGet : OBPEndpoint = {
- case "domestic-future-dated-payment-consents" :: consentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentConsentsPost,
- apiVersion,
- nameOf(domesticFutureDatedPaymentConsentsPost),
- "POST",
- "/domestic-future-dated-payment-consents",
- "Create Domestic Future Dated Payment Consents",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Permission" : "Create",
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentConsentsPost : OBPEndpoint = {
- case "domestic-future-dated-payment-consents" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Permission" : "Create",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_DomesticFutureDatedPaymentConsentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// domesticFutureDatedPaymentCancellationConsentsConsentIdGet ::
+// domesticFutureDatedPaymentCancellationConsentsPost ::
+// domesticFutureDatedPaymentConsentsConsentIdGet ::
+// domesticFutureDatedPaymentConsentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentCancellationConsentsConsentIdGet,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentCancellationConsentsConsentIdGet),
+// "GET",
+// "/domestic-future-dated-payment-cancellation-consents/CONSENT_ID",
+// "Get Domestic Future Dated Payment Cancellation Consents by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Data" : {
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentCancellationConsentsConsentIdGet : OBPEndpoint = {
+// case "domestic-future-dated-payment-cancellation-consents" :: consentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Data" : {
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentCancellationConsentsPost,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentCancellationConsentsPost),
+// "POST",
+// "/domestic-future-dated-payment-cancellation-consents",
+// "Create Domestic Future Dated Payment Cancellation Consents",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Data" : {
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Permission" : "Create",
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// json.parse("""{
+// "Data" : {
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentCancellationConsentsPost : OBPEndpoint = {
+// case "domestic-future-dated-payment-cancellation-consents" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Data" : {
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentConsentsConsentIdGet,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentConsentsConsentIdGet),
+// "GET",
+// "/domestic-future-dated-payment-consents/CONSENT_ID",
+// "Get Domestic Future Dated Payment Consents by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentConsentsConsentIdGet : OBPEndpoint = {
+// case "domestic-future-dated-payment-consents" :: consentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentConsentsPost,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentConsentsPost),
+// "POST",
+// "/domestic-future-dated-payment-consents",
+// "Create Domestic Future Dated Payment Consents",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Permission" : "Create",
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentConsentsPost : OBPEndpoint = {
+// case "domestic-future-dated-payment-consents" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Permission" : "Create",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentsApi.scala
index 24799c52ac..1dd76717c0 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticFutureDatedPaymentsApi.scala
@@ -1,754 +1,754 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_DomesticFutureDatedPaymentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet ::
- domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch ::
- domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet ::
- domesticFutureDatedPaymentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet,
- apiVersion,
- nameOf(domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet),
- "GET",
- "/domestic-future-dated-payments/DOMESTIC_FUTURE_DATED_PAYMENT_ID",
- "Get Domestic Future Dated Payments by DomesticFutureDatedPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Cancelled",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet : OBPEndpoint = {
- case "domestic-future-dated-payments" :: domesticFutureDatedPaymentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Cancelled",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch,
- apiVersion,
- nameOf(domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch),
- "PATCH",
- "/domestic-future-dated-payments/DOMESTIC_FUTURE_DATED_PAYMENT_ID",
- "Patch Domestic Future Dated Payments by DomesticFutureDatedPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Data" : {
- "Status" : "RejectedCancellationRequest",
- "ConsentId" : "ConsentId"
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Cancelled",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch : OBPEndpoint = {
- case "domestic-future-dated-payments" :: domesticFutureDatedPaymentId :: Nil JsonPatch _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Cancelled",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet,
- apiVersion,
- nameOf(domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet),
- "GET",
- "/domestic-future-dated-payments/DOMESTIC_FUTURE_DATED_PAYMENT_ID/payment-details",
- "Get Domestic Future Dated Payment Details by DomesticFutureDatedPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet : OBPEndpoint = {
- case "domestic-future-dated-payments" :: domesticFutureDatedPaymentId:: "payment-details" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticFutureDatedPaymentsPost,
- apiVersion,
- nameOf(domesticFutureDatedPaymentsPost),
- "POST",
- "/domestic-future-dated-payments",
- "Create Domestic Future Dated Payments",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Cancelled",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticFutureDatedPaymentsPost : OBPEndpoint = {
- case "domestic-future-dated-payments" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "Cancelled",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_DomesticFutureDatedPaymentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet ::
+// domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch ::
+// domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet ::
+// domesticFutureDatedPaymentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet),
+// "GET",
+// "/domestic-future-dated-payments/DOMESTIC_FUTURE_DATED_PAYMENT_ID",
+// "Get Domestic Future Dated Payments by DomesticFutureDatedPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Cancelled",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdGet : OBPEndpoint = {
+// case "domestic-future-dated-payments" :: domesticFutureDatedPaymentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Cancelled",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch),
+// "PATCH",
+// "/domestic-future-dated-payments/DOMESTIC_FUTURE_DATED_PAYMENT_ID",
+// "Patch Domestic Future Dated Payments by DomesticFutureDatedPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Data" : {
+// "Status" : "RejectedCancellationRequest",
+// "ConsentId" : "ConsentId"
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Cancelled",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPatch : OBPEndpoint = {
+// case "domestic-future-dated-payments" :: domesticFutureDatedPaymentId :: Nil JsonPatch _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Cancelled",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet),
+// "GET",
+// "/domestic-future-dated-payments/DOMESTIC_FUTURE_DATED_PAYMENT_ID/payment-details",
+// "Get Domestic Future Dated Payment Details by DomesticFutureDatedPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentsDomesticFutureDatedPaymentIdPaymentDetailsGet : OBPEndpoint = {
+// case "domestic-future-dated-payments" :: domesticFutureDatedPaymentId:: "payment-details" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticFutureDatedPaymentsPost,
+// apiVersion,
+// nameOf(domesticFutureDatedPaymentsPost),
+// "POST",
+// "/domestic-future-dated-payments",
+// "Create Domestic Future Dated Payments",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Cancelled",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Future Dated Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticFutureDatedPaymentsPost : OBPEndpoint = {
+// case "domestic-future-dated-payments" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "Cancelled",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "DomesticFutureDatedPaymentId" : "DomesticFutureDatedPaymentId",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsApi.scala
index 26b4ec4bed..035f182108 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsApi.scala
@@ -1,554 +1,554 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_DomesticPaymentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- domesticPaymentsDomesticPaymentIdGet ::
- domesticPaymentsDomesticPaymentIdPaymentDetailsGet ::
- domesticPaymentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- domesticPaymentsDomesticPaymentIdGet,
- apiVersion,
- nameOf(domesticPaymentsDomesticPaymentIdGet),
- "GET",
- "/domestic-payments/DOMESTIC_PAYMENT_ID",
- "Get Domestic Payments by DomesticPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DomesticPaymentId" : "DomesticPaymentId",
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticPaymentsDomesticPaymentIdGet : OBPEndpoint = {
- case "domestic-payments" :: domesticPaymentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DomesticPaymentId" : "DomesticPaymentId",
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticPaymentsDomesticPaymentIdPaymentDetailsGet,
- apiVersion,
- nameOf(domesticPaymentsDomesticPaymentIdPaymentDetailsGet),
- "GET",
- "/domestic-payments/DOMESTIC_PAYMENT_ID/payment-details",
- "Get Domestic Payment details by DomesticPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticPaymentsDomesticPaymentIdPaymentDetailsGet : OBPEndpoint = {
- case "domestic-payments" :: domesticPaymentId:: "payment-details" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticPaymentsPost,
- apiVersion,
- nameOf(domesticPaymentsPost),
- "POST",
- "/domestic-payments",
- "Create Domestic Payments",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DomesticPaymentId" : "DomesticPaymentId",
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticPaymentsPost : OBPEndpoint = {
- case "domestic-payments" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "DomesticPaymentId" : "DomesticPaymentId",
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_DomesticPaymentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// domesticPaymentsDomesticPaymentIdGet ::
+// domesticPaymentsDomesticPaymentIdPaymentDetailsGet ::
+// domesticPaymentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// domesticPaymentsDomesticPaymentIdGet,
+// apiVersion,
+// nameOf(domesticPaymentsDomesticPaymentIdGet),
+// "GET",
+// "/domestic-payments/DOMESTIC_PAYMENT_ID",
+// "Get Domestic Payments by DomesticPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DomesticPaymentId" : "DomesticPaymentId",
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticPaymentsDomesticPaymentIdGet : OBPEndpoint = {
+// case "domestic-payments" :: domesticPaymentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DomesticPaymentId" : "DomesticPaymentId",
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticPaymentsDomesticPaymentIdPaymentDetailsGet,
+// apiVersion,
+// nameOf(domesticPaymentsDomesticPaymentIdPaymentDetailsGet),
+// "GET",
+// "/domestic-payments/DOMESTIC_PAYMENT_ID/payment-details",
+// "Get Domestic Payment details by DomesticPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticPaymentsDomesticPaymentIdPaymentDetailsGet : OBPEndpoint = {
+// case "domestic-payments" :: domesticPaymentId:: "payment-details" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticPaymentsPost,
+// apiVersion,
+// nameOf(domesticPaymentsPost),
+// "POST",
+// "/domestic-payments",
+// "Create Domestic Payments",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DomesticPaymentId" : "DomesticPaymentId",
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticPaymentsPost : OBPEndpoint = {
+// case "domestic-payments" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "DomesticPaymentId" : "DomesticPaymentId",
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsConsentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsConsentsApi.scala
index 9a6c8dbe09..cb74deaee2 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsConsentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/DomesticPaymentsConsentsApi.scala
@@ -1,583 +1,583 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_DomesticPaymentsConsentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- domesticPaymentConsentsConsentIdFundsConfirmationGet ::
- domesticPaymentConsentsConsentIdGet ::
- domesticPaymentConsentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- domesticPaymentConsentsConsentIdFundsConfirmationGet,
- apiVersion,
- nameOf(domesticPaymentConsentsConsentIdFundsConfirmationGet),
- "GET",
- "/domestic-payment-consents/CONSENT_ID/funds-confirmation",
- "Get Domestic Payment Consents Funds Confirmation by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SupplementaryData" : { },
- "FundsAvailableResult" : {
- "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
- "FundsAvailable" : true
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Payments Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticPaymentConsentsConsentIdFundsConfirmationGet : OBPEndpoint = {
- case "domestic-payment-consents" :: consentId:: "funds-confirmation" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SupplementaryData" : { },
- "FundsAvailableResult" : {
- "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
- "FundsAvailable" : true
- }
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticPaymentConsentsConsentIdGet,
- apiVersion,
- nameOf(domesticPaymentConsentsConsentIdGet),
- "GET",
- "/domestic-payment-consents/CONSENT_ID",
- "Get Domestic Payment Consents by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Payments Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticPaymentConsentsConsentIdGet : OBPEndpoint = {
- case "domestic-payment-consents" :: consentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domesticPaymentConsentsPost,
- apiVersion,
- nameOf(domesticPaymentConsentsPost),
- "POST",
- "/domestic-payment-consents",
- "Create Domestic Payment Consents",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Domestic Payments Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val domesticPaymentConsentsPost : OBPEndpoint = {
- case "domestic-payment-consents" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "CreditorPostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_DomesticPaymentsConsentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// domesticPaymentConsentsConsentIdFundsConfirmationGet ::
+// domesticPaymentConsentsConsentIdGet ::
+// domesticPaymentConsentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// domesticPaymentConsentsConsentIdFundsConfirmationGet,
+// apiVersion,
+// nameOf(domesticPaymentConsentsConsentIdFundsConfirmationGet),
+// "GET",
+// "/domestic-payment-consents/CONSENT_ID/funds-confirmation",
+// "Get Domestic Payment Consents Funds Confirmation by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SupplementaryData" : { },
+// "FundsAvailableResult" : {
+// "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "FundsAvailable" : true
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Payments Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticPaymentConsentsConsentIdFundsConfirmationGet : OBPEndpoint = {
+// case "domestic-payment-consents" :: consentId:: "funds-confirmation" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SupplementaryData" : { },
+// "FundsAvailableResult" : {
+// "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "FundsAvailable" : true
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticPaymentConsentsConsentIdGet,
+// apiVersion,
+// nameOf(domesticPaymentConsentsConsentIdGet),
+// "GET",
+// "/domestic-payment-consents/CONSENT_ID",
+// "Get Domestic Payment Consents by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Payments Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticPaymentConsentsConsentIdGet : OBPEndpoint = {
+// case "domestic-payment-consents" :: consentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domesticPaymentConsentsPost,
+// apiVersion,
+// nameOf(domesticPaymentConsentsPost),
+// "POST",
+// "/domestic-payment-consents",
+// "Create Domestic Payment Consents",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Domestic Payments Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domesticPaymentConsentsPost : OBPEndpoint = {
+// case "domestic-payment-consents" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "CreditorPostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/EventNotificationApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/EventNotificationApi.scala
index 3045884ef6..45be040fe7 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/EventNotificationApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/EventNotificationApi.scala
@@ -1,115 +1,115 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import code.api.util.FutureUtil.EndpointContext
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_EventNotificationApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- eventNotificationsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- eventNotificationsPost,
- apiVersion,
- nameOf(eventNotificationsPost),
- "POST",
- "/event-notifications",
- "The ASPSP to send an event-notification resource to a TPP",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "aud" : "aud",
- "sub" : "http://example.com/aeiou",
- "iss" : "iss",
- "toe" : 0,
- "txn" : "txn",
- "iat" : 0,
- "events" : {
- "urn:bh:org:openbanking:events:resource-update" : {
- "subject" : {
- "http://openbanking.org.bh/rty" : "http://openbanking.org.bh/rty",
- "subject_type" : "subject_type",
- "http://openbanking.org.bh/rlk" : [ {
- "link" : "link",
- "version" : "version"
- }, {
- "link" : "link",
- "version" : "version"
- } ],
- "http://openbanking.org.bh/rid" : "http://openbanking.org.bh/rid"
- }
- },
- "urn:bh:org:openbanking:events:account-access-consent-linked-account-update" : {
- "reason" : "reason",
- "subject" : {
- "http://openbanking.org.bh/rty" : "http://openbanking.org.bh/rty",
- "subject_type" : "subject_type",
- "http://openbanking.org.bh/rlk" : [ {
- "link" : "link",
- "version" : "version"
- }, {
- "link" : "link",
- "version" : "version"
- } ],
- "http://openbanking.org.bh/rid" : "http://openbanking.org.bh/rid"
- }
- },
- "urn:bh:org:openbanking:events:consent-authorization-revoked" : {
- "reason" : "reason",
- "subject" : {
- "http://openbanking.org.bh/rty" : "http://openbanking.org.bh/rty",
- "subject_type" : "subject_type",
- "http://openbanking.org.bh/rlk" : [ {
- "link" : "link",
- "version" : "version"
- }, {
- "link" : "link",
- "version" : "version"
- } ],
- "http://openbanking.org.bh/rid" : "http://openbanking.org.bh/rid"
- }
- }
- },
- "jti" : "jti"
-}"""),
- json.parse(""""""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Event Notification") :: apiTagMockedData :: Nil
- )
-
- lazy val eventNotificationsPost : OBPEndpoint = {
- case "event-notifications" :: Nil JsonPost _ => {
- cc => implicit val ec = EndpointContext(Some(cc))
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse(""""""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import code.api.util.FutureUtil.EndpointContext
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_EventNotificationApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// eventNotificationsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// eventNotificationsPost,
+// apiVersion,
+// nameOf(eventNotificationsPost),
+// "POST",
+// "/event-notifications",
+// "The ASPSP to send an event-notification resource to a TPP",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "aud" : "aud",
+// "sub" : "http://example.com/aeiou",
+// "iss" : "iss",
+// "toe" : 0,
+// "txn" : "txn",
+// "iat" : 0,
+// "events" : {
+// "urn:bh:org:openbanking:events:resource-update" : {
+// "subject" : {
+// "http://openbanking.org.bh/rty" : "http://openbanking.org.bh/rty",
+// "subject_type" : "subject_type",
+// "http://openbanking.org.bh/rlk" : [ {
+// "link" : "link",
+// "version" : "version"
+// }, {
+// "link" : "link",
+// "version" : "version"
+// } ],
+// "http://openbanking.org.bh/rid" : "http://openbanking.org.bh/rid"
+// }
+// },
+// "urn:bh:org:openbanking:events:account-access-consent-linked-account-update" : {
+// "reason" : "reason",
+// "subject" : {
+// "http://openbanking.org.bh/rty" : "http://openbanking.org.bh/rty",
+// "subject_type" : "subject_type",
+// "http://openbanking.org.bh/rlk" : [ {
+// "link" : "link",
+// "version" : "version"
+// }, {
+// "link" : "link",
+// "version" : "version"
+// } ],
+// "http://openbanking.org.bh/rid" : "http://openbanking.org.bh/rid"
+// }
+// },
+// "urn:bh:org:openbanking:events:consent-authorization-revoked" : {
+// "reason" : "reason",
+// "subject" : {
+// "http://openbanking.org.bh/rty" : "http://openbanking.org.bh/rty",
+// "subject_type" : "subject_type",
+// "http://openbanking.org.bh/rlk" : [ {
+// "link" : "link",
+// "version" : "version"
+// }, {
+// "link" : "link",
+// "version" : "version"
+// } ],
+// "http://openbanking.org.bh/rid" : "http://openbanking.org.bh/rid"
+// }
+// }
+// },
+// "jti" : "jti"
+//}"""),
+// json.parse(""""""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Event Notification") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val eventNotificationsPost : OBPEndpoint = {
+// case "event-notifications" :: Nil JsonPost _ => {
+// cc => implicit val ec = EndpointContext(Some(cc))
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse(""""""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentConsentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentConsentsApi.scala
index 38e2ee641e..318bb40079 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentConsentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentConsentsApi.scala
@@ -1,425 +1,425 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_FilePaymentConsentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- filePaymentConsentsConsentIdFileGet ::
- filePaymentConsentsConsentIdFilePost ::
- filePaymentConsentsConsentIdGet ::
- filePaymentConsentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- filePaymentConsentsConsentIdFileGet,
- apiVersion,
- nameOf(filePaymentConsentsConsentIdFileGet),
- "GET",
- "/file-payment-consents/CONSENT_ID/file",
- "Get File Payment Consents File by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{ }"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentConsentsConsentIdFileGet : OBPEndpoint = {
- case "file-payment-consents" :: consentId:: "file" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{ }"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- filePaymentConsentsConsentIdFilePost,
- apiVersion,
- nameOf(filePaymentConsentsConsentIdFilePost),
- "POST",
- "/file-payment-consents/CONSENT_ID/file",
- "Create File Payment Consents File by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{ }"""),
- json.parse(""""""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentConsentsConsentIdFilePost : OBPEndpoint = {
- case "file-payment-consents" :: consentId:: "file" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse(""""""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- filePaymentConsentsConsentIdGet,
- apiVersion,
- nameOf(filePaymentConsentsConsentIdGet),
- "GET",
- "/file-payment-consents/CONSENT_ID",
- "Get File Payment Consents by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Status" : "Authorised",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentConsentsConsentIdGet : OBPEndpoint = {
- case "file-payment-consents" :: consentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Status" : "Authorised",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- filePaymentConsentsPost,
- apiVersion,
- nameOf(filePaymentConsentsPost),
- "POST",
- "/file-payment-consents",
- "Create File Payment Consents",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Status" : "Authorised",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentConsentsPost : OBPEndpoint = {
- case "file-payment-consents" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Status" : "Authorised",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_FilePaymentConsentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// filePaymentConsentsConsentIdFileGet ::
+// filePaymentConsentsConsentIdFilePost ::
+// filePaymentConsentsConsentIdGet ::
+// filePaymentConsentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// filePaymentConsentsConsentIdFileGet,
+// apiVersion,
+// nameOf(filePaymentConsentsConsentIdFileGet),
+// "GET",
+// "/file-payment-consents/CONSENT_ID/file",
+// "Get File Payment Consents File by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{ }"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentConsentsConsentIdFileGet : OBPEndpoint = {
+// case "file-payment-consents" :: consentId:: "file" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{ }"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// filePaymentConsentsConsentIdFilePost,
+// apiVersion,
+// nameOf(filePaymentConsentsConsentIdFilePost),
+// "POST",
+// "/file-payment-consents/CONSENT_ID/file",
+// "Create File Payment Consents File by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{ }"""),
+// json.parse(""""""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentConsentsConsentIdFilePost : OBPEndpoint = {
+// case "file-payment-consents" :: consentId:: "file" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse(""""""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// filePaymentConsentsConsentIdGet,
+// apiVersion,
+// nameOf(filePaymentConsentsConsentIdGet),
+// "GET",
+// "/file-payment-consents/CONSENT_ID",
+// "Get File Payment Consents by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentConsentsConsentIdGet : OBPEndpoint = {
+// case "file-payment-consents" :: consentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// filePaymentConsentsPost,
+// apiVersion,
+// nameOf(filePaymentConsentsPost),
+// "POST",
+// "/file-payment-consents",
+// "Create File Payment Consents",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentConsentsPost : OBPEndpoint = {
+// case "file-payment-consents" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Status" : "Authorised",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentsApi.scala
index 1c2a026a04..3593733924 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FilePaymentsApi.scala
@@ -1,451 +1,451 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_FilePaymentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- filePaymentsFilePaymentIdGet ::
- filePaymentsFilePaymentIdPaymentDetailsGet ::
- filePaymentsFilePaymentIdReportFileGet ::
- filePaymentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- filePaymentsFilePaymentIdGet,
- apiVersion,
- nameOf(filePaymentsFilePaymentIdGet),
- "GET",
- "/file-payments/FILE_PAYMENT_ID",
- "Get File Payments by FilePaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "InitiationCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "FilePaymentId" : "FilePaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentsFilePaymentIdGet : OBPEndpoint = {
- case "file-payments" :: filePaymentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "InitiationCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "FilePaymentId" : "FilePaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- filePaymentsFilePaymentIdPaymentDetailsGet,
- apiVersion,
- nameOf(filePaymentsFilePaymentIdPaymentDetailsGet),
- "GET",
- "/file-payments/FILE_PAYMENT_ID/payment-details",
- "Get File Payment Details by FilePaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentsFilePaymentIdPaymentDetailsGet : OBPEndpoint = {
- case "file-payments" :: filePaymentId:: "payment-details" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- filePaymentsFilePaymentIdReportFileGet,
- apiVersion,
- nameOf(filePaymentsFilePaymentIdReportFileGet),
- "GET",
- "/file-payments/FILE_PAYMENT_ID/report-file",
- "Get File Payments Report File by FilePaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{ }"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentsFilePaymentIdReportFileGet : OBPEndpoint = {
- case "file-payments" :: filePaymentId:: "report-file" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{ }"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- filePaymentsPost,
- apiVersion,
- nameOf(filePaymentsPost),
- "POST",
- "/file-payments",
- "Create File Payments",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Data" : {
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "InitiationCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "FilePaymentId" : "FilePaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("File Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val filePaymentsPost : OBPEndpoint = {
- case "file-payments" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "InitiationCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "FilePaymentId" : "FilePaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "FileContextFormat" : "FileContextFormat",
- "SupplementaryData" : { },
- "ControlSum" : 0.80082819046101150206595775671303272247314453125,
- "LocalInstrument" : { },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "FileHash" : "FileHash",
- "NumberOfTransactions" : "NumberOfTransactions",
- "FileReference" : "FileReference",
- "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_FilePaymentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// filePaymentsFilePaymentIdGet ::
+// filePaymentsFilePaymentIdPaymentDetailsGet ::
+// filePaymentsFilePaymentIdReportFileGet ::
+// filePaymentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// filePaymentsFilePaymentIdGet,
+// apiVersion,
+// nameOf(filePaymentsFilePaymentIdGet),
+// "GET",
+// "/file-payments/FILE_PAYMENT_ID",
+// "Get File Payments by FilePaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "InitiationCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "FilePaymentId" : "FilePaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentsFilePaymentIdGet : OBPEndpoint = {
+// case "file-payments" :: filePaymentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "InitiationCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "FilePaymentId" : "FilePaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// filePaymentsFilePaymentIdPaymentDetailsGet,
+// apiVersion,
+// nameOf(filePaymentsFilePaymentIdPaymentDetailsGet),
+// "GET",
+// "/file-payments/FILE_PAYMENT_ID/payment-details",
+// "Get File Payment Details by FilePaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentsFilePaymentIdPaymentDetailsGet : OBPEndpoint = {
+// case "file-payments" :: filePaymentId:: "payment-details" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// filePaymentsFilePaymentIdReportFileGet,
+// apiVersion,
+// nameOf(filePaymentsFilePaymentIdReportFileGet),
+// "GET",
+// "/file-payments/FILE_PAYMENT_ID/report-file",
+// "Get File Payments Report File by FilePaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{ }"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentsFilePaymentIdReportFileGet : OBPEndpoint = {
+// case "file-payments" :: filePaymentId:: "report-file" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{ }"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// filePaymentsPost,
+// apiVersion,
+// nameOf(filePaymentsPost),
+// "POST",
+// "/file-payments",
+// "Create File Payments",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Data" : {
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "InitiationCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "FilePaymentId" : "FilePaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("File Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val filePaymentsPost : OBPEndpoint = {
+// case "file-payments" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "InitiationCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "FilePaymentId" : "FilePaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "FileContextFormat" : "FileContextFormat",
+// "SupplementaryData" : { },
+// "ControlSum" : 0.80082819046101150206595775671303272247314453125,
+// "LocalInstrument" : { },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "FileHash" : "FileHash",
+// "NumberOfTransactions" : "NumberOfTransactions",
+// "FileReference" : "FileReference",
+// "RequestedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FutureDatedPaymentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FutureDatedPaymentsApi.scala
index be891acd89..e708b7873c 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FutureDatedPaymentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/FutureDatedPaymentsApi.scala
@@ -1,148 +1,148 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_FutureDatedPaymentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdFutureDatedPaymentsGet ::
- futureDatedPaymentsGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdFutureDatedPaymentsGet,
- apiVersion,
- nameOf(accountsAccountIdFutureDatedPaymentsGet),
- "GET",
- "/accounts/ACCOUNT_ID/future-dated-payments",
- "Get Accounts Future Dated Payments by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "FutureDatedPayment" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Future Dated Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdFutureDatedPaymentsGet : OBPEndpoint = {
- case "accounts" :: accountId:: "future-dated-payments" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "FutureDatedPayment" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- futureDatedPaymentsGet,
- apiVersion,
- nameOf(futureDatedPaymentsGet),
- "GET",
- "/future-dated-payments",
- "Get Future Dated Payments",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "FutureDatedPayment" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Future Dated Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val futureDatedPaymentsGet : OBPEndpoint = {
- case "future-dated-payments" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "FutureDatedPayment" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_FutureDatedPaymentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdFutureDatedPaymentsGet ::
+// futureDatedPaymentsGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdFutureDatedPaymentsGet,
+// apiVersion,
+// nameOf(accountsAccountIdFutureDatedPaymentsGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/future-dated-payments",
+// "Get Accounts Future Dated Payments by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "FutureDatedPayment" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Future Dated Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdFutureDatedPaymentsGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "future-dated-payments" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "FutureDatedPayment" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// futureDatedPaymentsGet,
+// apiVersion,
+// nameOf(futureDatedPaymentsGet),
+// "GET",
+// "/future-dated-payments",
+// "Get Future Dated Payments",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "FutureDatedPayment" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Future Dated Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val futureDatedPaymentsGet : OBPEndpoint = {
+// case "future-dated-payments" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "FutureDatedPayment" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentConsentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentConsentsApi.scala
index a194292b04..e17b1f7f82 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentConsentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentConsentsApi.scala
@@ -1,771 +1,771 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_InternationalPaymentConsentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- internationalPaymentConsentsConsentIdFundsConfirmationGet ::
- internationalPaymentConsentsConsentIdGet ::
- internationalPaymentConsentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- internationalPaymentConsentsConsentIdFundsConfirmationGet,
- apiVersion,
- nameOf(internationalPaymentConsentsConsentIdFundsConfirmationGet),
- "GET",
- "/international-payment-consents/CONSENT_ID/funds-confirmation",
- "Get International Payment Consents Funds Confirmation by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SupplementaryData" : { },
- "FundsAvailableResult" : {
- "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
- "FundsAvailable" : true
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("International Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val internationalPaymentConsentsConsentIdFundsConfirmationGet : OBPEndpoint = {
- case "international-payment-consents" :: consentId:: "funds-confirmation" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "SupplementaryData" : { },
- "FundsAvailableResult" : {
- "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
- "FundsAvailable" : true
- }
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- internationalPaymentConsentsConsentIdGet,
- apiVersion,
- nameOf(internationalPaymentConsentsConsentIdGet),
- "GET",
- "/international-payment-consents/CONSENT_ID",
- "Get International Payment Consents by ConsentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("International Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val internationalPaymentConsentsConsentIdGet : OBPEndpoint = {
- case "international-payment-consents" :: consentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- internationalPaymentConsentsPost,
- apiVersion,
- nameOf(internationalPaymentConsentsPost),
- "POST",
- "/international-payment-consents",
- "Create International Payment Consents",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("International Payment Consents") :: apiTagMockedData :: Nil
- )
-
- lazy val internationalPaymentConsentsPost : OBPEndpoint = {
- case "international-payment-consents" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "Status" : "Authorised",
- "ConsentId" : "ConsentId",
- "SCASupportData" : {
- "RequestedSCAExemptionType" : "BillPayment",
- "AppliedAuthenticationApproach" : "CA",
- "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
- },
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Authorisation" : {
- "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "AuthorisationType" : "Single"
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "ReadRefundAccount" : "No",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_InternationalPaymentConsentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// internationalPaymentConsentsConsentIdFundsConfirmationGet ::
+// internationalPaymentConsentsConsentIdGet ::
+// internationalPaymentConsentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// internationalPaymentConsentsConsentIdFundsConfirmationGet,
+// apiVersion,
+// nameOf(internationalPaymentConsentsConsentIdFundsConfirmationGet),
+// "GET",
+// "/international-payment-consents/CONSENT_ID/funds-confirmation",
+// "Get International Payment Consents Funds Confirmation by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SupplementaryData" : { },
+// "FundsAvailableResult" : {
+// "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "FundsAvailable" : true
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("International Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val internationalPaymentConsentsConsentIdFundsConfirmationGet : OBPEndpoint = {
+// case "international-payment-consents" :: consentId:: "funds-confirmation" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "SupplementaryData" : { },
+// "FundsAvailableResult" : {
+// "FundsAvailableDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "FundsAvailable" : true
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// internationalPaymentConsentsConsentIdGet,
+// apiVersion,
+// nameOf(internationalPaymentConsentsConsentIdGet),
+// "GET",
+// "/international-payment-consents/CONSENT_ID",
+// "Get International Payment Consents by ConsentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("International Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val internationalPaymentConsentsConsentIdGet : OBPEndpoint = {
+// case "international-payment-consents" :: consentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// internationalPaymentConsentsPost,
+// apiVersion,
+// nameOf(internationalPaymentConsentsPost),
+// "POST",
+// "/international-payment-consents",
+// "Create International Payment Consents",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("International Payment Consents") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val internationalPaymentConsentsPost : OBPEndpoint = {
+// case "international-payment-consents" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "Status" : "Authorised",
+// "ConsentId" : "ConsentId",
+// "SCASupportData" : {
+// "RequestedSCAExemptionType" : "BillPayment",
+// "AppliedAuthenticationApproach" : "CA",
+// "ReferencePaymentOrderId" : "ReferencePaymentOrderId"
+// },
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "CutOffDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Authorisation" : {
+// "CompletionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "AuthorisationType" : "Single"
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "ReadRefundAccount" : "No",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentsApi.scala
index b91652f7cd..99ed2c2142 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/InternationalPaymentsApi.scala
@@ -1,870 +1,870 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_InternationalPaymentsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- internationalPaymentsInternationalPaymentIdGet ::
- internationalPaymentsInternationalPaymentIdPaymentDetailsGet ::
- internationalPaymentsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- internationalPaymentsInternationalPaymentIdGet,
- apiVersion,
- nameOf(internationalPaymentsInternationalPaymentIdGet),
- "GET",
- "/international-payments/INTERNATIONAL_PAYMENT_ID",
- "Get International Payments by InternationalPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "Agent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "InternationalPaymentId" : "InternationalPaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("International Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val internationalPaymentsInternationalPaymentIdGet : OBPEndpoint = {
- case "international-payments" :: internationalPaymentId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "Agent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "InternationalPaymentId" : "InternationalPaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- internationalPaymentsInternationalPaymentIdPaymentDetailsGet,
- apiVersion,
- nameOf(internationalPaymentsInternationalPaymentIdPaymentDetailsGet),
- "GET",
- "/international-payments/INTERNATIONAL_PAYMENT_ID/payment-details",
- "Get International Payment Details by InternationalPaymentId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("International Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val internationalPaymentsInternationalPaymentIdPaymentDetailsGet : OBPEndpoint = {
- case "international-payments" :: internationalPaymentId:: "payment-details" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "PaymentStatus" : [ {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- }, {
- "PaymentTransactionId" : "PaymentTransactionId",
- "Status" : "Accepted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "StatusDetail" : {
- "Status" : "Status",
- "LocalInstrument" : { },
- "StatusReason" : "Cancelled",
- "StatusReasonDescription" : "StatusReasonDescription"
- }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- internationalPaymentsPost,
- apiVersion,
- nameOf(internationalPaymentsPost),
- "POST",
- "/international-payments",
- "Create International Payments",
- s"""${mockedDataText(true)}
-
- """,
- json.parse("""{
- "Risk" : {
- "DeliveryAddress" : {
- "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
- "AddressLine" : [ "AddressLine", "AddressLine" ],
- "Country" : "Country"
- },
- "PaymentContextCode" : "BillPayment",
- "MerchantCategoryCode" : "MerchantCategoryCode",
- "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
- },
- "Data" : {
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- }
- }
-}"""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "Agent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "InternationalPaymentId" : "InternationalPaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("International Payments") :: apiTagMockedData :: Nil
- )
-
- lazy val internationalPaymentsPost : OBPEndpoint = {
- case "international-payments" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Status" : "AcceptedCreditSettlementCompleted",
- "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Debtor" : {
- "Name" : "Name"
- },
- "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
- "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Refund" : {
- "Account" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "Agent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- }
- },
- "Charges" : [ {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- }, {
- "Type" : { },
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "ChargeBearer" : { }
- } ],
- "InternationalPaymentId" : "InternationalPaymentId",
- "ConsentId" : "ConsentId",
- "Initiation" : {
- "SupplementaryData" : { },
- "CreditorAgent" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Identification" : { },
- "SchemeName" : { },
- "Name" : { }
- },
- "DebtorAccount" : {
- "Name" : "Name"
- },
- "EndToEndIdentification" : "EndToEndIdentification",
- "CurrencyOfTransfer" : "CurrencyOfTransfer",
- "InstructionIdentification" : "InstructionIdentification",
- "CreditorAccount" : {
- "Identification" : { },
- "SchemeName" : { },
- "Name" : "Name"
- },
- "ChargeBearer" : { },
- "Purpose" : "Purpose",
- "ExtendedPurpose" : "ExtendedPurpose",
- "InstructionPriority" : "Normal",
- "LocalInstrument" : { },
- "RemittanceInformation" : {
- "RemittanceDescription" : "RemittanceDescription",
- "Reference" : "Reference"
- },
- "DestinationCountryCode" : "DestinationCountryCode",
- "ExchangeRateInformation" : {
- "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
- "RateType" : "Actual",
- "ContractIdentification" : "ContractIdentification",
- "UnitCurrency" : "UnitCurrency"
- },
- "Creditor" : {
- "PostalAddress" : {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "Department" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "SubDepartment" : { },
- "AddressType" : { },
- "PostCode" : { }
- },
- "Name" : "Name"
- },
- "InstructedAmount" : {
- "Amount" : { },
- "Currency" : { }
- }
- },
- "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_InternationalPaymentsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// internationalPaymentsInternationalPaymentIdGet ::
+// internationalPaymentsInternationalPaymentIdPaymentDetailsGet ::
+// internationalPaymentsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// internationalPaymentsInternationalPaymentIdGet,
+// apiVersion,
+// nameOf(internationalPaymentsInternationalPaymentIdGet),
+// "GET",
+// "/international-payments/INTERNATIONAL_PAYMENT_ID",
+// "Get International Payments by InternationalPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "Agent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "InternationalPaymentId" : "InternationalPaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("International Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val internationalPaymentsInternationalPaymentIdGet : OBPEndpoint = {
+// case "international-payments" :: internationalPaymentId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "Agent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "InternationalPaymentId" : "InternationalPaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// internationalPaymentsInternationalPaymentIdPaymentDetailsGet,
+// apiVersion,
+// nameOf(internationalPaymentsInternationalPaymentIdPaymentDetailsGet),
+// "GET",
+// "/international-payments/INTERNATIONAL_PAYMENT_ID/payment-details",
+// "Get International Payment Details by InternationalPaymentId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("International Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val internationalPaymentsInternationalPaymentIdPaymentDetailsGet : OBPEndpoint = {
+// case "international-payments" :: internationalPaymentId:: "payment-details" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "PaymentStatus" : [ {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// }, {
+// "PaymentTransactionId" : "PaymentTransactionId",
+// "Status" : "Accepted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "StatusDetail" : {
+// "Status" : "Status",
+// "LocalInstrument" : { },
+// "StatusReason" : "Cancelled",
+// "StatusReasonDescription" : "StatusReasonDescription"
+// }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// internationalPaymentsPost,
+// apiVersion,
+// nameOf(internationalPaymentsPost),
+// "POST",
+// "/international-payments",
+// "Create International Payments",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse("""{
+// "Risk" : {
+// "DeliveryAddress" : {
+// "CountrySubDivision" : [ "CountrySubDivision", "CountrySubDivision" ],
+// "AddressLine" : [ "AddressLine", "AddressLine" ],
+// "Country" : "Country"
+// },
+// "PaymentContextCode" : "BillPayment",
+// "MerchantCategoryCode" : "MerchantCategoryCode",
+// "MerchantCustomerIdentification" : "MerchantCustomerIdentification"
+// },
+// "Data" : {
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// }
+// }
+//}"""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "Agent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "InternationalPaymentId" : "InternationalPaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("International Payments") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val internationalPaymentsPost : OBPEndpoint = {
+// case "international-payments" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Status" : "AcceptedCreditSettlementCompleted",
+// "StatusUpdateDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Debtor" : {
+// "Name" : "Name"
+// },
+// "CreationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExpectedExecutionDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 0.80082819046101150206595775671303272247314453125,
+// "ExpirationDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Refund" : {
+// "Account" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "Agent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// }
+// },
+// "Charges" : [ {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// }, {
+// "Type" : { },
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "ChargeBearer" : { }
+// } ],
+// "InternationalPaymentId" : "InternationalPaymentId",
+// "ConsentId" : "ConsentId",
+// "Initiation" : {
+// "SupplementaryData" : { },
+// "CreditorAgent" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : { }
+// },
+// "DebtorAccount" : {
+// "Name" : "Name"
+// },
+// "EndToEndIdentification" : "EndToEndIdentification",
+// "CurrencyOfTransfer" : "CurrencyOfTransfer",
+// "InstructionIdentification" : "InstructionIdentification",
+// "CreditorAccount" : {
+// "Identification" : { },
+// "SchemeName" : { },
+// "Name" : "Name"
+// },
+// "ChargeBearer" : { },
+// "Purpose" : "Purpose",
+// "ExtendedPurpose" : "ExtendedPurpose",
+// "InstructionPriority" : "Normal",
+// "LocalInstrument" : { },
+// "RemittanceInformation" : {
+// "RemittanceDescription" : "RemittanceDescription",
+// "Reference" : "Reference"
+// },
+// "DestinationCountryCode" : "DestinationCountryCode",
+// "ExchangeRateInformation" : {
+// "ExchangeRate" : 6.02745618307040320615897144307382404804229736328125,
+// "RateType" : "Actual",
+// "ContractIdentification" : "ContractIdentification",
+// "UnitCurrency" : "UnitCurrency"
+// },
+// "Creditor" : {
+// "PostalAddress" : {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "Department" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "SubDepartment" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// },
+// "Name" : "Name"
+// },
+// "InstructedAmount" : {
+// "Amount" : { },
+// "Currency" : { }
+// }
+// },
+// "ExpectedSettlementDateTime" : "2000-01-23T04:56:07.000+00:00"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/OffersApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/OffersApi.scala
index 38d21e8649..a7a4fd8f2a 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/OffersApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/OffersApi.scala
@@ -1,276 +1,276 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_OffersApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdOffersGet ::
- offersGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdOffersGet,
- apiVersion,
- nameOf(accountsAccountIdOffersGet),
- "GET",
- "/accounts/ACCOUNT_ID/offers",
- "Get Accounts Offers by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Offer" : [ {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- }, {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Offers") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdOffersGet : OBPEndpoint = {
- case "accounts" :: accountId:: "offers" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Offer" : [ {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- }, {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- offersGet,
- apiVersion,
- nameOf(offersGet),
- "GET",
- "/offers",
- "Get Offers",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Offer" : [ {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- }, {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Offers") :: apiTagMockedData :: Nil
- )
-
- lazy val offersGet : OBPEndpoint = {
- case "offers" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Offer" : [ {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- }, {
- "OfferId" : "OfferId",
- "AccountId" : { },
- "Description" : "Description",
- "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
- "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
- "Rate" : "Rate",
- "Amount" : {
- "Amount" : { },
- "Currency" : { }
- },
- "Fee" : { },
- "Value" : 0,
- "Term" : "Term",
- "URL" : "http://example.com/aeiou",
- "OfferType" : "BalanceTransfer"
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_OffersApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdOffersGet ::
+// offersGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdOffersGet,
+// apiVersion,
+// nameOf(accountsAccountIdOffersGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/offers",
+// "Get Accounts Offers by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Offer" : [ {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// }, {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Offers") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdOffersGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "offers" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Offer" : [ {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// }, {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// offersGet,
+// apiVersion,
+// nameOf(offersGet),
+// "GET",
+// "/offers",
+// "Get Offers",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Offer" : [ {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// }, {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Offers") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val offersGet : OBPEndpoint = {
+// case "offers" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Offer" : [ {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// }, {
+// "OfferId" : "OfferId",
+// "AccountId" : { },
+// "Description" : "Description",
+// "StartDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "EndDateTime" : "2000-01-23T04:56:07.000+00:00",
+// "Rate" : "Rate",
+// "Amount" : {
+// "Amount" : { },
+// "Currency" : { }
+// },
+// "Fee" : { },
+// "Value" : 0,
+// "Term" : "Term",
+// "URL" : "http://example.com/aeiou",
+// "OfferType" : "BalanceTransfer"
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/PartiesApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/PartiesApi.scala
index d2d4a15756..89b356de50 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/PartiesApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/PartiesApi.scala
@@ -1,502 +1,502 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_PartiesApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdPartiesGet ::
- accountsAccountIdPartyGet ::
- partyGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdPartiesGet,
- apiVersion,
- nameOf(accountsAccountIdPartiesGet),
- "GET",
- "/accounts/ACCOUNT_ID/parties",
- "Get Accounts Parties by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Party" : [ {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- }, {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Parties") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdPartiesGet : OBPEndpoint = {
- case "accounts" :: accountId:: "parties" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Party" : [ {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- }, {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsAccountIdPartyGet,
- apiVersion,
- nameOf(accountsAccountIdPartyGet),
- "GET",
- "/accounts/ACCOUNT_ID/party",
- "Get Accounts Party by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Party" : {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Parties") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdPartyGet : OBPEndpoint = {
- case "accounts" :: accountId:: "party" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Party" : {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- }
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- partyGet,
- apiVersion,
- nameOf(partyGet),
- "GET",
- "/party",
- "Get Party",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Party" : {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Parties") :: apiTagMockedData :: Nil
- )
-
- lazy val partyGet : OBPEndpoint = {
- case "party" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Party" : {
- "BeneficialOwnership" : true,
- "Address" : [ {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- }, {
- "CountrySubDivision" : { },
- "StreetName" : { },
- "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
- "BuildingNumber" : { },
- "TownName" : { },
- "Country" : { },
- "AddressType" : { },
- "PostCode" : { }
- } ],
- "AccountRole" : { },
- "Mobile" : { },
- "EmailAddress" : { },
- "LegalStructure" : { },
- "Name" : { },
- "PartyNumber" : { },
- "Relationships" : {
- "Account" : {
- "Related" : "http://example.com/aeiou",
- "Id" : "Id"
- }
- },
- "FullLegalName" : { },
- "PartyId" : { },
- "Phone" : { },
- "PartyType" : { }
- }
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_PartiesApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdPartiesGet ::
+// accountsAccountIdPartyGet ::
+// partyGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdPartiesGet,
+// apiVersion,
+// nameOf(accountsAccountIdPartiesGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/parties",
+// "Get Accounts Parties by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Party" : [ {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// }, {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Parties") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdPartiesGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "parties" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Party" : [ {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// }, {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdPartyGet,
+// apiVersion,
+// nameOf(accountsAccountIdPartyGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/party",
+// "Get Accounts Party by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Party" : {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Parties") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdPartyGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "party" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Party" : {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// partyGet,
+// apiVersion,
+// nameOf(partyGet),
+// "GET",
+// "/party",
+// "Get Party",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Party" : {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Parties") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val partyGet : OBPEndpoint = {
+// case "party" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Party" : {
+// "BeneficialOwnership" : true,
+// "Address" : [ {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// }, {
+// "CountrySubDivision" : { },
+// "StreetName" : { },
+// "AddressLine" : [ "AddressLine", "AddressLine", "AddressLine", "AddressLine", "AddressLine" ],
+// "BuildingNumber" : { },
+// "TownName" : { },
+// "Country" : { },
+// "AddressType" : { },
+// "PostCode" : { }
+// } ],
+// "AccountRole" : { },
+// "Mobile" : { },
+// "EmailAddress" : { },
+// "LegalStructure" : { },
+// "Name" : { },
+// "PartyNumber" : { },
+// "Relationships" : {
+// "Account" : {
+// "Related" : "http://example.com/aeiou",
+// "Id" : "Id"
+// }
+// },
+// "FullLegalName" : { },
+// "PartyId" : { },
+// "Phone" : { },
+// "PartyType" : { }
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StandingOrdersApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StandingOrdersApi.scala
index e352843f1e..455305240c 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StandingOrdersApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StandingOrdersApi.scala
@@ -1,148 +1,148 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_StandingOrdersApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdStandingOrdersGet ::
- standingOrdersGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdStandingOrdersGet,
- apiVersion,
- nameOf(accountsAccountIdStandingOrdersGet),
- "GET",
- "/accounts/ACCOUNT_ID/standing-orders",
- "Get Accounts Standing Orders by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "StandingOrder" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Standing Orders") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdStandingOrdersGet : OBPEndpoint = {
- case "accounts" :: accountId:: "standing-orders" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "StandingOrder" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- standingOrdersGet,
- apiVersion,
- nameOf(standingOrdersGet),
- "GET",
- "/standing-orders",
- "Get Standing Orders",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "StandingOrder" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Standing Orders") :: apiTagMockedData :: Nil
- )
-
- lazy val standingOrdersGet : OBPEndpoint = {
- case "standing-orders" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "StandingOrder" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_StandingOrdersApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdStandingOrdersGet ::
+// standingOrdersGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdStandingOrdersGet,
+// apiVersion,
+// nameOf(accountsAccountIdStandingOrdersGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/standing-orders",
+// "Get Accounts Standing Orders by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "StandingOrder" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Standing Orders") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdStandingOrdersGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "standing-orders" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "StandingOrder" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// standingOrdersGet,
+// apiVersion,
+// nameOf(standingOrdersGet),
+// "GET",
+// "/standing-orders",
+// "Get Standing Orders",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "StandingOrder" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Standing Orders") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val standingOrdersGet : OBPEndpoint = {
+// case "standing-orders" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "StandingOrder" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StatementsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StatementsApi.scala
index 0c18ccd471..b3eb0627a7 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StatementsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/StatementsApi.scala
@@ -1,292 +1,292 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_StatementsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdStatementsGet ::
- accountsAccountIdStatementsStatementIdFileGet ::
- accountsAccountIdStatementsStatementIdGet ::
- accountsAccountIdStatementsStatementIdTransactionsGet ::
- statementsGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdStatementsGet,
- apiVersion,
- nameOf(accountsAccountIdStatementsGet),
- "GET",
- "/accounts/ACCOUNT_ID/statements",
- "Get Accounts Statements by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Statement" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Statements") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdStatementsGet : OBPEndpoint = {
- case "accounts" :: accountId:: "statements" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Statement" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsAccountIdStatementsStatementIdFileGet,
- apiVersion,
- nameOf(accountsAccountIdStatementsStatementIdFileGet),
- "GET",
- "/accounts/ACCOUNT_ID/statements/STATEMENT_ID/file",
- "Get Accounts Statements File by AccountId and StatementId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{ }"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Statements") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdStatementsStatementIdFileGet : OBPEndpoint = {
- case "accounts" :: accountId:: "statements" :: statementId:: "file" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{ }"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsAccountIdStatementsStatementIdGet,
- apiVersion,
- nameOf(accountsAccountIdStatementsStatementIdGet),
- "GET",
- "/accounts/ACCOUNT_ID/statements/STATEMENT_ID",
- "Get Accounts Statement by AccountId and StatementId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Statement" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Statements") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdStatementsStatementIdGet : OBPEndpoint = {
- case "accounts" :: accountId:: "statements" :: statementId :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Statement" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsAccountIdStatementsStatementIdTransactionsGet,
- apiVersion,
- nameOf(accountsAccountIdStatementsStatementIdTransactionsGet),
- "GET",
- "/accounts/ACCOUNT_ID/statements/STATEMENT_ID/transactions",
- "Get Accounts Statement Tranactions by AccountId and StatementId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Transaction" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Statements") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdStatementsStatementIdTransactionsGet : OBPEndpoint = {
- case "accounts" :: accountId:: "statements" :: statementId:: "transactions" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Transaction" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- statementsGet,
- apiVersion,
- nameOf(statementsGet),
- "GET",
- "/statements",
- "Get Statements",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Statement" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Statements") :: apiTagMockedData :: Nil
- )
-
- lazy val statementsGet : OBPEndpoint = {
- case "statements" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Statement" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_StatementsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdStatementsGet ::
+// accountsAccountIdStatementsStatementIdFileGet ::
+// accountsAccountIdStatementsStatementIdGet ::
+// accountsAccountIdStatementsStatementIdTransactionsGet ::
+// statementsGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdStatementsGet,
+// apiVersion,
+// nameOf(accountsAccountIdStatementsGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/statements",
+// "Get Accounts Statements by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Statement" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Statements") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdStatementsGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "statements" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Statement" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdStatementsStatementIdFileGet,
+// apiVersion,
+// nameOf(accountsAccountIdStatementsStatementIdFileGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/statements/STATEMENT_ID/file",
+// "Get Accounts Statements File by AccountId and StatementId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{ }"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Statements") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdStatementsStatementIdFileGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "statements" :: statementId:: "file" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{ }"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdStatementsStatementIdGet,
+// apiVersion,
+// nameOf(accountsAccountIdStatementsStatementIdGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/statements/STATEMENT_ID",
+// "Get Accounts Statement by AccountId and StatementId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Statement" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Statements") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdStatementsStatementIdGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "statements" :: statementId :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Statement" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdStatementsStatementIdTransactionsGet,
+// apiVersion,
+// nameOf(accountsAccountIdStatementsStatementIdTransactionsGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/statements/STATEMENT_ID/transactions",
+// "Get Accounts Statement Tranactions by AccountId and StatementId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Transaction" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Statements") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdStatementsStatementIdTransactionsGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "statements" :: statementId:: "transactions" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Transaction" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// statementsGet,
+// apiVersion,
+// nameOf(statementsGet),
+// "GET",
+// "/statements",
+// "Get Statements",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Statement" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Statements") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val statementsGet : OBPEndpoint = {
+// case "statements" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Statement" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/SupplementaryAccountInfoApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/SupplementaryAccountInfoApi.scala
index 534554f2b5..d0a2bedf79 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/SupplementaryAccountInfoApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/SupplementaryAccountInfoApi.scala
@@ -1,138 +1,138 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_SupplementaryAccountInfoApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdSupplementaryAccountInfoGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdSupplementaryAccountInfoGet,
- apiVersion,
- nameOf(accountsAccountIdSupplementaryAccountInfoGet),
- "GET",
- "/accounts/ACCOUNT_ID/supplementary-account-info",
- "Get Accounts Supplementary Account Info by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Data" : {
- "ReadAccount" : {
- "ReadLoanMortgageInfo" : {
- "JointHolderName" : "JointHolderName",
- "LoanAmount" : "LoanAmount",
- "DisbursedAmount" : "DisbursedAmount",
- "LoanFrequency" : "LoanFrequency",
- "Rate" : "Rate",
- "Numberofinstallments" : "Numberofinstallments",
- "OutstandingLoanAmount" : "OutstandingLoanAmount"
- },
- "AccountID" : "AccountID",
- "ReadDepositInfo" : {
- "JointHolderName" : "JointHolderName",
- "DepositFrequency" : "DepositFrequency",
- "MaturityAmount" : "MaturityAmount",
- "Rate" : "Rate",
- "InitialDepositAmount" : "InitialDepositAmount",
- "MaturityDate" : "2000-01-23T04:56:07.000+00:00"
- },
- "AccountOpeningDate" : "2000-01-23T04:56:07.000+00:00",
- "ReadCASAInfo" : {
- "JointHolderName" : "JointHolderName",
- "Rate" : "Rate",
- "LienAmount" : "LienAmount"
- },
- "ReadCreditCardInfo" : {
- "Rate" : "Rate",
- "GracePeriod" : "GracePeriod",
- "CardLimit" : "CardLimit",
- "URL" : "URL"
- },
- "ReadEWalletInfo" : {
- "ChargeFrequency" : "ChargeFrequency",
- "Charge" : "Charge"
- }
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Supplementary Account Info") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdSupplementaryAccountInfoGet : OBPEndpoint = {
- case "accounts" :: accountId:: "supplementary-account-info" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Data" : {
- "ReadAccount" : {
- "ReadLoanMortgageInfo" : {
- "JointHolderName" : "JointHolderName",
- "LoanAmount" : "LoanAmount",
- "DisbursedAmount" : "DisbursedAmount",
- "LoanFrequency" : "LoanFrequency",
- "Rate" : "Rate",
- "Numberofinstallments" : "Numberofinstallments",
- "OutstandingLoanAmount" : "OutstandingLoanAmount"
- },
- "AccountID" : "AccountID",
- "ReadDepositInfo" : {
- "JointHolderName" : "JointHolderName",
- "DepositFrequency" : "DepositFrequency",
- "MaturityAmount" : "MaturityAmount",
- "Rate" : "Rate",
- "InitialDepositAmount" : "InitialDepositAmount",
- "MaturityDate" : "2000-01-23T04:56:07.000+00:00"
- },
- "AccountOpeningDate" : "2000-01-23T04:56:07.000+00:00",
- "ReadCASAInfo" : {
- "JointHolderName" : "JointHolderName",
- "Rate" : "Rate",
- "LienAmount" : "LienAmount"
- },
- "ReadCreditCardInfo" : {
- "Rate" : "Rate",
- "GracePeriod" : "GracePeriod",
- "CardLimit" : "CardLimit",
- "URL" : "URL"
- },
- "ReadEWalletInfo" : {
- "ChargeFrequency" : "ChargeFrequency",
- "Charge" : "Charge"
- }
- }
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_SupplementaryAccountInfoApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdSupplementaryAccountInfoGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdSupplementaryAccountInfoGet,
+// apiVersion,
+// nameOf(accountsAccountIdSupplementaryAccountInfoGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/supplementary-account-info",
+// "Get Accounts Supplementary Account Info by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Data" : {
+// "ReadAccount" : {
+// "ReadLoanMortgageInfo" : {
+// "JointHolderName" : "JointHolderName",
+// "LoanAmount" : "LoanAmount",
+// "DisbursedAmount" : "DisbursedAmount",
+// "LoanFrequency" : "LoanFrequency",
+// "Rate" : "Rate",
+// "Numberofinstallments" : "Numberofinstallments",
+// "OutstandingLoanAmount" : "OutstandingLoanAmount"
+// },
+// "AccountID" : "AccountID",
+// "ReadDepositInfo" : {
+// "JointHolderName" : "JointHolderName",
+// "DepositFrequency" : "DepositFrequency",
+// "MaturityAmount" : "MaturityAmount",
+// "Rate" : "Rate",
+// "InitialDepositAmount" : "InitialDepositAmount",
+// "MaturityDate" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "AccountOpeningDate" : "2000-01-23T04:56:07.000+00:00",
+// "ReadCASAInfo" : {
+// "JointHolderName" : "JointHolderName",
+// "Rate" : "Rate",
+// "LienAmount" : "LienAmount"
+// },
+// "ReadCreditCardInfo" : {
+// "Rate" : "Rate",
+// "GracePeriod" : "GracePeriod",
+// "CardLimit" : "CardLimit",
+// "URL" : "URL"
+// },
+// "ReadEWalletInfo" : {
+// "ChargeFrequency" : "ChargeFrequency",
+// "Charge" : "Charge"
+// }
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Supplementary Account Info") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdSupplementaryAccountInfoGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "supplementary-account-info" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Data" : {
+// "ReadAccount" : {
+// "ReadLoanMortgageInfo" : {
+// "JointHolderName" : "JointHolderName",
+// "LoanAmount" : "LoanAmount",
+// "DisbursedAmount" : "DisbursedAmount",
+// "LoanFrequency" : "LoanFrequency",
+// "Rate" : "Rate",
+// "Numberofinstallments" : "Numberofinstallments",
+// "OutstandingLoanAmount" : "OutstandingLoanAmount"
+// },
+// "AccountID" : "AccountID",
+// "ReadDepositInfo" : {
+// "JointHolderName" : "JointHolderName",
+// "DepositFrequency" : "DepositFrequency",
+// "MaturityAmount" : "MaturityAmount",
+// "Rate" : "Rate",
+// "InitialDepositAmount" : "InitialDepositAmount",
+// "MaturityDate" : "2000-01-23T04:56:07.000+00:00"
+// },
+// "AccountOpeningDate" : "2000-01-23T04:56:07.000+00:00",
+// "ReadCASAInfo" : {
+// "JointHolderName" : "JointHolderName",
+// "Rate" : "Rate",
+// "LienAmount" : "LienAmount"
+// },
+// "ReadCreditCardInfo" : {
+// "Rate" : "Rate",
+// "GracePeriod" : "GracePeriod",
+// "CardLimit" : "CardLimit",
+// "URL" : "URL"
+// },
+// "ReadEWalletInfo" : {
+// "ChargeFrequency" : "ChargeFrequency",
+// "Charge" : "Charge"
+// }
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/TransactionsApi.scala b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/TransactionsApi.scala
index fbd6467cb5..730f07461b 100644
--- a/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/TransactionsApi.scala
+++ b/obp-api/src/main/scala/code/api/BahrainOBF/v1_0_0/TransactionsApi.scala
@@ -1,148 +1,148 @@
-package code.api.BahrainOBF.v1_0_0
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_TransactionsApi extends RestHelper {
- val apiVersion = ApiCollector.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsAccountIdTransactionsGet ::
- transactionsGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsAccountIdTransactionsGet,
- apiVersion,
- nameOf(accountsAccountIdTransactionsGet),
- "GET",
- "/accounts/ACCOUNT_ID/transactions",
- "Get Accounts Trabnsactions by AccountId",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Transaction" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Transactions") :: apiTagMockedData :: Nil
- )
-
- lazy val accountsAccountIdTransactionsGet : OBPEndpoint = {
- case "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Transaction" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- transactionsGet,
- apiVersion,
- nameOf(transactionsGet),
- "GET",
- "/transactions",
- "Get Transactions",
- s"""${mockedDataText(true)}
-
- """,
- json.parse(""""""),
- json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Transaction" : [ { }, { } ]
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("Transactions") :: apiTagMockedData :: Nil
- )
-
- lazy val transactionsGet : OBPEndpoint = {
- case "transactions" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
- } yield {
- (json.parse("""{
- "Meta" : {
- "FirstAvailableDateTime" : { },
- "TotalPages" : 0
- },
- "Links" : {
- "Last" : "http://example.com/aeiou",
- "Prev" : "http://example.com/aeiou",
- "Next" : "http://example.com/aeiou",
- "First" : "http://example.com/aeiou",
- "Self" : "http://example.com/aeiou"
- },
- "Data" : {
- "Transaction" : [ { }, { } ]
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.BahrainOBF.v1_0_0
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_TransactionsApi extends RestHelper {
+// val apiVersion = ApiCollector.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsAccountIdTransactionsGet ::
+// transactionsGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsAccountIdTransactionsGet,
+// apiVersion,
+// nameOf(accountsAccountIdTransactionsGet),
+// "GET",
+// "/accounts/ACCOUNT_ID/transactions",
+// "Get Accounts Trabnsactions by AccountId",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Transaction" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Transactions") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val accountsAccountIdTransactionsGet : OBPEndpoint = {
+// case "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Transaction" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// transactionsGet,
+// apiVersion,
+// nameOf(transactionsGet),
+// "GET",
+// "/transactions",
+// "Get Transactions",
+// s"""${mockedDataText(true)}
+//
+// """,
+// json.parse(""""""),
+// json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Transaction" : [ { }, { } ]
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("Transactions") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val transactionsGet : OBPEndpoint = {
+// case "transactions" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
+// } yield {
+// (json.parse("""{
+// "Meta" : {
+// "FirstAvailableDateTime" : { },
+// "TotalPages" : 0
+// },
+// "Links" : {
+// "Last" : "http://example.com/aeiou",
+// "Prev" : "http://example.com/aeiou",
+// "Next" : "http://example.com/aeiou",
+// "First" : "http://example.com/aeiou",
+// "Self" : "http://example.com/aeiou"
+// },
+// "Data" : {
+// "Transaction" : [ { }, { } ]
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/MxOF/APIMethods_AtmsApi.scala b/obp-api/src/main/scala/code/api/MxOF/APIMethods_AtmsApi.scala
index 65089ecf73..0565657291 100644
--- a/obp-api/src/main/scala/code/api/MxOF/APIMethods_AtmsApi.scala
+++ b/obp-api/src/main/scala/code/api/MxOF/APIMethods_AtmsApi.scala
@@ -1,226 +1,226 @@
-package code.api.MxOF
-
-import scala.language.reflectiveCalls
-import scala.language.implicitConversions
-import code.api.Constant
-import code.api.MxOF.JSONFactory_MXOF_0_0_1.createGetAtmsResponse
-import code.api.util.APIUtil._
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import code.api.util.{APIUtil, ApiTag, CallContext, NewStyle}
-import code.bankconnectors.Connector
-import code.views.Views
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import com.openbankproject.commons.model._
-import com.openbankproject.commons.util.{ApiVersion, ScannedApiVersion}
-import dispatch.Future
-import net.liftweb.common.{Box, Empty, Full}
-import net.liftweb.http.Req
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-
-object APIMethods_AtmsApi extends RestHelper {
-
- protected trait TestHead {
- /**
- * Test to see if the request is a GET and expecting JSON in the response.
- * The path and the Req instance are extracted.
- */
- def unapply(r: Req): Option[(List[String], Req)] =
- if (r.requestType.head_? && testResponse_?(r))
- Some(r.path.partPath -> r) else None
-
- def testResponse_?(r: Req): Boolean
- }
-
- lazy val JsonHead = new TestHead with JsonTest
-
-
- val apiVersion = ApiVersion.cnbv9
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getMxAtms ::
- headMxAtms ::
- Nil
-
- val getMxAtmsResponseJson = json.parse(
- """{
- | "meta": {
- | "LastUpdated": "2021-05-26T14:49:38.258Z",
- | "TotalResults": 0,
- | "Agreement": "To be confirmed",
- | "License": "To be confirmed",
- | "TermsOfUse": "To be confirmed"
- | },
- | "data": [
- | {
- | "Brand": [
- | {
- | "BrandName": "MÉXICO",
- | "ATM": [
- | {
- | "Identification": "999994090",
- | "SupportedLanguages": [
- | "es",
- | "en",
- | "fr",
- | "pt",
- | "io"
- | ],
- | "ATMServices": [
- | "ATBA"
- | ],
- | "Accessibility": [
- | "ATAC"
- | ],
- | "Access24HoursIndicator": true,
- | "SupportedCurrencies": [
- | "MXN",
- | "USD",
- | "GBP"
- | ],
- | "MinimumPossibleAmount": "5",
- | "Note": [
- | "string"
- | ],
- | "OtherAccessibility": [
- | {
- | "Code": "stri",
- | "Description": "string",
- | "Name": "string"
- | }
- | ],
- | "OtherATMServices": [
- | {
- | "Code": "stri",
- | "Description": "string",
- | "Name": "string"
- | }
- | ],
- | "Branch": {
- | "Identification": "N/A"
- | },
- | "Location": {
- | "LocationCategory": [
- | "ATBE",
- | "ATBI",
- | "ATBL",
- | "ATOT",
- | "ATRO",
- | "ATRU"
- | ],
- | "OtherLocationCategory": [
- | {
- | "Code": "stri",
- | "Description": "string",
- | "Name": "TELEFONOS DE MEXICO SAB DE CV SAN JERONIMO"
- | }
- | ],
- | "Site": {
- | "Identification": "string",
- | "Name": "string"
- | },
- | "PostalAddress": {
- | "AddressLine": "SAN JERONIMO LIDICE",
- | "BuildingNumber": "9",
- | "StreetName": "PINOS",
- | "TownName": "MAGDALENA CONTRERAS",
- | "CountrySubDivision": [
- | "CD MEXICO"
- | ],
- | "Country": "MX",
- | "PostCode": "10100",
- | "GeoLocation": {
- | "GeographicCoordinates": {
- | "Latitude": "19.333474",
- | "Longitude": "-99.215063"
- | }
- | }
- | }
- | },
- | "FeeSurcharges": {
- | "CashWithdrawalNational": "20.00 MXN",
- | "CashWithdrawalInternational": "20.00 MXN",
- | "BalanceInquiry": "20.00MXN"
- | }
- | }
- | ]
- | }
- | ]
- | }
- | ]
- | "additionalProp1": "string",
- | "additionalProp2": "string",
- | "additionalProp3": "string"
- |}""".stripMargin)
- resourceDocs += ResourceDoc(
- getMxAtms,
- apiVersion,
- nameOf(getMxAtms),
- "GET",
- "/atms",
- "Get ATMS",
- s"""${mockedDataText(false)}
- Gets a list of all ATM objects.
- """,
- EmptyBody,
- getMxAtmsResponseJson,
- List(UnknownError),
- ApiTag("ATM") :: apiTagMXOpenFinance :: Nil
- )
-
- lazy val getMxAtms : OBPEndpoint = {
- case "atms" :: Nil JsonGet _ => {
- cc =>
- for {
- (_, callContext) <- anonymousAccess(cc)
- (banks, callContext) <- NewStyle.function.getBanks(callContext)
- (atms, callContext) <- NewStyle.function.getAllAtms(callContext)
- (attributes, callContext) <- NewStyle.function.getBankAttributesByBank(BankId(defaultBankId), callContext)
- } yield {
- (createGetAtmsResponse(banks, atms, attributes), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- headMxAtms,
- apiVersion,
- nameOf(headMxAtms),
- "HEAD",
- "/atms",
- "Head ATMS",
- s"""${mockedDataText(false)}
- Gets header information on the current set of ATM data
- """,
- EmptyBody,
- EmptyBody,
- List(
- UnknownError
- ),
- ApiTag("ATM") :: apiTagMXOpenFinance :: Nil
- )
-
- lazy val headMxAtms : OBPEndpoint = {
- case "atms" :: Nil JsonHead _ => {
- cc =>
- for {
- (_, callContext) <- anonymousAccess(cc)
- } yield {
- ("", callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.MxOF
+//
+//import scala.language.reflectiveCalls
+//import scala.language.implicitConversions
+//import code.api.Constant
+//import code.api.MxOF.JSONFactory_MXOF_0_0_1.createGetAtmsResponse
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import code.api.util.{APIUtil, ApiTag, CallContext, NewStyle}
+//import code.bankconnectors.Connector
+//import code.views.Views
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import com.openbankproject.commons.model._
+//import com.openbankproject.commons.util.{ApiVersion, ScannedApiVersion}
+//import dispatch.Future
+//import net.liftweb.common.{Box, Empty, Full}
+//import net.liftweb.http.Req
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//
+//object APIMethods_AtmsApi extends RestHelper {
+//
+// protected trait TestHead {
+// /**
+// * Test to see if the request is a GET and expecting JSON in the response.
+// * The path and the Req instance are extracted.
+// */
+// def unapply(r: Req): Option[(List[String], Req)] =
+// if (r.requestType.head_? && testResponse_?(r))
+// Some(r.path.partPath -> r) else None
+//
+// def testResponse_?(r: Req): Boolean
+// }
+//
+// lazy val JsonHead = new TestHead with JsonTest
+//
+//
+// val apiVersion = ApiVersion.cnbv9
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getMxAtms ::
+// headMxAtms ::
+// Nil
+//
+// val getMxAtmsResponseJson = json.parse(
+// """{
+// | "meta": {
+// | "LastUpdated": "2021-05-26T14:49:38.258Z",
+// | "TotalResults": 0,
+// | "Agreement": "To be confirmed",
+// | "License": "To be confirmed",
+// | "TermsOfUse": "To be confirmed"
+// | },
+// | "data": [
+// | {
+// | "Brand": [
+// | {
+// | "BrandName": "MÉXICO",
+// | "ATM": [
+// | {
+// | "Identification": "999994090",
+// | "SupportedLanguages": [
+// | "es",
+// | "en",
+// | "fr",
+// | "pt",
+// | "io"
+// | ],
+// | "ATMServices": [
+// | "ATBA"
+// | ],
+// | "Accessibility": [
+// | "ATAC"
+// | ],
+// | "Access24HoursIndicator": true,
+// | "SupportedCurrencies": [
+// | "MXN",
+// | "USD",
+// | "GBP"
+// | ],
+// | "MinimumPossibleAmount": "5",
+// | "Note": [
+// | "string"
+// | ],
+// | "OtherAccessibility": [
+// | {
+// | "Code": "stri",
+// | "Description": "string",
+// | "Name": "string"
+// | }
+// | ],
+// | "OtherATMServices": [
+// | {
+// | "Code": "stri",
+// | "Description": "string",
+// | "Name": "string"
+// | }
+// | ],
+// | "Branch": {
+// | "Identification": "N/A"
+// | },
+// | "Location": {
+// | "LocationCategory": [
+// | "ATBE",
+// | "ATBI",
+// | "ATBL",
+// | "ATOT",
+// | "ATRO",
+// | "ATRU"
+// | ],
+// | "OtherLocationCategory": [
+// | {
+// | "Code": "stri",
+// | "Description": "string",
+// | "Name": "TELEFONOS DE MEXICO SAB DE CV SAN JERONIMO"
+// | }
+// | ],
+// | "Site": {
+// | "Identification": "string",
+// | "Name": "string"
+// | },
+// | "PostalAddress": {
+// | "AddressLine": "SAN JERONIMO LIDICE",
+// | "BuildingNumber": "9",
+// | "StreetName": "PINOS",
+// | "TownName": "MAGDALENA CONTRERAS",
+// | "CountrySubDivision": [
+// | "CD MEXICO"
+// | ],
+// | "Country": "MX",
+// | "PostCode": "10100",
+// | "GeoLocation": {
+// | "GeographicCoordinates": {
+// | "Latitude": "19.333474",
+// | "Longitude": "-99.215063"
+// | }
+// | }
+// | }
+// | },
+// | "FeeSurcharges": {
+// | "CashWithdrawalNational": "20.00 MXN",
+// | "CashWithdrawalInternational": "20.00 MXN",
+// | "BalanceInquiry": "20.00MXN"
+// | }
+// | }
+// | ]
+// | }
+// | ]
+// | }
+// | ]
+// | "additionalProp1": "string",
+// | "additionalProp2": "string",
+// | "additionalProp3": "string"
+// |}""".stripMargin)
+// resourceDocs += ResourceDoc(
+// getMxAtms,
+// apiVersion,
+// nameOf(getMxAtms),
+// "GET",
+// "/atms",
+// "Get ATMS",
+// s"""${mockedDataText(false)}
+// Gets a list of all ATM objects.
+// """,
+// EmptyBody,
+// getMxAtmsResponseJson,
+// List(UnknownError),
+// ApiTag("ATM") :: apiTagMXOpenFinance :: Nil
+// )
+//
+// lazy val getMxAtms : OBPEndpoint = {
+// case "atms" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (_, callContext) <- anonymousAccess(cc)
+// (banks, callContext) <- NewStyle.function.getBanks(callContext)
+// (atms, callContext) <- NewStyle.function.getAllAtms(callContext)
+// (attributes, callContext) <- NewStyle.function.getBankAttributesByBank(BankId(defaultBankId), callContext)
+// } yield {
+// (createGetAtmsResponse(banks, atms, attributes), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// headMxAtms,
+// apiVersion,
+// nameOf(headMxAtms),
+// "HEAD",
+// "/atms",
+// "Head ATMS",
+// s"""${mockedDataText(false)}
+// Gets header information on the current set of ATM data
+// """,
+// EmptyBody,
+// EmptyBody,
+// List(
+// UnknownError
+// ),
+// ApiTag("ATM") :: apiTagMXOpenFinance :: Nil
+// )
+//
+// lazy val headMxAtms : OBPEndpoint = {
+// case "atms" :: Nil JsonHead _ => {
+// cc =>
+// for {
+// (_, callContext) <- anonymousAccess(cc)
+// } yield {
+// ("", callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/MxOF/CNBV9_1_0_0.scala b/obp-api/src/main/scala/code/api/MxOF/CNBV9_1_0_0.scala
index 8147343590..ce6872dc43 100644
--- a/obp-api/src/main/scala/code/api/MxOF/CNBV9_1_0_0.scala
+++ b/obp-api/src/main/scala/code/api/MxOF/CNBV9_1_0_0.scala
@@ -1,29 +1,29 @@
-package code.api.MxOF
-
-import code.api.OBPRestHelper
-import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
-import code.api.util.ScannedApis
-import code.util.Helper.MdcLoggable
-import com.openbankproject.commons.util.{ApiVersion,ApiVersionStatus}
-
-import scala.collection.mutable.ArrayBuffer
-
-/*
-This file defines which endpoints from all the versions are available in v1
- */
-object CNBV9_1_0_0 extends OBPRestHelper with MdcLoggable with ScannedApis {
- // CNBV9
- override val apiVersion = ApiVersion.cnbv9
- val versionStatus = ApiVersionStatus.DRAFT.toString
-
- private[this] val endpoints = APIMethods_AtmsApi.endpoints
- override val allResourceDocs: ArrayBuffer[ResourceDoc] = APIMethods_AtmsApi.resourceDocs
-
- // Filter the possible endpoints by the disabled / enabled Props settings and add them together
- override val routes: List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
-
- // Make them available for use!
- registerRoutes(routes, allResourceDocs, apiPrefix)
-
- logger.info(s"version $version has been run! There are ${routes.length} routes.")
-}
+//package code.api.MxOF
+//
+//import code.api.OBPRestHelper
+//import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
+//import code.api.util.ScannedApis
+//import code.util.Helper.MdcLoggable
+//import com.openbankproject.commons.util.{ApiVersion,ApiVersionStatus}
+//
+//import scala.collection.mutable.ArrayBuffer
+//
+///*
+//This file defines which endpoints from all the versions are available in v1
+// */
+//object CNBV9_1_0_0 extends OBPRestHelper with MdcLoggable with ScannedApis {
+// // CNBV9
+// override val apiVersion = ApiVersion.cnbv9
+// val versionStatus = ApiVersionStatus.DRAFT.toString
+//
+// private[this] val endpoints = APIMethods_AtmsApi.endpoints
+// override val allResourceDocs: ArrayBuffer[ResourceDoc] = APIMethods_AtmsApi.resourceDocs
+//
+// // Filter the possible endpoints by the disabled / enabled Props settings and add them together
+// override val routes: List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
+//
+// // Make them available for use!
+// registerRoutes(routes, allResourceDocs, apiPrefix)
+//
+// logger.info(s"version $version has been run! There are ${routes.length} routes.")
+//}
diff --git a/obp-api/src/main/scala/code/api/MxOF/JSONFactory_MXOF_1_0_0.scala b/obp-api/src/main/scala/code/api/MxOF/JSONFactory_MXOF_1_0_0.scala
index 40d51a82e6..3d17775dde 100644
--- a/obp-api/src/main/scala/code/api/MxOF/JSONFactory_MXOF_1_0_0.scala
+++ b/obp-api/src/main/scala/code/api/MxOF/JSONFactory_MXOF_1_0_0.scala
@@ -1,199 +1,199 @@
-package code.api.MxOF
-
-import code.api.util.{APIUtil, CustomJsonFormats}
-import code.api.util.APIUtil.{defaultBankId, listOrNone, stringOrNone, theEpochTime}
-import code.atms.MappedAtm
-import code.bankattribute.BankAttribute
-import com.openbankproject.commons.model.Bank
-import net.liftweb.json.JValue
-
-import scala.collection.immutable.List
-import com.openbankproject.commons.model._
-import net.liftweb.mapper.{Descending, NotNullRef, OrderBy}
-
-import java.time.LocalDateTime
-import java.time.format.DateTimeFormatter
-import java.util.Date
-
-case class JvalueCaseClass(jvalueToCaseclass: JValue)
-
-case class MetaBis(
- LastUpdated: String,
- TotalResults: Int,
- Agreement: String,
- License: String,
- TermsOfUse: String
-)
-case class OtherAccessibility(
- Code: Option[String],
- Description: String,
- Name: String
-)
-case class MxofBranchV100(
- Identification: String
-)
-case class Site(
- Identification: String,
- Name: String
-)
-case class GeographicCoordinates(
- Latitude: String,
- Longitude: String
-)
-case class GeoLocation(
- GeographicCoordinates: GeographicCoordinates
-)
-case class PostalAddress(
- AddressLine: Option[String],
- BuildingNumber: Option[String],
- StreetName: Option[String],
- TownName: Option[String],
- CountrySubDivision: Option[List[String]],
- Country: Option[String],
- PostCode: Option[String],
- GeoLocation: Option[GeoLocation]
-)
-case class Location(
- LocationCategory: Option[List[String]],
- OtherLocationCategory: Option[List[OtherAccessibility]],
- Site: Option[Site],
- PostalAddress: PostalAddress
-)
-case class FeeSurcharges(
- CashWithdrawalNational: String,
- CashWithdrawalInternational: String,
- BalanceInquiry: String
-)
-case class MxofATMV100(
- Identification: String,
- SupportedLanguages: Option[List[String]],
- ATMServices: List[String],
- Accessibility: Option[List[String]],
- Access24HoursIndicator: Option[Boolean],
- SupportedCurrencies: List[String],
- MinimumPossibleAmount: Option[String],
- Note: Option[List[String]],
- OtherAccessibility: Option[List[OtherAccessibility]],
- OtherATMServices: Option[List[OtherAccessibility]],
- Branch: Option[MxofBranchV100],
- Location: Location,
- FeeSurcharges: Option[FeeSurcharges]
-)
-case class Brand(
- BrandName: String,
- ATM: List[MxofATMV100]
-)
-case class Data(
- Brand: List[Brand]
-)
-case class GetAtmsResponseJson(
- meta: MetaBis,
- data: List[Data],
-)
-object JSONFactory_MXOF_0_0_1 extends CustomJsonFormats {
-
- //get the following values from default bank Attributes:
- final val BANK_ATTRIBUTE_AGREEMENT = "ATM_META_AGREEMENT"
- final val BANK_ATTRIBUTE_LICENSE = "ATM_META_LICENCE"
- final val BANK_ATTRIBUTE_TERMSOFUSE = "ATM_META_TERMS_OF_USE"
-
- def createGetAtmsResponse (banks: List[Bank], atms: List[AtmT], attributes:List[BankAttributeTrait]) :GetAtmsResponseJson = {
- def access24HoursIndicator (atm: AtmT) = {
- atm.OpeningTimeOnMonday.equals(Some("00:00")) && atm.ClosingTimeOnMonday.equals(Some("23:59"))
- atm.OpeningTimeOnTuesday.equals(Some("00:00")) && atm.ClosingTimeOnTuesday.equals(Some("23:59"))
- atm.OpeningTimeOnWednesday.equals(Some("00:00")) && atm.ClosingTimeOnWednesday.equals(Some("23:59"))
- atm.OpeningTimeOnThursday.equals(Some("00:00")) && atm.ClosingTimeOnThursday.equals(Some("23:59"))
- atm.OpeningTimeOnFriday.equals(Some("00:00")) && atm.ClosingTimeOnFriday.equals(Some("23:59"))
- atm.OpeningTimeOnSaturday.equals(Some("00:00")) && atm.ClosingTimeOnSaturday.equals(Some("23:59"))
- atm.OpeningTimeOnSunday.equals(Some("00:00")) && atm.ClosingTimeOnSunday.equals(Some("23:59"))
- }
- val brandList = banks
- //first filter out the banks without the atms
- .filter(bank =>atms.map(_.bankId).contains(bank.bankId))
- .map(bank => {
- val bankAtms = atms.filter(_.bankId== bank.bankId)
- Brand(
- BrandName = bank.fullName,
- ATM = bankAtms.map{ bankAtm =>
- MxofATMV100(
- Identification = bankAtm.atmId.value,
- SupportedLanguages = bankAtm.supportedLanguages,
- ATMServices = bankAtm.services.getOrElse(Nil),
- Accessibility = bankAtm.accessibilityFeatures,
- Access24HoursIndicator = Some(access24HoursIndicator(bankAtm)),
- SupportedCurrencies = bankAtm.supportedCurrencies.getOrElse(Nil),
- MinimumPossibleAmount = bankAtm.minimumWithdrawal,
- Note = bankAtm.notes,
- OtherAccessibility = None, // List(OtherAccessibility("","","")), //TODO 1 from attributes?
- OtherATMServices = None, // List(OtherAccessibility("","","")), //TODO 2 from attributes?
- Branch = if (bankAtm.branchIdentification.getOrElse("").isEmpty)
- None
- else
- Some(MxofBranchV100(bankAtm.branchIdentification.getOrElse(""))),
- Location = Location(
- LocationCategory = bankAtm.locationCategories,
- OtherLocationCategory = None, //List(OtherAccessibility(None,"","")), //TODO 3 from attributes?
- Site = if(bankAtm.siteIdentification.getOrElse("").isEmpty && bankAtm.siteName.getOrElse("").isEmpty)
- None
- else Some(Site(
- Identification = bankAtm.siteIdentification.getOrElse(""),
- Name= bankAtm.siteName.getOrElse("")
- )),
- PostalAddress = PostalAddress(
- AddressLine = stringOrNone(bankAtm.address.line1),
- BuildingNumber = stringOrNone(bankAtm.address.line2),
- StreetName = stringOrNone(bankAtm.address.line3),
- TownName = stringOrNone(bankAtm.address.city),
- CountrySubDivision = listOrNone(bankAtm.address.state),
- Country = bankAtm.address.county,
- PostCode = stringOrNone(bankAtm.address.postCode),
- GeoLocation = if (bankAtm.location.latitude.toString.isEmpty && bankAtm.location.longitude.toString.isEmpty)
- None
- else
- Some(GeoLocation(
- GeographicCoordinates(
- bankAtm.location.latitude.toString,
- bankAtm.location.longitude.toString))))
- ),
- FeeSurcharges = if (bankAtm.branchIdentification.getOrElse("").isEmpty &&
- bankAtm.cashWithdrawalNationalFee.getOrElse("").isEmpty &&
- bankAtm.balanceInquiryFee.getOrElse("").isEmpty
- )
- None
- else
- Some(FeeSurcharges(
- CashWithdrawalNational = bankAtm.cashWithdrawalNationalFee.getOrElse(""),
- CashWithdrawalInternational = bankAtm.cashWithdrawalNationalFee.getOrElse(""),
- BalanceInquiry = bankAtm.balanceInquiryFee.getOrElse("")))
- )
- }
- )
- }
- )
- val mappedAtmList: List[MappedAtm] = MappedAtm.findAll(
- NotNullRef(MappedAtm.updatedAt),
- OrderBy(MappedAtm.updatedAt, Descending),
- )
-
- val lastUpdated: Date = if(mappedAtmList.nonEmpty) {
- mappedAtmList.head.updatedAt.get
- }else{
- theEpochTime
- }
-
- val agreement = attributes.find(_.name.equals(BANK_ATTRIBUTE_AGREEMENT)).map(_.value).getOrElse("")
- val license = attributes.find(_.name.equals(BANK_ATTRIBUTE_LICENSE)).map(_.value).getOrElse("")
- val termsOfUse = attributes.find(_.name.equals(BANK_ATTRIBUTE_TERMSOFUSE)).map(_.value).getOrElse("")
-
- GetAtmsResponseJson(
- meta = MetaBis(
- LastUpdated = APIUtil.DateWithMsFormat.format(lastUpdated),
- TotalResults = atms.size.toInt,
- Agreement = agreement,
- License = license,
- TermsOfUse = termsOfUse
- ),
- data = List(Data(brandList))
- )
- }
-}
+//package code.api.MxOF
+//
+//import code.api.util.{APIUtil, CustomJsonFormats}
+//import code.api.util.APIUtil.{defaultBankId, listOrNone, stringOrNone, theEpochTime}
+//import code.atms.MappedAtm
+//import code.bankattribute.BankAttribute
+//import com.openbankproject.commons.model.Bank
+//import net.liftweb.json.JValue
+//
+//import scala.collection.immutable.List
+//import com.openbankproject.commons.model._
+//import net.liftweb.mapper.{Descending, NotNullRef, OrderBy}
+//
+//import java.time.LocalDateTime
+//import java.time.format.DateTimeFormatter
+//import java.util.Date
+//
+//case class JvalueCaseClass(jvalueToCaseclass: JValue)
+//
+//case class MetaBis(
+// LastUpdated: String,
+// TotalResults: Int,
+// Agreement: String,
+// License: String,
+// TermsOfUse: String
+//)
+//case class OtherAccessibility(
+// Code: Option[String],
+// Description: String,
+// Name: String
+//)
+//case class MxofBranchV100(
+// Identification: String
+//)
+//case class Site(
+// Identification: String,
+// Name: String
+//)
+//case class GeographicCoordinates(
+// Latitude: String,
+// Longitude: String
+//)
+//case class GeoLocation(
+// GeographicCoordinates: GeographicCoordinates
+//)
+//case class PostalAddress(
+// AddressLine: Option[String],
+// BuildingNumber: Option[String],
+// StreetName: Option[String],
+// TownName: Option[String],
+// CountrySubDivision: Option[List[String]],
+// Country: Option[String],
+// PostCode: Option[String],
+// GeoLocation: Option[GeoLocation]
+//)
+//case class Location(
+// LocationCategory: Option[List[String]],
+// OtherLocationCategory: Option[List[OtherAccessibility]],
+// Site: Option[Site],
+// PostalAddress: PostalAddress
+//)
+//case class FeeSurcharges(
+// CashWithdrawalNational: String,
+// CashWithdrawalInternational: String,
+// BalanceInquiry: String
+//)
+//case class MxofATMV100(
+// Identification: String,
+// SupportedLanguages: Option[List[String]],
+// ATMServices: List[String],
+// Accessibility: Option[List[String]],
+// Access24HoursIndicator: Option[Boolean],
+// SupportedCurrencies: List[String],
+// MinimumPossibleAmount: Option[String],
+// Note: Option[List[String]],
+// OtherAccessibility: Option[List[OtherAccessibility]],
+// OtherATMServices: Option[List[OtherAccessibility]],
+// Branch: Option[MxofBranchV100],
+// Location: Location,
+// FeeSurcharges: Option[FeeSurcharges]
+//)
+//case class Brand(
+// BrandName: String,
+// ATM: List[MxofATMV100]
+//)
+//case class Data(
+// Brand: List[Brand]
+//)
+//case class GetAtmsResponseJson(
+// meta: MetaBis,
+// data: List[Data],
+//)
+//object JSONFactory_MXOF_0_0_1 extends CustomJsonFormats {
+//
+// //get the following values from default bank Attributes:
+// final val BANK_ATTRIBUTE_AGREEMENT = "ATM_META_AGREEMENT"
+// final val BANK_ATTRIBUTE_LICENSE = "ATM_META_LICENCE"
+// final val BANK_ATTRIBUTE_TERMSOFUSE = "ATM_META_TERMS_OF_USE"
+//
+// def createGetAtmsResponse (banks: List[Bank], atms: List[AtmT], attributes:List[BankAttributeTrait]) :GetAtmsResponseJson = {
+// def access24HoursIndicator (atm: AtmT) = {
+// atm.OpeningTimeOnMonday.equals(Some("00:00")) && atm.ClosingTimeOnMonday.equals(Some("23:59"))
+// atm.OpeningTimeOnTuesday.equals(Some("00:00")) && atm.ClosingTimeOnTuesday.equals(Some("23:59"))
+// atm.OpeningTimeOnWednesday.equals(Some("00:00")) && atm.ClosingTimeOnWednesday.equals(Some("23:59"))
+// atm.OpeningTimeOnThursday.equals(Some("00:00")) && atm.ClosingTimeOnThursday.equals(Some("23:59"))
+// atm.OpeningTimeOnFriday.equals(Some("00:00")) && atm.ClosingTimeOnFriday.equals(Some("23:59"))
+// atm.OpeningTimeOnSaturday.equals(Some("00:00")) && atm.ClosingTimeOnSaturday.equals(Some("23:59"))
+// atm.OpeningTimeOnSunday.equals(Some("00:00")) && atm.ClosingTimeOnSunday.equals(Some("23:59"))
+// }
+// val brandList = banks
+// //first filter out the banks without the atms
+// .filter(bank =>atms.map(_.bankId).contains(bank.bankId))
+// .map(bank => {
+// val bankAtms = atms.filter(_.bankId== bank.bankId)
+// Brand(
+// BrandName = bank.fullName,
+// ATM = bankAtms.map{ bankAtm =>
+// MxofATMV100(
+// Identification = bankAtm.atmId.value,
+// SupportedLanguages = bankAtm.supportedLanguages,
+// ATMServices = bankAtm.services.getOrElse(Nil),
+// Accessibility = bankAtm.accessibilityFeatures,
+// Access24HoursIndicator = Some(access24HoursIndicator(bankAtm)),
+// SupportedCurrencies = bankAtm.supportedCurrencies.getOrElse(Nil),
+// MinimumPossibleAmount = bankAtm.minimumWithdrawal,
+// Note = bankAtm.notes,
+// OtherAccessibility = None, // List(OtherAccessibility("","","")), //TODO 1 from attributes?
+// OtherATMServices = None, // List(OtherAccessibility("","","")), //TODO 2 from attributes?
+// Branch = if (bankAtm.branchIdentification.getOrElse("").isEmpty)
+// None
+// else
+// Some(MxofBranchV100(bankAtm.branchIdentification.getOrElse(""))),
+// Location = Location(
+// LocationCategory = bankAtm.locationCategories,
+// OtherLocationCategory = None, //List(OtherAccessibility(None,"","")), //TODO 3 from attributes?
+// Site = if(bankAtm.siteIdentification.getOrElse("").isEmpty && bankAtm.siteName.getOrElse("").isEmpty)
+// None
+// else Some(Site(
+// Identification = bankAtm.siteIdentification.getOrElse(""),
+// Name= bankAtm.siteName.getOrElse("")
+// )),
+// PostalAddress = PostalAddress(
+// AddressLine = stringOrNone(bankAtm.address.line1),
+// BuildingNumber = stringOrNone(bankAtm.address.line2),
+// StreetName = stringOrNone(bankAtm.address.line3),
+// TownName = stringOrNone(bankAtm.address.city),
+// CountrySubDivision = listOrNone(bankAtm.address.state),
+// Country = bankAtm.address.county,
+// PostCode = stringOrNone(bankAtm.address.postCode),
+// GeoLocation = if (bankAtm.location.latitude.toString.isEmpty && bankAtm.location.longitude.toString.isEmpty)
+// None
+// else
+// Some(GeoLocation(
+// GeographicCoordinates(
+// bankAtm.location.latitude.toString,
+// bankAtm.location.longitude.toString))))
+// ),
+// FeeSurcharges = if (bankAtm.branchIdentification.getOrElse("").isEmpty &&
+// bankAtm.cashWithdrawalNationalFee.getOrElse("").isEmpty &&
+// bankAtm.balanceInquiryFee.getOrElse("").isEmpty
+// )
+// None
+// else
+// Some(FeeSurcharges(
+// CashWithdrawalNational = bankAtm.cashWithdrawalNationalFee.getOrElse(""),
+// CashWithdrawalInternational = bankAtm.cashWithdrawalNationalFee.getOrElse(""),
+// BalanceInquiry = bankAtm.balanceInquiryFee.getOrElse("")))
+// )
+// }
+// )
+// }
+// )
+// val mappedAtmList: List[MappedAtm] = MappedAtm.findAll(
+// NotNullRef(MappedAtm.updatedAt),
+// OrderBy(MappedAtm.updatedAt, Descending),
+// )
+//
+// val lastUpdated: Date = if(mappedAtmList.nonEmpty) {
+// mappedAtmList.head.updatedAt.get
+// }else{
+// theEpochTime
+// }
+//
+// val agreement = attributes.find(_.name.equals(BANK_ATTRIBUTE_AGREEMENT)).map(_.value).getOrElse("")
+// val license = attributes.find(_.name.equals(BANK_ATTRIBUTE_LICENSE)).map(_.value).getOrElse("")
+// val termsOfUse = attributes.find(_.name.equals(BANK_ATTRIBUTE_TERMSOFUSE)).map(_.value).getOrElse("")
+//
+// GetAtmsResponseJson(
+// meta = MetaBis(
+// LastUpdated = APIUtil.DateWithMsFormat.format(lastUpdated),
+// TotalResults = atms.size.toInt,
+// Agreement = agreement,
+// License = license,
+// TermsOfUse = termsOfUse
+// ),
+// data = List(Data(brandList))
+// )
+// }
+//}
diff --git a/obp-api/src/main/scala/code/api/MxOF/OBP_MXOF_1_0_0.scala b/obp-api/src/main/scala/code/api/MxOF/OBP_MXOF_1_0_0.scala
index 9e05a42cf9..419980362e 100644
--- a/obp-api/src/main/scala/code/api/MxOF/OBP_MXOF_1_0_0.scala
+++ b/obp-api/src/main/scala/code/api/MxOF/OBP_MXOF_1_0_0.scala
@@ -1,63 +1,63 @@
-/**
- * Open Bank Project - API
- * Copyright (C) 2011-2022, TESOBE GmbH
- **
- *This program is free software: you can redistribute it and/or modify
- *it under the terms of the GNU Affero General Public License as published by
- *the Free Software Foundation, either version 3 of the License, or
- *(at your option) any later version.
- **
- *This program is distributed in the hope that it will be useful,
- *but WITHOUT ANY WARRANTY; without even the implied warranty of
- *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *GNU Affero General Public License for more details.
- **
- *You should have received a copy of the GNU Affero General Public License
- *along with this program. If not, see .
- **
- *Email: contact@tesobe.com
- *TESOBE Ltd
- *Osloerstrasse 16/17
- *Berlin 13359, Germany
- **
- *This product includes software developed at
- *TESOBE (http://www.tesobe.com/)
- * by
- *Simon Redfern : simon AT tesobe DOT com
- *Stefan Bethge : stefan AT tesobe DOT com
- *Everett Sochowski : everett AT tesobe DOT com
- *Ayoub Benali: ayoub AT tesobe DOT com
- *
- */
-package code.api.MxOF
-
-import code.api.OBPRestHelper
-import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
-import code.api.util.ScannedApis
-import code.util.Helper.MdcLoggable
-import com.openbankproject.commons.util.{ApiVersion,ApiVersionStatus}
-
-import scala.collection.mutable.ArrayBuffer
-
-
-/*
-This file defines which endpoints from all the versions are available in v1
- */
-object OBP_MXOF_1_0_0 extends OBPRestHelper with MdcLoggable with ScannedApis {
-// mx-open-finance
- override val apiVersion = ApiVersion.mxofV100
- val versionStatus = ApiVersionStatus.DRAFT.toString
-
- private[this] val endpoints = APIMethods_AtmsApi.endpoints
- override val allResourceDocs: ArrayBuffer[ResourceDoc] = APIMethods_AtmsApi.resourceDocs.map(
- resourceDoc => resourceDoc.copy(implementedInApiVersion = apiVersion)
- )
-
- // Filter the possible endpoints by the disabled / enabled Props settings and add them together
- override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
-
- // Make them available for use!
- registerRoutes(routes, allResourceDocs, apiPrefix)
-
- logger.info(s"version $version has been run! There are ${routes.length} routes.")
-}
+///**
+// * Open Bank Project - API
+// * Copyright (C) 2011-2022, TESOBE GmbH
+// **
+// *This program is free software: you can redistribute it and/or modify
+// *it under the terms of the GNU Affero General Public License as published by
+// *the Free Software Foundation, either version 3 of the License, or
+// *(at your option) any later version.
+// **
+// *This program is distributed in the hope that it will be useful,
+// *but WITHOUT ANY WARRANTY; without even the implied warranty of
+// *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// *GNU Affero General Public License for more details.
+// **
+// *You should have received a copy of the GNU Affero General Public License
+// *along with this program. If not, see .
+// **
+// *Email: contact@tesobe.com
+// *TESOBE Ltd
+// *Osloerstrasse 16/17
+// *Berlin 13359, Germany
+// **
+// *This product includes software developed at
+// *TESOBE (http://www.tesobe.com/)
+// * by
+// *Simon Redfern : simon AT tesobe DOT com
+// *Stefan Bethge : stefan AT tesobe DOT com
+// *Everett Sochowski : everett AT tesobe DOT com
+// *Ayoub Benali: ayoub AT tesobe DOT com
+// *
+// */
+//package code.api.MxOF
+//
+//import code.api.OBPRestHelper
+//import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
+//import code.api.util.ScannedApis
+//import code.util.Helper.MdcLoggable
+//import com.openbankproject.commons.util.{ApiVersion,ApiVersionStatus}
+//
+//import scala.collection.mutable.ArrayBuffer
+//
+//
+///*
+//This file defines which endpoints from all the versions are available in v1
+// */
+//object OBP_MXOF_1_0_0 extends OBPRestHelper with MdcLoggable with ScannedApis {
+//// mx-open-finance
+// override val apiVersion = ApiVersion.mxofV100
+// val versionStatus = ApiVersionStatus.DRAFT.toString
+//
+// private[this] val endpoints = APIMethods_AtmsApi.endpoints
+// override val allResourceDocs: ArrayBuffer[ResourceDoc] = APIMethods_AtmsApi.resourceDocs.map(
+// resourceDoc => resourceDoc.copy(implementedInApiVersion = apiVersion)
+// )
+//
+// // Filter the possible endpoints by the disabled / enabled Props settings and add them together
+// override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
+//
+// // Make them available for use!
+// registerRoutes(routes, allResourceDocs, apiPrefix)
+//
+// logger.info(s"version $version has been run! There are ${routes.length} routes.")
+//}
diff --git a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/AISApi.scala b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/AISApi.scala
index 0cabab029e..47aa107990 100644
--- a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/AISApi.scala
+++ b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/AISApi.scala
@@ -1,656 +1,656 @@
-package code.api.Polish.v2_1_1_1
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_AISApi extends RestHelper {
- val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- deleteConsent ::
- getAccount ::
- getAccounts ::
- getHolds ::
- getTransactionDetail ::
- getTransactionsCancelled ::
- getTransactionsDone ::
- getTransactionsPending ::
- getTransactionsRejected ::
- getTransactionsScheduled ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- deleteConsent,
- apiVersion,
- nameOf(deleteConsent),
- "POST",
- "/accounts/v2_1_1.1/deleteConsent",
- "Removes consent",
- s"""${mockedDataText(true)}
-Removes consent""",
- json.parse("""{
- "consentId" : "consentId"
-}"""),
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val deleteConsent : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "deleteConsent" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getAccount,
- apiVersion,
- nameOf(getAccount),
- "POST",
- "/accounts/v2_1_1.1/getAccount",
- "Get detailed information about user payment account",
- s"""${mockedDataText(true)}
-User identification based on access token""",
- json.parse("""{
- "requestHeader" : "",
- "accountNumber" : "accountNumber"
-}"""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "account" : {
- "auxData" : { },
- "bank" : {
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "name" : "name"
- },
- "bookingBalance" : "bookingBalance",
- "accountType" : {
- "code" : "code",
- "description" : "description"
- },
- "accountTypeName" : "accountTypeName",
- "currency" : "currency",
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : "accountNumber",
- "accountNameClient" : "accountNameClient",
- "accountHolderType" : "individual",
- "availableBalance" : "availableBalance"
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getAccount : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getAccount" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "account" : {
- "auxData" : { },
- "bank" : {
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "name" : "name"
- },
- "bookingBalance" : "bookingBalance",
- "accountType" : {
- "code" : "code",
- "description" : "description"
- },
- "accountTypeName" : "accountTypeName",
- "currency" : "currency",
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : "accountNumber",
- "accountNameClient" : "accountNameClient",
- "accountHolderType" : "individual",
- "availableBalance" : "availableBalance"
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getAccounts,
- apiVersion,
- nameOf(getAccounts),
- "POST",
- "/accounts/v2_1_1.1/getAccounts",
- "Get information about all user's payment account",
- s"""${mockedDataText(true)}
-User identification based on access token""",
- json.parse("""{
- "perPage" : 1,
- "requestHeader" : "",
- "pageId" : "pageId"
-}"""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "accounts" : [ {
- "accountType" : {
- "code" : "code",
- "description" : "description"
- },
- "accountTypeName" : "accountTypeName",
- "accountNumber" : "accountNumber"
- }, {
- "accountType" : {
- "code" : "code",
- "description" : "description"
- },
- "accountTypeName" : "accountTypeName",
- "accountNumber" : "accountNumber"
- } ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getAccounts : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getAccounts" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "accounts" : [ {
- "accountType" : {
- "code" : "code",
- "description" : "description"
- },
- "accountTypeName" : "accountTypeName",
- "accountNumber" : "accountNumber"
- }, {
- "accountType" : {
- "code" : "code",
- "description" : "description"
- },
- "accountTypeName" : "accountTypeName",
- "accountNumber" : "accountNumber"
- } ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getHolds,
- apiVersion,
- nameOf(getHolds),
- "POST",
- "/accounts/v2_1_1.1/getHolds",
- "Get list of user's holded operations",
- s"""${mockedDataText(true)}
-""",
- json.parse(""""""""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "holds" : [ "", "" ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getHolds : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getHolds" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "holds" : [ "", "" ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionDetail,
- apiVersion,
- nameOf(getTransactionDetail),
- "POST",
- "/accounts/v2_1_1.1/getTransactionDetail",
- "Get detailed information about user's single transaction",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "itemId" : "itemId",
- "requestHeader" : "",
- "bookingDate" : "2000-01-23T04:56:07.000+00:00",
- "accountNumber" : "accountNumber"
-}"""),
- json.parse("""{
- "baseInfo" : "",
- "cardInfo" : {
- "cardHolder" : "cardHolder",
- "cardNumber" : "cardNumber"
- },
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "baseCurrency" : "baseCurrency",
- "usedPaymentInstrumentId" : "usedPaymentInstrumentId",
- "holdExpirationDate" : "2000-01-23T04:56:07.000+00:00",
- "zusInfo" : {
- "contributionType" : "contributionType",
- "contributionId" : "contributionId",
- "paymentTypeId" : "paymentTypeId",
- "payerInfo" : {
- "nip" : "nip",
- "additionalPayorId" : "additionalPayorId",
- "additionalPayorIdType" : "P"
- },
- "contributionPeriod" : "contributionPeriod",
- "obligationId" : "obligationId"
- },
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "transactionRate" : [ {
- "rate" : 0.8008281904610115,
- "toCurrency" : "toCurrency",
- "fromCurrency" : "fromCurrency"
- }, {
- "rate" : 0.8008281904610115,
- "toCurrency" : "toCurrency",
- "fromCurrency" : "fromCurrency"
- } ],
- "currencyDate" : "2000-01-23T04:56:07.000+00:00",
- "rejectionReason" : "rejectionReason",
- "amountBaseCurrency" : "amountBaseCurrency",
- "tppName" : "tppName"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionDetail : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getTransactionDetail" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "baseInfo" : "",
- "cardInfo" : {
- "cardHolder" : "cardHolder",
- "cardNumber" : "cardNumber"
- },
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "baseCurrency" : "baseCurrency",
- "usedPaymentInstrumentId" : "usedPaymentInstrumentId",
- "holdExpirationDate" : "2000-01-23T04:56:07.000+00:00",
- "zusInfo" : {
- "contributionType" : "contributionType",
- "contributionId" : "contributionId",
- "paymentTypeId" : "paymentTypeId",
- "payerInfo" : {
- "nip" : "nip",
- "additionalPayorId" : "additionalPayorId",
- "additionalPayorIdType" : "P"
- },
- "contributionPeriod" : "contributionPeriod",
- "obligationId" : "obligationId"
- },
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "transactionRate" : [ {
- "rate" : 0.8008281904610115,
- "toCurrency" : "toCurrency",
- "fromCurrency" : "fromCurrency"
- }, {
- "rate" : 0.8008281904610115,
- "toCurrency" : "toCurrency",
- "fromCurrency" : "fromCurrency"
- } ],
- "currencyDate" : "2000-01-23T04:56:07.000+00:00",
- "rejectionReason" : "rejectionReason",
- "amountBaseCurrency" : "amountBaseCurrency",
- "tppName" : "tppName"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionsCancelled,
- apiVersion,
- nameOf(getTransactionsCancelled),
- "POST",
- "/accounts/v2_1_1.1/getTransactionsCancelled",
- "Get list of user cancelled transactions",
- s"""${mockedDataText(true)}
-""",
- json.parse(""""""""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionsCancelled : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getTransactionsCancelled" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionsDone,
- apiVersion,
- nameOf(getTransactionsDone),
- "POST",
- "/accounts/v2_1_1.1/getTransactionsDone",
- "Get list of user done transactions",
- s"""${mockedDataText(true)}
-""",
- json.parse(""""""""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionsDone : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getTransactionsDone" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionsPending,
- apiVersion,
- nameOf(getTransactionsPending),
- "POST",
- "/accounts/v2_1_1.1/getTransactionsPending",
- "Get list of user's pending transactions",
- s"""${mockedDataText(true)}
-""",
- json.parse(""""""""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionsPending : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getTransactionsPending" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionsRejected,
- apiVersion,
- nameOf(getTransactionsRejected),
- "POST",
- "/accounts/v2_1_1.1/getTransactionsRejected",
- "Get list of user's rejected transactions",
- s"""${mockedDataText(true)}
-""",
- json.parse(""""""""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionsRejected : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getTransactionsRejected" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getTransactionsScheduled,
- apiVersion,
- nameOf(getTransactionsScheduled),
- "POST",
- "/accounts/v2_1_1.1/getTransactionsScheduled",
- "Get list of user scheduled transactions",
- s"""${mockedDataText(true)}
-""",
- json.parse(""""""""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getTransactionsScheduled : OBPEndpoint = {
- case "accounts":: "v2_1_1.1":: "getTransactionsScheduled" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "pageInfo" : {
- "previousPage" : "previousPage",
- "nextPage" : "nextPage"
- },
- "transactions" : [ "", "" ]
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.Polish.v2_1_1_1
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_AISApi extends RestHelper {
+// val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// deleteConsent ::
+// getAccount ::
+// getAccounts ::
+// getHolds ::
+// getTransactionDetail ::
+// getTransactionsCancelled ::
+// getTransactionsDone ::
+// getTransactionsPending ::
+// getTransactionsRejected ::
+// getTransactionsScheduled ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// deleteConsent,
+// apiVersion,
+// nameOf(deleteConsent),
+// "POST",
+// "/accounts/v2_1_1.1/deleteConsent",
+// "Removes consent",
+// s"""${mockedDataText(true)}
+//Removes consent""",
+// json.parse("""{
+// "consentId" : "consentId"
+//}"""),
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val deleteConsent : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "deleteConsent" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getAccount,
+// apiVersion,
+// nameOf(getAccount),
+// "POST",
+// "/accounts/v2_1_1.1/getAccount",
+// "Get detailed information about user payment account",
+// s"""${mockedDataText(true)}
+//User identification based on access token""",
+// json.parse("""{
+// "requestHeader" : "",
+// "accountNumber" : "accountNumber"
+//}"""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "account" : {
+// "auxData" : { },
+// "bank" : {
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "name" : "name"
+// },
+// "bookingBalance" : "bookingBalance",
+// "accountType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "accountTypeName" : "accountTypeName",
+// "currency" : "currency",
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : "accountNumber",
+// "accountNameClient" : "accountNameClient",
+// "accountHolderType" : "individual",
+// "availableBalance" : "availableBalance"
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getAccount : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getAccount" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "account" : {
+// "auxData" : { },
+// "bank" : {
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "name" : "name"
+// },
+// "bookingBalance" : "bookingBalance",
+// "accountType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "accountTypeName" : "accountTypeName",
+// "currency" : "currency",
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : "accountNumber",
+// "accountNameClient" : "accountNameClient",
+// "accountHolderType" : "individual",
+// "availableBalance" : "availableBalance"
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getAccounts,
+// apiVersion,
+// nameOf(getAccounts),
+// "POST",
+// "/accounts/v2_1_1.1/getAccounts",
+// "Get information about all user's payment account",
+// s"""${mockedDataText(true)}
+//User identification based on access token""",
+// json.parse("""{
+// "perPage" : 1,
+// "requestHeader" : "",
+// "pageId" : "pageId"
+//}"""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "accounts" : [ {
+// "accountType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "accountTypeName" : "accountTypeName",
+// "accountNumber" : "accountNumber"
+// }, {
+// "accountType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "accountTypeName" : "accountTypeName",
+// "accountNumber" : "accountNumber"
+// } ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getAccounts : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getAccounts" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "accounts" : [ {
+// "accountType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "accountTypeName" : "accountTypeName",
+// "accountNumber" : "accountNumber"
+// }, {
+// "accountType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "accountTypeName" : "accountTypeName",
+// "accountNumber" : "accountNumber"
+// } ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getHolds,
+// apiVersion,
+// nameOf(getHolds),
+// "POST",
+// "/accounts/v2_1_1.1/getHolds",
+// "Get list of user's holded operations",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse(""""""""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "holds" : [ "", "" ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getHolds : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getHolds" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "holds" : [ "", "" ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionDetail,
+// apiVersion,
+// nameOf(getTransactionDetail),
+// "POST",
+// "/accounts/v2_1_1.1/getTransactionDetail",
+// "Get detailed information about user's single transaction",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "itemId" : "itemId",
+// "requestHeader" : "",
+// "bookingDate" : "2000-01-23T04:56:07.000+00:00",
+// "accountNumber" : "accountNumber"
+//}"""),
+// json.parse("""{
+// "baseInfo" : "",
+// "cardInfo" : {
+// "cardHolder" : "cardHolder",
+// "cardNumber" : "cardNumber"
+// },
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "baseCurrency" : "baseCurrency",
+// "usedPaymentInstrumentId" : "usedPaymentInstrumentId",
+// "holdExpirationDate" : "2000-01-23T04:56:07.000+00:00",
+// "zusInfo" : {
+// "contributionType" : "contributionType",
+// "contributionId" : "contributionId",
+// "paymentTypeId" : "paymentTypeId",
+// "payerInfo" : {
+// "nip" : "nip",
+// "additionalPayorId" : "additionalPayorId",
+// "additionalPayorIdType" : "P"
+// },
+// "contributionPeriod" : "contributionPeriod",
+// "obligationId" : "obligationId"
+// },
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "transactionRate" : [ {
+// "rate" : 0.8008281904610115,
+// "toCurrency" : "toCurrency",
+// "fromCurrency" : "fromCurrency"
+// }, {
+// "rate" : 0.8008281904610115,
+// "toCurrency" : "toCurrency",
+// "fromCurrency" : "fromCurrency"
+// } ],
+// "currencyDate" : "2000-01-23T04:56:07.000+00:00",
+// "rejectionReason" : "rejectionReason",
+// "amountBaseCurrency" : "amountBaseCurrency",
+// "tppName" : "tppName"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionDetail : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getTransactionDetail" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "baseInfo" : "",
+// "cardInfo" : {
+// "cardHolder" : "cardHolder",
+// "cardNumber" : "cardNumber"
+// },
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "baseCurrency" : "baseCurrency",
+// "usedPaymentInstrumentId" : "usedPaymentInstrumentId",
+// "holdExpirationDate" : "2000-01-23T04:56:07.000+00:00",
+// "zusInfo" : {
+// "contributionType" : "contributionType",
+// "contributionId" : "contributionId",
+// "paymentTypeId" : "paymentTypeId",
+// "payerInfo" : {
+// "nip" : "nip",
+// "additionalPayorId" : "additionalPayorId",
+// "additionalPayorIdType" : "P"
+// },
+// "contributionPeriod" : "contributionPeriod",
+// "obligationId" : "obligationId"
+// },
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "transactionRate" : [ {
+// "rate" : 0.8008281904610115,
+// "toCurrency" : "toCurrency",
+// "fromCurrency" : "fromCurrency"
+// }, {
+// "rate" : 0.8008281904610115,
+// "toCurrency" : "toCurrency",
+// "fromCurrency" : "fromCurrency"
+// } ],
+// "currencyDate" : "2000-01-23T04:56:07.000+00:00",
+// "rejectionReason" : "rejectionReason",
+// "amountBaseCurrency" : "amountBaseCurrency",
+// "tppName" : "tppName"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionsCancelled,
+// apiVersion,
+// nameOf(getTransactionsCancelled),
+// "POST",
+// "/accounts/v2_1_1.1/getTransactionsCancelled",
+// "Get list of user cancelled transactions",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse(""""""""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionsCancelled : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getTransactionsCancelled" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionsDone,
+// apiVersion,
+// nameOf(getTransactionsDone),
+// "POST",
+// "/accounts/v2_1_1.1/getTransactionsDone",
+// "Get list of user done transactions",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse(""""""""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionsDone : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getTransactionsDone" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionsPending,
+// apiVersion,
+// nameOf(getTransactionsPending),
+// "POST",
+// "/accounts/v2_1_1.1/getTransactionsPending",
+// "Get list of user's pending transactions",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse(""""""""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionsPending : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getTransactionsPending" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionsRejected,
+// apiVersion,
+// nameOf(getTransactionsRejected),
+// "POST",
+// "/accounts/v2_1_1.1/getTransactionsRejected",
+// "Get list of user's rejected transactions",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse(""""""""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionsRejected : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getTransactionsRejected" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getTransactionsScheduled,
+// apiVersion,
+// nameOf(getTransactionsScheduled),
+// "POST",
+// "/accounts/v2_1_1.1/getTransactionsScheduled",
+// "Get list of user scheduled transactions",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse(""""""""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getTransactionsScheduled : OBPEndpoint = {
+// case "accounts":: "v2_1_1.1":: "getTransactionsScheduled" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "pageInfo" : {
+// "previousPage" : "previousPage",
+// "nextPage" : "nextPage"
+// },
+// "transactions" : [ "", "" ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/ASApi.scala b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/ASApi.scala
index e9af8fc1c1..29622c9e32 100644
--- a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/ASApi.scala
+++ b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/ASApi.scala
@@ -1,2906 +1,2906 @@
-package code.api.Polish.v2_1_1_1
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_ASApi extends RestHelper {
- val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- authorize ::
- authorizeExt ::
- token ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- authorize,
- apiVersion,
- nameOf(authorize),
- "POST",
- "/auth/v2_1_1.1/authorize",
- "Requests OAuth2 authorization code",
- s"""${mockedDataText(true)}
-Requests OAuth2 authorization code""",
- json.parse("""{
- "scope_details" : {
- "consentId" : "consentId",
- "scopeTimeLimit" : "2000-01-23T04:56:07.000+00:00",
- "throttlingPolicy" : "psd2Regulatory",
- "scopeGroupType" : "ais-accounts",
- "privilegeList" : [ {
- "pis:bundle" : {
- "typeOfTransfers" : "domestic",
- "scopeUsageLimit" : "single",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
- },
- "ais:getAccount" : {
- "scopeUsageLimit" : "single"
- },
- "pis:cancelPayment" : {
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:getRecurringPayment" : {
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "accountNumber" : { },
- "pis:domestic" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:nonEEA" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- }
- },
- "pis:recurring" : {
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "scopeUsageLimit" : "single",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
- },
- "pis:EEA" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single"
- },
- "pis:tax" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "pis:getPayment" : {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single"
- },
- "pis:getBundle" : {
- "tppBundleId" : "tppBundleId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "pis:cancelRecurringPayment" : {
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- }
- }, {
- "pis:bundle" : {
- "typeOfTransfers" : "domestic",
- "scopeUsageLimit" : "single",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
- },
- "ais:getAccount" : {
- "scopeUsageLimit" : "single"
- },
- "pis:cancelPayment" : {
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:getRecurringPayment" : {
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "accountNumber" : { },
- "pis:domestic" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:nonEEA" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- }
- },
- "pis:recurring" : {
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "scopeUsageLimit" : "single",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
- },
- "pis:EEA" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single"
- },
- "pis:tax" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "pis:getPayment" : {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single"
- },
- "pis:getBundle" : {
- "tppBundleId" : "tppBundleId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "pis:cancelRecurringPayment" : {
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- }
- } ]
- },
- "scope" : "scope",
- "response_type" : "response_type",
- "requestHeader" : "",
- "redirect_uri" : "redirect_uri",
- "state" : "state",
- "client_id" : "client_id"
-}"""),
- json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "aspspRedirectUri" : "aspspRedirectUri"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AS") :: apiTagMockedData :: Nil
- )
-
- lazy val authorize : OBPEndpoint = {
- case "auth":: "v2_1_1.1":: "authorize" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "aspspRedirectUri" : "aspspRedirectUri"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- authorizeExt,
- apiVersion,
- nameOf(authorizeExt),
- "POST",
- "/auth/v2_1_1.1/authorizeExt",
- "Requests OAuth2 authorization code based on One-time authorization code issued by External Authorization Tool",
- s"""${mockedDataText(true)}
-Requests OAuth2 authorization code based One-time authorization code issued by External Authorization Tool. Authorization code will be delivered to TPP as callback request from ASPSP if PSU authentication is confirmed by EAT. Callback function must provide similar notification also in case of unsuccessful authentication or its abandonment.""",
- json.parse("""{
- "eatType" : {
- "code" : "code",
- "description" : "description"
- },
- "scope_details" : {
- "consentId" : "consentId",
- "scopeTimeLimit" : "2000-01-23T04:56:07.000+00:00",
- "throttlingPolicy" : "psd2Regulatory",
- "scopeGroupType" : "ais-accounts",
- "privilegeList" : [ {
- "pis:bundle" : {
- "typeOfTransfers" : "domestic",
- "scopeUsageLimit" : "single",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
- },
- "ais:getAccount" : {
- "scopeUsageLimit" : "single"
- },
- "pis:cancelPayment" : {
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:getRecurringPayment" : {
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "accountNumber" : { },
- "pis:domestic" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:nonEEA" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- }
- },
- "pis:recurring" : {
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "scopeUsageLimit" : "single",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
- },
- "pis:EEA" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single"
- },
- "pis:tax" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "pis:getPayment" : {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single"
- },
- "pis:getBundle" : {
- "tppBundleId" : "tppBundleId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "pis:cancelRecurringPayment" : {
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- }
- }, {
- "pis:bundle" : {
- "typeOfTransfers" : "domestic",
- "scopeUsageLimit" : "single",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
- },
- "ais:getAccount" : {
- "scopeUsageLimit" : "single"
- },
- "pis:cancelPayment" : {
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:getRecurringPayment" : {
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "accountNumber" : { },
- "pis:domestic" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:nonEEA" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- }
- },
- "pis:recurring" : {
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "scopeUsageLimit" : "single",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
- },
- "pis:EEA" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single"
- },
- "pis:tax" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "pis:getPayment" : {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single"
- },
- "pis:getBundle" : {
- "tppBundleId" : "tppBundleId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "pis:cancelRecurringPayment" : {
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- }
- } ]
- },
- "scope" : "scope",
- "response_type" : "response_type",
- "requestHeader" : "",
- "eatCode" : "eatCode",
- "state" : "state",
- "client_id" : "client_id"
-}"""),
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AS") :: apiTagMockedData :: Nil
- )
-
- lazy val authorizeExt : OBPEndpoint = {
- case "auth":: "v2_1_1.1":: "authorizeExt" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- token,
- apiVersion,
- nameOf(token),
- "POST",
- "/auth/v2_1_1.1/token",
- "Requests OAuth2 access token value",
- s"""${mockedDataText(true)}
-Requests OAuth2 access token value""",
- json.parse("""{
- "refresh_token" : "refresh_token",
- "user_ip" : "user_ip",
- "grant_type" : "grant_type",
- "scope_details" : {
- "consentId" : "consentId",
- "scopeTimeLimit" : "2000-01-23T04:56:07.000+00:00",
- "throttlingPolicy" : "psd2Regulatory",
- "scopeGroupType" : "ais-accounts",
- "privilegeList" : [ {
- "pis:bundle" : {
- "typeOfTransfers" : "domestic",
- "scopeUsageLimit" : "single",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
- },
- "ais:getAccount" : {
- "scopeUsageLimit" : "single"
- },
- "pis:cancelPayment" : {
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:getRecurringPayment" : {
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "accountNumber" : { },
- "pis:domestic" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:nonEEA" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- }
- },
- "pis:recurring" : {
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "scopeUsageLimit" : "single",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
- },
- "pis:EEA" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single"
- },
- "pis:tax" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "pis:getPayment" : {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single"
- },
- "pis:getBundle" : {
- "tppBundleId" : "tppBundleId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "pis:cancelRecurringPayment" : {
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- }
- }, {
- "pis:bundle" : {
- "typeOfTransfers" : "domestic",
- "scopeUsageLimit" : "single",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
- },
- "ais:getAccount" : {
- "scopeUsageLimit" : "single"
- },
- "pis:cancelPayment" : {
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:getRecurringPayment" : {
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "accountNumber" : { },
- "pis:domestic" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "pis:nonEEA" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- }
- },
- "pis:recurring" : {
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "scopeUsageLimit" : "single",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
- },
- "pis:EEA" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate"
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 117
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single"
- },
- "pis:tax" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "scopeUsageLimit" : "single",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate"
- },
- "pis:getPayment" : {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "scopeUsageLimit" : "single"
- },
- "pis:getBundle" : {
- "tppBundleId" : "tppBundleId",
- "scopeUsageLimit" : "single",
- "bundleId" : "bundleId"
- },
- "pis:cancelRecurringPayment" : {
- "recurringPaymentId" : "recurringPaymentId",
- "scopeUsageLimit" : "single"
- }
- } ]
- },
- "scope" : "scope",
- "is_user_session" : true,
- "exchange_token" : "exchange_token",
- "requestHeader" : "",
- "redirect_uri" : "redirect_uri",
- "Code" : "Code",
- "client_id" : "client_id",
- "user_agent" : "user_agent"
-}"""),
- json.parse("""{
- "access_token" : "access_token",
- "refresh_token" : "refresh_token",
- "scope_details" : {
- "consentId" : "consentId",
- "resource" : {
- "accounts" : [ "accounts", "accounts" ]
- },
- "scopeTimeLimit" : "scopeTimeLimit",
- "throttlingPolicy" : "psd2Regulatory",
- "privilegeList" : {
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "pis:tax" : {
- "scopeUsageLimit" : "single"
- },
- "pis:getPayment" : {
- "scopeUsageLimit" : "single"
- },
- "pis:domestic" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "pis:bundle" : {
- "scopeUsageLimit" : "single"
- }
- }
- },
- "scope" : "scope",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "token_type" : "token_type",
- "expires_in" : "expires_in"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AS") :: apiTagMockedData :: Nil
- )
-
- lazy val token : OBPEndpoint = {
- case "auth":: "v2_1_1.1":: "token" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "access_token" : "access_token",
- "refresh_token" : "refresh_token",
- "scope_details" : {
- "consentId" : "consentId",
- "resource" : {
- "accounts" : [ "accounts", "accounts" ]
- },
- "scopeTimeLimit" : "scopeTimeLimit",
- "throttlingPolicy" : "psd2Regulatory",
- "privilegeList" : {
- "ais:getTransactionsDone" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getHolds" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsRejected" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsCancelled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsScheduled" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais-accounts:getAccounts" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "pis:tax" : {
- "scopeUsageLimit" : "single"
- },
- "pis:getPayment" : {
- "scopeUsageLimit" : "single"
- },
- "pis:domestic" : {
- "scopeUsageLimit" : "single"
- },
- "ais:getTransactionDetail" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "ais:getTransactionsPending" : {
- "scopeUsageLimit" : "single",
- "maxAllowedHistoryLong" : 880
- },
- "pis:bundle" : {
- "scopeUsageLimit" : "single"
- }
- }
- },
- "scope" : "scope",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "token_type" : "token_type",
- "expires_in" : "expires_in"
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.Polish.v2_1_1_1
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_ASApi extends RestHelper {
+// val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// authorize ::
+// authorizeExt ::
+// token ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// authorize,
+// apiVersion,
+// nameOf(authorize),
+// "POST",
+// "/auth/v2_1_1.1/authorize",
+// "Requests OAuth2 authorization code",
+// s"""${mockedDataText(true)}
+//Requests OAuth2 authorization code""",
+// json.parse("""{
+// "scope_details" : {
+// "consentId" : "consentId",
+// "scopeTimeLimit" : "2000-01-23T04:56:07.000+00:00",
+// "throttlingPolicy" : "psd2Regulatory",
+// "scopeGroupType" : "ais-accounts",
+// "privilegeList" : [ {
+// "pis:bundle" : {
+// "typeOfTransfers" : "domestic",
+// "scopeUsageLimit" : "single",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+// },
+// "ais:getAccount" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:cancelPayment" : {
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:getRecurringPayment" : {
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "accountNumber" : { },
+// "pis:domestic" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:nonEEA" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// }
+// },
+// "pis:recurring" : {
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "scopeUsageLimit" : "single",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+// },
+// "pis:EEA" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:tax" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "pis:getPayment" : {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getBundle" : {
+// "tppBundleId" : "tppBundleId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "pis:cancelRecurringPayment" : {
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// }
+// }, {
+// "pis:bundle" : {
+// "typeOfTransfers" : "domestic",
+// "scopeUsageLimit" : "single",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+// },
+// "ais:getAccount" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:cancelPayment" : {
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:getRecurringPayment" : {
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "accountNumber" : { },
+// "pis:domestic" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:nonEEA" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// }
+// },
+// "pis:recurring" : {
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "scopeUsageLimit" : "single",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+// },
+// "pis:EEA" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:tax" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "pis:getPayment" : {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getBundle" : {
+// "tppBundleId" : "tppBundleId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "pis:cancelRecurringPayment" : {
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// }
+// } ]
+// },
+// "scope" : "scope",
+// "response_type" : "response_type",
+// "requestHeader" : "",
+// "redirect_uri" : "redirect_uri",
+// "state" : "state",
+// "client_id" : "client_id"
+//}"""),
+// json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "aspspRedirectUri" : "aspspRedirectUri"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val authorize : OBPEndpoint = {
+// case "auth":: "v2_1_1.1":: "authorize" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "aspspRedirectUri" : "aspspRedirectUri"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// authorizeExt,
+// apiVersion,
+// nameOf(authorizeExt),
+// "POST",
+// "/auth/v2_1_1.1/authorizeExt",
+// "Requests OAuth2 authorization code based on One-time authorization code issued by External Authorization Tool",
+// s"""${mockedDataText(true)}
+//Requests OAuth2 authorization code based One-time authorization code issued by External Authorization Tool. Authorization code will be delivered to TPP as callback request from ASPSP if PSU authentication is confirmed by EAT. Callback function must provide similar notification also in case of unsuccessful authentication or its abandonment.""",
+// json.parse("""{
+// "eatType" : {
+// "code" : "code",
+// "description" : "description"
+// },
+// "scope_details" : {
+// "consentId" : "consentId",
+// "scopeTimeLimit" : "2000-01-23T04:56:07.000+00:00",
+// "throttlingPolicy" : "psd2Regulatory",
+// "scopeGroupType" : "ais-accounts",
+// "privilegeList" : [ {
+// "pis:bundle" : {
+// "typeOfTransfers" : "domestic",
+// "scopeUsageLimit" : "single",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+// },
+// "ais:getAccount" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:cancelPayment" : {
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:getRecurringPayment" : {
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "accountNumber" : { },
+// "pis:domestic" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:nonEEA" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// }
+// },
+// "pis:recurring" : {
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "scopeUsageLimit" : "single",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+// },
+// "pis:EEA" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:tax" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "pis:getPayment" : {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getBundle" : {
+// "tppBundleId" : "tppBundleId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "pis:cancelRecurringPayment" : {
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// }
+// }, {
+// "pis:bundle" : {
+// "typeOfTransfers" : "domestic",
+// "scopeUsageLimit" : "single",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+// },
+// "ais:getAccount" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:cancelPayment" : {
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:getRecurringPayment" : {
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "accountNumber" : { },
+// "pis:domestic" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:nonEEA" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// }
+// },
+// "pis:recurring" : {
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "scopeUsageLimit" : "single",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+// },
+// "pis:EEA" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:tax" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "pis:getPayment" : {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getBundle" : {
+// "tppBundleId" : "tppBundleId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "pis:cancelRecurringPayment" : {
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// }
+// } ]
+// },
+// "scope" : "scope",
+// "response_type" : "response_type",
+// "requestHeader" : "",
+// "eatCode" : "eatCode",
+// "state" : "state",
+// "client_id" : "client_id"
+//}"""),
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val authorizeExt : OBPEndpoint = {
+// case "auth":: "v2_1_1.1":: "authorizeExt" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// token,
+// apiVersion,
+// nameOf(token),
+// "POST",
+// "/auth/v2_1_1.1/token",
+// "Requests OAuth2 access token value",
+// s"""${mockedDataText(true)}
+//Requests OAuth2 access token value""",
+// json.parse("""{
+// "refresh_token" : "refresh_token",
+// "user_ip" : "user_ip",
+// "grant_type" : "grant_type",
+// "scope_details" : {
+// "consentId" : "consentId",
+// "scopeTimeLimit" : "2000-01-23T04:56:07.000+00:00",
+// "throttlingPolicy" : "psd2Regulatory",
+// "scopeGroupType" : "ais-accounts",
+// "privilegeList" : [ {
+// "pis:bundle" : {
+// "typeOfTransfers" : "domestic",
+// "scopeUsageLimit" : "single",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+// },
+// "ais:getAccount" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:cancelPayment" : {
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:getRecurringPayment" : {
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "accountNumber" : { },
+// "pis:domestic" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:nonEEA" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// }
+// },
+// "pis:recurring" : {
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "scopeUsageLimit" : "single",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+// },
+// "pis:EEA" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:tax" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "pis:getPayment" : {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getBundle" : {
+// "tppBundleId" : "tppBundleId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "pis:cancelRecurringPayment" : {
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// }
+// }, {
+// "pis:bundle" : {
+// "typeOfTransfers" : "domestic",
+// "scopeUsageLimit" : "single",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+// },
+// "ais:getAccount" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:cancelPayment" : {
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:getRecurringPayment" : {
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "accountNumber" : { },
+// "pis:domestic" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "pis:nonEEA" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// }
+// },
+// "pis:recurring" : {
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "scopeUsageLimit" : "single",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+// },
+// "pis:EEA" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate"
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 117
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:tax" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "scopeUsageLimit" : "single",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate"
+// },
+// "pis:getPayment" : {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getBundle" : {
+// "tppBundleId" : "tppBundleId",
+// "scopeUsageLimit" : "single",
+// "bundleId" : "bundleId"
+// },
+// "pis:cancelRecurringPayment" : {
+// "recurringPaymentId" : "recurringPaymentId",
+// "scopeUsageLimit" : "single"
+// }
+// } ]
+// },
+// "scope" : "scope",
+// "is_user_session" : true,
+// "exchange_token" : "exchange_token",
+// "requestHeader" : "",
+// "redirect_uri" : "redirect_uri",
+// "Code" : "Code",
+// "client_id" : "client_id",
+// "user_agent" : "user_agent"
+//}"""),
+// json.parse("""{
+// "access_token" : "access_token",
+// "refresh_token" : "refresh_token",
+// "scope_details" : {
+// "consentId" : "consentId",
+// "resource" : {
+// "accounts" : [ "accounts", "accounts" ]
+// },
+// "scopeTimeLimit" : "scopeTimeLimit",
+// "throttlingPolicy" : "psd2Regulatory",
+// "privilegeList" : {
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "pis:tax" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getPayment" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:domestic" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "pis:bundle" : {
+// "scopeUsageLimit" : "single"
+// }
+// }
+// },
+// "scope" : "scope",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "token_type" : "token_type",
+// "expires_in" : "expires_in"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val token : OBPEndpoint = {
+// case "auth":: "v2_1_1.1":: "token" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "access_token" : "access_token",
+// "refresh_token" : "refresh_token",
+// "scope_details" : {
+// "consentId" : "consentId",
+// "resource" : {
+// "accounts" : [ "accounts", "accounts" ]
+// },
+// "scopeTimeLimit" : "scopeTimeLimit",
+// "throttlingPolicy" : "psd2Regulatory",
+// "privilegeList" : {
+// "ais:getTransactionsDone" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getHolds" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsRejected" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsCancelled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsScheduled" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais-accounts:getAccounts" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "pis:tax" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:getPayment" : {
+// "scopeUsageLimit" : "single"
+// },
+// "pis:domestic" : {
+// "scopeUsageLimit" : "single"
+// },
+// "ais:getTransactionDetail" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "ais:getTransactionsPending" : {
+// "scopeUsageLimit" : "single",
+// "maxAllowedHistoryLong" : 880
+// },
+// "pis:bundle" : {
+// "scopeUsageLimit" : "single"
+// }
+// }
+// },
+// "scope" : "scope",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "token_type" : "token_type",
+// "expires_in" : "expires_in"
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/CAFApi.scala b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/CAFApi.scala
index 96792a58a8..4df682fe57 100644
--- a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/CAFApi.scala
+++ b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/CAFApi.scala
@@ -1,84 +1,84 @@
-package code.api.Polish.v2_1_1_1
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_CAFApi extends RestHelper {
- val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- getConfirmationOfFunds ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- getConfirmationOfFunds,
- apiVersion,
- nameOf(getConfirmationOfFunds),
- "POST",
- "/confirmation/v2_1_1.1/getConfirmationOfFunds",
- "Confirmation of the availability of funds",
- s"""${mockedDataText(true)}
-Confirming the availability on the payers account of the amount necessary to execute the payment transaction, as defined in Art. 65 PSD2.""",
- json.parse("""{
- "amount" : "amount",
- "requestHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "ipAddress" : "ipAddress",
- "tppId" : "tppId",
- "userAgent" : "userAgent"
- },
- "currency" : "currency",
- "accountNumber" : "accountNumber"
-}"""),
- json.parse("""{
- "fundsAvailable" : true,
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("CAF") :: apiTagMockedData :: Nil
- )
-
- lazy val getConfirmationOfFunds : OBPEndpoint = {
- case "confirmation":: "v2_1_1.1":: "getConfirmationOfFunds" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "fundsAvailable" : true,
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.Polish.v2_1_1_1
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_CAFApi extends RestHelper {
+// val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// getConfirmationOfFunds ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// getConfirmationOfFunds,
+// apiVersion,
+// nameOf(getConfirmationOfFunds),
+// "POST",
+// "/confirmation/v2_1_1.1/getConfirmationOfFunds",
+// "Confirmation of the availability of funds",
+// s"""${mockedDataText(true)}
+//Confirming the availability on the payers account of the amount necessary to execute the payment transaction, as defined in Art. 65 PSD2.""",
+// json.parse("""{
+// "amount" : "amount",
+// "requestHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "ipAddress" : "ipAddress",
+// "tppId" : "tppId",
+// "userAgent" : "userAgent"
+// },
+// "currency" : "currency",
+// "accountNumber" : "accountNumber"
+//}"""),
+// json.parse("""{
+// "fundsAvailable" : true,
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("CAF") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getConfirmationOfFunds : OBPEndpoint = {
+// case "confirmation":: "v2_1_1.1":: "getConfirmationOfFunds" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "fundsAvailable" : true,
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/OBP_PAPI_2_1_1_1.scala b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/OBP_PAPI_2_1_1_1.scala
index c576d2d14f..1c132b0a52 100644
--- a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/OBP_PAPI_2_1_1_1.scala
+++ b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/OBP_PAPI_2_1_1_1.scala
@@ -1,72 +1,72 @@
-/**
- * Open Bank Project - API
- * Copyright (C) 2011-2019, TESOBE GmbH
- **
- *This program is free software: you can redistribute it and/or modify
- *it under the terms of the GNU Affero General Public License as published by
- *the Free Software Foundation, either version 3 of the License, or
- *(at your option) any later version.
- **
- *This program is distributed in the hope that it will be useful,
- *but WITHOUT ANY WARRANTY; without even the implied warranty of
- *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *GNU Affero General Public License for more details.
- **
- *You should have received a copy of the GNU Affero General Public License
- *along with this program. If not, see .
- **
- *Email: contact@tesobe.com
- *TESOBE GmbH
- *Osloerstrasse 16/17
- *Berlin 13359, Germany
- **
- *This product includes software developed at
- *TESOBE (http://www.tesobe.com/)
- * by
- *Simon Redfern : simon AT tesobe DOT com
- *Stefan Bethge : stefan AT tesobe DOT com
- *Everett Sochowski : everett AT tesobe DOT com
- *Ayoub Benali: ayoub AT tesobe DOT com
- *
- */
-package code.api.Polish.v2_1_1_1
-
-import code.api.OBPRestHelper
-import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
-import code.api.util.ScannedApis
-import code.util.Helper.MdcLoggable
-import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
-
-import scala.collection.mutable.ArrayBuffer
-
-
-
-
-/*
-This file defines which endpoints from all the versions are available in v1
- */
-object OBP_PAPI_2_1_1_1 extends OBPRestHelper with MdcLoggable with ScannedApis {
- //please modify these three parameter if it is not correct.
- override val apiVersion = ApiVersion.polishApiV2111
- val versionStatus = ApiVersionStatus.DRAFT.toString
-
- private[this] val endpoints =
- APIMethods_AISApi.endpoints ++
- APIMethods_ASApi.endpoints ++
- APIMethods_CAFApi.endpoints ++
- APIMethods_PISApi.endpoints
-
- override val allResourceDocs: ArrayBuffer[ResourceDoc] =
- APIMethods_AISApi.resourceDocs ++
- APIMethods_ASApi.resourceDocs ++
- APIMethods_CAFApi.resourceDocs ++
- APIMethods_PISApi.resourceDocs
-
- // Filter the possible endpoints by the disabled / enabled Props settings and add them together
- override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
-
- // Make them available for use!
- registerRoutes(routes, allResourceDocs, apiPrefix)
-
- logger.info(s"version $version has been run! There are ${routes.length} routes.")
-}
+///**
+// * Open Bank Project - API
+// * Copyright (C) 2011-2019, TESOBE GmbH
+// **
+// *This program is free software: you can redistribute it and/or modify
+// *it under the terms of the GNU Affero General Public License as published by
+// *the Free Software Foundation, either version 3 of the License, or
+// *(at your option) any later version.
+// **
+// *This program is distributed in the hope that it will be useful,
+// *but WITHOUT ANY WARRANTY; without even the implied warranty of
+// *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// *GNU Affero General Public License for more details.
+// **
+// *You should have received a copy of the GNU Affero General Public License
+// *along with this program. If not, see .
+// **
+// *Email: contact@tesobe.com
+// *TESOBE GmbH
+// *Osloerstrasse 16/17
+// *Berlin 13359, Germany
+// **
+// *This product includes software developed at
+// *TESOBE (http://www.tesobe.com/)
+// * by
+// *Simon Redfern : simon AT tesobe DOT com
+// *Stefan Bethge : stefan AT tesobe DOT com
+// *Everett Sochowski : everett AT tesobe DOT com
+// *Ayoub Benali: ayoub AT tesobe DOT com
+// *
+// */
+//package code.api.Polish.v2_1_1_1
+//
+//import code.api.OBPRestHelper
+//import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
+//import code.api.util.ScannedApis
+//import code.util.Helper.MdcLoggable
+//import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
+//
+//import scala.collection.mutable.ArrayBuffer
+//
+//
+//
+//
+///*
+//This file defines which endpoints from all the versions are available in v1
+// */
+//object OBP_PAPI_2_1_1_1 extends OBPRestHelper with MdcLoggable with ScannedApis {
+// //please modify these three parameter if it is not correct.
+// override val apiVersion = ApiVersion.polishApiV2111
+// val versionStatus = ApiVersionStatus.DRAFT.toString
+//
+// private[this] val endpoints =
+// APIMethods_AISApi.endpoints ++
+// APIMethods_ASApi.endpoints ++
+// APIMethods_CAFApi.endpoints ++
+// APIMethods_PISApi.endpoints
+//
+// override val allResourceDocs: ArrayBuffer[ResourceDoc] =
+// APIMethods_AISApi.resourceDocs ++
+// APIMethods_ASApi.resourceDocs ++
+// APIMethods_CAFApi.resourceDocs ++
+// APIMethods_PISApi.resourceDocs
+//
+// // Filter the possible endpoints by the disabled / enabled Props settings and add them together
+// override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
+//
+// // Make them available for use!
+// registerRoutes(routes, allResourceDocs, apiPrefix)
+//
+// logger.info(s"version $version has been run! There are ${routes.length} routes.")
+//}
diff --git a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/PISApi.scala b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/PISApi.scala
index 6a21cedf7f..7e3bffbc6a 100644
--- a/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/PISApi.scala
+++ b/obp-api/src/main/scala/code/api/Polish/v2_1_1_1/PISApi.scala
@@ -1,1055 +1,1055 @@
-package code.api.Polish.v2_1_1_1
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_PISApi extends RestHelper {
- val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- bundle ::
- cancelPayments ::
- cancelRecurringPayment ::
- domestic ::
- eEA ::
- getBundle ::
- getMultiplePayments ::
- getPayment ::
- getRecurringPayment ::
- nonEEA ::
- recurring ::
- tax ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- bundle,
- apiVersion,
- nameOf(bundle),
- "POST",
- "/payments/v2_1_1.1/bundle",
- "Initiate many transfers as bundle",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "tppBundleId" : "tppBundleId",
- "typeOfTransfers" : "domestic",
- "taxTransfers" : [ {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "requestHeader" : "",
- "domesticTransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "EEATransfers" : [ {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- }, {
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "hold" : true
- } ],
- "transfersTotalAmount" : "transfersTotalAmount",
- "nonEEATransfers" : [ {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- }, {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- } ]
-}"""),
- json.parse("""{
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ],
- "bundleId" : "bundleId",
- "bundleDetailedStatus" : "bundleDetailedStatus",
- "bundleStatus" : "inProgress"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val bundle : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "bundle" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ],
- "bundleId" : "bundleId",
- "bundleDetailedStatus" : "bundleDetailedStatus",
- "bundleStatus" : "inProgress"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- cancelPayments,
- apiVersion,
- nameOf(cancelPayments),
- "POST",
- "/payments/v2_1_1.1/cancelPayments",
- "Cancelation of future dated payment",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "paymentId" : "paymentId",
- "bundleId" : "bundleId",
- "requestHeader" : ""
-}"""),
- json.parse("""{
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ]
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val cancelPayments : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "cancelPayments" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ]
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- cancelRecurringPayment,
- apiVersion,
- nameOf(cancelRecurringPayment),
- "POST",
- "/payments/v2_1_1.1/cancelRecurringPayment",
- "Cancelation of recurring payment",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "recurringPaymentId" : "recurringPaymentId",
- "requestHeader" : ""
-}"""),
- json.parse("""{
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "recurringPaymentStatus" : "submitted",
- "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val cancelRecurringPayment : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "cancelRecurringPayment" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "recurringPaymentStatus" : "submitted",
- "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- domestic,
- apiVersion,
- nameOf(domestic),
- "POST",
- "/payments/v2_1_1.1/domestic",
- "Initiate domestic transfer",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "requestHeader" : "",
- "hold" : true
-}"""),
- json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val domestic : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "domestic" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- eEA,
- apiVersion,
- nameOf(eEA),
- "POST",
- "/payments/v2_1_1.1/EEA",
- "Initiate SEPA foreign transfers",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "transferData" : "",
- "tppTransactionId" : "tppTransactionId",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "requestHeader" : "",
- "hold" : true
-}"""),
- json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val eEA : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "EEA" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getBundle,
- apiVersion,
- nameOf(getBundle),
- "POST",
- "/payments/v2_1_1.1/getBundle",
- "Get the status of bundle of payments",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "tppBundleId" : "tppBundleId",
- "transactionsIncluded" : true,
- "bundleId" : "bundleId",
- "requestHeader" : ""
-}"""),
- json.parse("""{
- "tppBundleId" : "tppBundleId",
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ],
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "bundleId" : "bundleId",
- "bundleDetailedStatus" : "bundleDetailedStatus",
- "bundleStatus" : "inProgress"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getBundle : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "getBundle" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "tppBundleId" : "tppBundleId",
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ],
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "bundleId" : "bundleId",
- "bundleDetailedStatus" : "bundleDetailedStatus",
- "bundleStatus" : "inProgress"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getMultiplePayments,
- apiVersion,
- nameOf(getMultiplePayments),
- "POST",
- "/payments/v2_1_1.1/getMultiplePayments",
- "Get the status of multiple payments",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "payments" : [ {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "accessToken" : "accessToken"
- }, {
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "accessToken" : "accessToken"
- } ],
- "requestHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "ipAddress" : "ipAddress",
- "tppId" : "tppId",
- "userAgent" : "userAgent"
- }
-}"""),
- json.parse("""{
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ],
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getMultiplePayments : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "getMultiplePayments" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "payments" : [ {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- }, {
- "generalStatus" : { },
- "tppTransactionId" : "tppTransactionId",
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "executionMode" : "Immediate"
- } ],
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getPayment,
- apiVersion,
- nameOf(getPayment),
- "POST",
- "/payments/v2_1_1.1/getPayment",
- "Get the status of payment",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "tppTransactionId" : "tppTransactionId",
- "paymentId" : "paymentId",
- "requestHeader" : ""
-}"""),
- json.parse(""""""""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getPayment : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "getPayment" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse(""""""""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- getRecurringPayment,
- apiVersion,
- nameOf(getRecurringPayment),
- "POST",
- "/payments/v2_1_1.1/getRecurringPayment",
- "Get the status of recurring payment",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "requestHeader" : ""
-}"""),
- json.parse("""{
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "recurringPaymentStatus" : "submitted",
- "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val getRecurringPayment : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "getRecurringPayment" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "recurringPaymentId" : "recurringPaymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- },
- "recurringPaymentStatus" : "submitted",
- "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- nonEEA,
- apiVersion,
- nameOf(nonEEA),
- "POST",
- "/payments/v2_1_1.1/nonEEA",
- "Initiate non SEPA foreign transfers",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "tppTransactionId" : "tppTransactionId",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "executionMode" : "Immediate",
- "requestHeader" : "",
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
-}"""),
- json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val nonEEA : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "nonEEA" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- recurring,
- apiVersion,
- nameOf(recurring),
- "POST",
- "/payments/v2_1_1.1/recurring",
- "Defines new recurring payment",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "tppRecurringPaymentId" : "tppRecurringPaymentId",
- "nonEEAPayment" : {
- "transferData" : "",
- "transferCharges" : "transferCharges",
- "system" : "Swift",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "recipientBank" : {
- "code" : "code",
- "address" : "",
- "bicOrSwift" : "bicOrSwift",
- "countryCode" : "countryCode",
- "name" : "name"
- },
- "hold" : true
- },
- "domesticPayment" : {
- "transferData" : "",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "requestHeader" : "",
- "EEAPayment" : {
- "transferData" : "",
- "system" : "SEPA",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- },
- "accountNumber" : { }
- },
- "hold" : true
- },
- "taxPayment" : {
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "hold" : true
- },
- "typeOfPayment" : "domestic"
-}"""),
- json.parse("""{
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "recurringPaymentId" : "recurringPaymentId",
- "recurringPaymentStatus" : "submitted",
- "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val recurring : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "recurring" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "recurrence" : {
- "endDate" : "2000-01-23",
- "startDate" : "2000-01-23",
- "frequency" : {
- "periodType" : "day",
- "periodValue" : 1
- },
- "dayOffOffsetType" : "before"
- },
- "recurringPaymentId" : "recurringPaymentId",
- "recurringPaymentStatus" : "submitted",
- "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- tax,
- apiVersion,
- nameOf(tax),
- "POST",
- "/payments/v2_1_1.1/tax",
- "Initiate tax transfer",
- s"""${mockedDataText(true)}
-""",
- json.parse("""{
- "transferData" : "",
- "usInfo" : {
- "periodId" : "periodId",
- "periodType" : "periodType",
- "payerInfo" : {
- "payorId" : "payorId",
- "payorIdType" : "N"
- },
- "formCode" : "formCode",
- "year" : 6026,
- "obligationId" : "obligationId"
- },
- "tppTransactionId" : "tppTransactionId",
- "system" : "Elixir",
- "sender" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "deliveryMode" : "ExpressD0",
- "recipient" : {
- "nameAddress" : {
- "value" : [ "value", "value", "value", "value" ]
- }
- },
- "executionMode" : "Immediate",
- "requestHeader" : "",
- "hold" : true
-}"""),
- json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PIS") :: apiTagMockedData :: Nil
- )
-
- lazy val tax : OBPEndpoint = {
- case "payments":: "v2_1_1.1":: "tax" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "generalStatus" : { },
- "detailedStatus" : "detailedStatus",
- "paymentId" : "paymentId",
- "responseHeader" : {
- "sendDate" : "2000-01-23T04:56:07.000+00:00",
- "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "isCallback" : true
- }
-}"""), callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.Polish.v2_1_1_1
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_PISApi extends RestHelper {
+// val apiVersion = OBP_PAPI_2_1_1_1.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// bundle ::
+// cancelPayments ::
+// cancelRecurringPayment ::
+// domestic ::
+// eEA ::
+// getBundle ::
+// getMultiplePayments ::
+// getPayment ::
+// getRecurringPayment ::
+// nonEEA ::
+// recurring ::
+// tax ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// bundle,
+// apiVersion,
+// nameOf(bundle),
+// "POST",
+// "/payments/v2_1_1.1/bundle",
+// "Initiate many transfers as bundle",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "tppBundleId" : "tppBundleId",
+// "typeOfTransfers" : "domestic",
+// "taxTransfers" : [ {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "requestHeader" : "",
+// "domesticTransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "EEATransfers" : [ {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "hold" : true
+// } ],
+// "transfersTotalAmount" : "transfersTotalAmount",
+// "nonEEATransfers" : [ {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// }, {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// } ]
+//}"""),
+// json.parse("""{
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ],
+// "bundleId" : "bundleId",
+// "bundleDetailedStatus" : "bundleDetailedStatus",
+// "bundleStatus" : "inProgress"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val bundle : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "bundle" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ],
+// "bundleId" : "bundleId",
+// "bundleDetailedStatus" : "bundleDetailedStatus",
+// "bundleStatus" : "inProgress"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// cancelPayments,
+// apiVersion,
+// nameOf(cancelPayments),
+// "POST",
+// "/payments/v2_1_1.1/cancelPayments",
+// "Cancelation of future dated payment",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "paymentId" : "paymentId",
+// "bundleId" : "bundleId",
+// "requestHeader" : ""
+//}"""),
+// json.parse("""{
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ]
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val cancelPayments : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "cancelPayments" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ]
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// cancelRecurringPayment,
+// apiVersion,
+// nameOf(cancelRecurringPayment),
+// "POST",
+// "/payments/v2_1_1.1/cancelRecurringPayment",
+// "Cancelation of recurring payment",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "recurringPaymentId" : "recurringPaymentId",
+// "requestHeader" : ""
+//}"""),
+// json.parse("""{
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "recurringPaymentStatus" : "submitted",
+// "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val cancelRecurringPayment : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "cancelRecurringPayment" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "recurringPaymentStatus" : "submitted",
+// "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// domestic,
+// apiVersion,
+// nameOf(domestic),
+// "POST",
+// "/payments/v2_1_1.1/domestic",
+// "Initiate domestic transfer",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "requestHeader" : "",
+// "hold" : true
+//}"""),
+// json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val domestic : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "domestic" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// eEA,
+// apiVersion,
+// nameOf(eEA),
+// "POST",
+// "/payments/v2_1_1.1/EEA",
+// "Initiate SEPA foreign transfers",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "transferData" : "",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "requestHeader" : "",
+// "hold" : true
+//}"""),
+// json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val eEA : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "EEA" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getBundle,
+// apiVersion,
+// nameOf(getBundle),
+// "POST",
+// "/payments/v2_1_1.1/getBundle",
+// "Get the status of bundle of payments",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "tppBundleId" : "tppBundleId",
+// "transactionsIncluded" : true,
+// "bundleId" : "bundleId",
+// "requestHeader" : ""
+//}"""),
+// json.parse("""{
+// "tppBundleId" : "tppBundleId",
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ],
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "bundleId" : "bundleId",
+// "bundleDetailedStatus" : "bundleDetailedStatus",
+// "bundleStatus" : "inProgress"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getBundle : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "getBundle" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "tppBundleId" : "tppBundleId",
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ],
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "bundleId" : "bundleId",
+// "bundleDetailedStatus" : "bundleDetailedStatus",
+// "bundleStatus" : "inProgress"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getMultiplePayments,
+// apiVersion,
+// nameOf(getMultiplePayments),
+// "POST",
+// "/payments/v2_1_1.1/getMultiplePayments",
+// "Get the status of multiple payments",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "payments" : [ {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "accessToken" : "accessToken"
+// }, {
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "accessToken" : "accessToken"
+// } ],
+// "requestHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "ipAddress" : "ipAddress",
+// "tppId" : "tppId",
+// "userAgent" : "userAgent"
+// }
+//}"""),
+// json.parse("""{
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ],
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getMultiplePayments : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "getMultiplePayments" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "payments" : [ {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// }, {
+// "generalStatus" : { },
+// "tppTransactionId" : "tppTransactionId",
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "executionMode" : "Immediate"
+// } ],
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getPayment,
+// apiVersion,
+// nameOf(getPayment),
+// "POST",
+// "/payments/v2_1_1.1/getPayment",
+// "Get the status of payment",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "tppTransactionId" : "tppTransactionId",
+// "paymentId" : "paymentId",
+// "requestHeader" : ""
+//}"""),
+// json.parse(""""""""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getPayment : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "getPayment" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse(""""""""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// getRecurringPayment,
+// apiVersion,
+// nameOf(getRecurringPayment),
+// "POST",
+// "/payments/v2_1_1.1/getRecurringPayment",
+// "Get the status of recurring payment",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "requestHeader" : ""
+//}"""),
+// json.parse("""{
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "recurringPaymentStatus" : "submitted",
+// "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val getRecurringPayment : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "getRecurringPayment" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "recurringPaymentId" : "recurringPaymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// },
+// "recurringPaymentStatus" : "submitted",
+// "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// nonEEA,
+// apiVersion,
+// nameOf(nonEEA),
+// "POST",
+// "/payments/v2_1_1.1/nonEEA",
+// "Initiate non SEPA foreign transfers",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "executionMode" : "Immediate",
+// "requestHeader" : "",
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+//}"""),
+// json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val nonEEA : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "nonEEA" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// recurring,
+// apiVersion,
+// nameOf(recurring),
+// "POST",
+// "/payments/v2_1_1.1/recurring",
+// "Defines new recurring payment",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "tppRecurringPaymentId" : "tppRecurringPaymentId",
+// "nonEEAPayment" : {
+// "transferData" : "",
+// "transferCharges" : "transferCharges",
+// "system" : "Swift",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "recipientBank" : {
+// "code" : "code",
+// "address" : "",
+// "bicOrSwift" : "bicOrSwift",
+// "countryCode" : "countryCode",
+// "name" : "name"
+// },
+// "hold" : true
+// },
+// "domesticPayment" : {
+// "transferData" : "",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "requestHeader" : "",
+// "EEAPayment" : {
+// "transferData" : "",
+// "system" : "SEPA",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// },
+// "accountNumber" : { }
+// },
+// "hold" : true
+// },
+// "taxPayment" : {
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "hold" : true
+// },
+// "typeOfPayment" : "domestic"
+//}"""),
+// json.parse("""{
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "recurringPaymentId" : "recurringPaymentId",
+// "recurringPaymentStatus" : "submitted",
+// "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val recurring : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "recurring" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "recurrence" : {
+// "endDate" : "2000-01-23",
+// "startDate" : "2000-01-23",
+// "frequency" : {
+// "periodType" : "day",
+// "periodValue" : 1
+// },
+// "dayOffOffsetType" : "before"
+// },
+// "recurringPaymentId" : "recurringPaymentId",
+// "recurringPaymentStatus" : "submitted",
+// "recurringPaymentDetailedStatus" : "recurringPaymentDetailedStatus"
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// tax,
+// apiVersion,
+// nameOf(tax),
+// "POST",
+// "/payments/v2_1_1.1/tax",
+// "Initiate tax transfer",
+// s"""${mockedDataText(true)}
+//""",
+// json.parse("""{
+// "transferData" : "",
+// "usInfo" : {
+// "periodId" : "periodId",
+// "periodType" : "periodType",
+// "payerInfo" : {
+// "payorId" : "payorId",
+// "payorIdType" : "N"
+// },
+// "formCode" : "formCode",
+// "year" : 6026,
+// "obligationId" : "obligationId"
+// },
+// "tppTransactionId" : "tppTransactionId",
+// "system" : "Elixir",
+// "sender" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "deliveryMode" : "ExpressD0",
+// "recipient" : {
+// "nameAddress" : {
+// "value" : [ "value", "value", "value", "value" ]
+// }
+// },
+// "executionMode" : "Immediate",
+// "requestHeader" : "",
+// "hold" : true
+//}"""),
+// json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PIS") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val tax : OBPEndpoint = {
+// case "payments":: "v2_1_1.1":: "tax" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "generalStatus" : { },
+// "detailedStatus" : "detailedStatus",
+// "paymentId" : "paymentId",
+// "responseHeader" : {
+// "sendDate" : "2000-01-23T04:56:07.000+00:00",
+// "requestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
+// "isCallback" : true
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerJSONFactory.scala b/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerJSONFactory.scala
index 1c6b3ace2f..ae2f203d85 100644
--- a/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerJSONFactory.scala
+++ b/obp-api/src/main/scala/code/api/ResourceDocs1_4_0/SwaggerJSONFactory.scala
@@ -15,11 +15,12 @@ import scala.reflect.runtime.universe._
import java.lang.{Boolean => XBoolean, Double => XDouble, Float => XFloat, Integer => XInt, Long => XLong, String => XString}
import java.math.{BigDecimal => JBigDecimal}
-import code.api.AUOpenBanking.v1_0_0.ApiCollector
+// Commented out: Lift endpoints removed (AUOpenBanking, Polish, STET)
+//import code.api.AUOpenBanking.v1_0_0.ApiCollector
import code.api.Constant
-import code.api.Polish.v2_1_1_1.OBP_PAPI_2_1_1_1
+//import code.api.Polish.v2_1_1_1.OBP_PAPI_2_1_1_1
import code.api.ResourceDocs1_4_0.SwaggerDefinitionsJSON.{NotSupportedYet, notSupportedYet}
-import code.api.STET.v1_4.OBP_STET_1_4
+//import code.api.STET.v1_4.OBP_STET_1_4
import code.api.UKOpenBanking.v2_0_0.OBP_UKOpenBanking_200
import code.api.UKOpenBanking.v3_1_0.OBP_UKOpenBanking_310
import code.api.berlin.group.v1_3.{OBP_BERLIN_GROUP_1_3, OBP_BERLIN_GROUP_1_3_Alias}
@@ -333,15 +334,11 @@ object SwaggerJSONFactory extends MdcLoggable {
val urlPrefix= apiVersion.urlPrefix
(
s"${standard} ${urlPrefix.split("-").map(_.capitalize).mkString(" ")}",
- if (apiVersion == OBP_STET_1_4.apiVersion
- || apiVersion == OBP_UKOpenBanking_200.apiVersion
+ // Commented out: STET / Polish / AUOpenBanking Lift endpoints removed
+ if (apiVersion == OBP_UKOpenBanking_200.apiVersion
|| OBP_UKOpenBanking_310.apiVersion == OBP_UKOpenBanking_200.apiVersion
- ) s"custom, proprietary license: personal use is allowed and free, modifications or re-publishing is not allowed"
- else if (apiVersion == OBP_PAPI_2_1_1_1.apiVersion)
- "Creative Commons Attribution 3.0 Unported Poland (CC BY 3.0 PL)"
- else if (apiVersion == ApiCollector.apiVersion)
- "Creative Commons Attribution 3.0 Australia (CC BY 3.0 AU)"
- else if (apiVersion == OBP_BERLIN_GROUP_1_3.apiVersion
+ ) s"custom, proprietary license: personal use is allowed and free, modifications or re-publishing is not allowed"
+ else if (apiVersion == OBP_BERLIN_GROUP_1_3.apiVersion
|| apiVersion == OBP_BERLIN_GROUP_1_3_Alias.apiVersion
) "Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND)"
else
diff --git a/obp-api/src/main/scala/code/api/STET/v1_4/AISPApi.scala b/obp-api/src/main/scala/code/api/STET/v1_4/AISPApi.scala
index dbe0751722..8c017739cf 100644
--- a/obp-api/src/main/scala/code/api/STET/v1_4/AISPApi.scala
+++ b/obp-api/src/main/scala/code/api/STET/v1_4/AISPApi.scala
@@ -1,463 +1,463 @@
-package code.api.STET.v1_4
-
-import scala.language.implicitConversions
-import code.api.APIFailureNewStyle
-import code.api.STET.v1_4.JSONFactory_STET_1_4._
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil.{defaultBankId, _}
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import code.api.util.NewStyle.HttpCode
-import code.api.util.newstyle.ViewNewStyle
-import code.api.util.{ApiTag, NewStyle}
-import code.bankconnectors.Connector
-import code.model._
-import code.util.Helper
-import code.views.Views
-import com.github.dwickern.macros.NameOf.nameOf
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-import com.openbankproject.commons.model.{AccountId, BankId, BankIdAccountId}
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.mutable.ArrayBuffer
-import scala.concurrent.Future
-
-object APIMethods_AISPApi extends RestHelper {
- val apiVersion = OBP_STET_1_4.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- accountsBalancesGet ::
- accountsGet ::
- accountsTransactionsGet ::
- consentsPut ::
- endUserIdentityGet ::
- trustedBeneficiariesGet ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- accountsBalancesGet,
- apiVersion,
- nameOf(accountsBalancesGet),
- "GET",
- "/accounts/ACCOUNTRESOURCEID/balances",
- "Retrieval of an account balances report (AISP)",
- s"""${mockedDataText(false)}
- ### Description
-
-This call returns a set of balances for a given PSU account that is specified by the AISP through an account resource Identification
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the AISP role
-* The TPP and the PSU have a contract that has been enrolled by the ASPSP
- * At this step, the ASPSP has delivered an OAUTH2 "Authorization Code" or "Resource Owner Password" access token to the TPP (cf. § 3.4.2).
-
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
-* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
-* The TPP has previously retrieved the list of available accounts for the PSU
-
-### Business flow
-
-The AISP requests the ASPSP on one of the PSU's accounts.
-The ASPSP answers by providing a list of balances on this account.
-
-* The ASPSP must provide at least the accounting balance on the account.
-* The ASPSP can provide other balance restitutions, e.g. instant balance, as well, if possible.
-* Actually, from the PSD2 perspective, any other balances that are provided through the Web-Banking service of the ASPSP must also be provided by this ASPSP through the API.
-
-
- """,
- EmptyBody,
- json.parse("""{
- | "balances": [
- | {
- | "name": "Solde comptable au 12/01/2017",
- | "balanceAmount": {
- | "currency": "EUR",
- | "amount": "123.45"
- | },
- | "balanceType": "CLBD",
- | "lastCommittedTransaction": "A452CH"
- | }
- | ],
- | "_links": {
- | "self": {
- | "href": "v1/accounts/Alias1/balances-report"
- | },
- | "parent-list": {
- | "href": "v1/accounts"
- | },
- | "transactions": {
- | "href": "v1/accounts/Alias1/transactions"
- | }
- | }
- |}
- |""".stripMargin),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AISP") :: Nil
- )
-
- lazy val accountsBalancesGet : OBPEndpoint = {
- case "accounts" :: accountresourceid:: "balances" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- _ <- Helper.booleanToFuture(failMsg= DefaultBankIdNotSet, cc=callContext) { defaultBankId != "DEFAULT_BANK_ID_NOT_SET" }
- (_, callContext) <- NewStyle.function.getBank(BankId(defaultBankId), callContext)
- (bankAccount, callContext) <- NewStyle.function.checkBankAccountExists(BankId(defaultBankId), AccountId(accountresourceid), callContext)
- view <- ViewNewStyle.checkOwnerViewAccessAndReturnOwnerView(u, BankIdAccountId(bankAccount.bankId, bankAccount.accountId), callContext)
- moderatedAccount <- Future {bankAccount.moderatedBankAccount(view, BankIdAccountId(bankAccount.bankId, bankAccount.accountId), Full(u), callContext)} map {
- x => fullBoxOrException(x ~> APIFailureNewStyle(UnknownError, 400, callContext.map(_.toLight)))
- } map { unboxFull(_) }
- } yield {
- (createAccountBalanceJSON(moderatedAccount), HttpCode.`200`(callContext))
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsGet,
- apiVersion,
- nameOf(accountsGet),
- "GET",
- "/accounts",
- "Retrieval of the PSU accounts (AISP)",
- s"""${mockedDataText(false)}
- ### Description
-
-This call returns all payment accounts that are relevant the PSU on behalf of whom the AISP is connected. Thanks to HYPERMEDIA, each account is returned with the links aiming to ease access to the relevant transactions and balances. The result may be subject to pagination (i.e. retrieving a partial result in case of having too many results) through a set of pages by the ASPSP. Thereafter, the AISP may ask for the first, next, previous or last page of results.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the AISP role.
-* The TPP and the PSU have a contract that has been enrolled by the ASPSP
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
-* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
-
-### Business Flow
-
-The TPP sends a request to the ASPSP for retrieving the list of the PSU payment accounts. The ASPSP computes the relevant PSU accounts and builds the answer as an accounts list. The result may be subject to pagination in order to avoid an excessive result set. Each payment account will be provided with its characteristics.
-
- """,
- EmptyBody,
- json.parse("""{
- | "accounts": [
- | {
- | "resourceId": "Alias1",
- | "bicFi": "BNKAFRPPXXX",
- | "name": "Compte de Mr et Mme Dupont",
- | "usage": "PRIV",
- | "cashAccountType": "CACC",
- | "currency": "EUR",
- | "psuStatus": "Co-account Holder",
- | "_links": {
- | "balances": {
- | "href": "v1/accounts/Alias1/balances"
- | },
- | "transactions": {
- | "href": "v1/accounts/Alias1/transactions"
- | }
- | }
- | }
- | ],
- | "_links": {
- | "self": {
- | "href": "v1/accounts?page=2"
- | },
- | "first": {
- | "href": "v1/accounts"
- | },
- | "last": {
- | "href": "v1/accounts?page=last",
- | "templated": true
- | },
- | "next": {
- | "href": "v1/accounts?page=3",
- | "templated": true
- | },
- | "prev": {
- | "href": "v1/accounts",
- | "templated": true
- | }
- | }
- |}""".stripMargin),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AISP") :: Nil
- )
-
- lazy val accountsGet : OBPEndpoint = {
- case "accounts" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
-
- _ <- Helper.booleanToFuture(failMsg= DefaultBankIdNotSet, cc=callContext) {defaultBankId != "DEFAULT_BANK_ID_NOT_SET"}
-
- bankId = BankId(defaultBankId)
-
- (_, callContext) <- NewStyle.function.getBank(bankId, callContext)
-
- availablePrivateAccounts <- Views.views.vend.getPrivateBankAccountsFuture(u, bankId)
-
- (accounts, callContext)<- NewStyle.function.getBankAccounts(availablePrivateAccounts, callContext)
-
- } yield {
- (createTransactionListJSON(accounts), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- accountsTransactionsGet,
- apiVersion,
- nameOf(accountsTransactionsGet),
- "GET",
- "/accounts/ACCOUNTRESOURCEID/transactions",
- "Retrieval of an account transaction set (AISP)",
- s"""${mockedDataText(false)}
- ### Description
-
-This call returns transactions for an account for a given PSU account that is specified by the AISP through an account resource identification. The request may use some filter parameter in order to restrict the query
-
-* on a given imputation date range
-* past a given incremental technical identification
-
-The result may be subject to pagination (i.e. retrieving a partial result in case of having too many results) through a set of pages by the ASPSP. Thereafter, the AISP may ask for the first, next, previous or last page of results.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the AISP role
-* The TPP and the PSU have a contract that has been enrolled by the ASPSP
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) is any.
-* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
-* The TPP has previously retrieved the list of available accounts for the PSU
-
-### Business flow
-
-The AISP requests the ASPSP on one of the PSU's accounts. It may specify some selection criteria. The ASPSP answers by a set of transactions that matches the query. The result may be subject to pagination in order to avoid an excessive result set.
-
- """,
- EmptyBody,
- json.parse("""{
- | "transactions": [
- | {
- | "entryReference": "AF5T2",
- | "transactionAmount": {
- | "currency": "EUR",
- | "amount": "12.25"
- | },
- | "creditDebitIndicator": "CRDT",
- | "status": "BOOK",
- | "bookingDate": "2018-02-12",
- | "remittanceInformation": [
- | "SEPA CREDIT TRANSFER from PSD2Company"
- | ]
- | }
- | ],
- | "_links": {
- | "self": {
- | "href": "v1/accounts/Alias1/transactions"
- | },
- | "parent-list": {
- | "href": "v1/accounts"
- | },
- | "balances": {
- | "href": "v1/accounts/Alias1/balances"
- | },
- | "last": {
- | "href": "v1/accounts/sAlias1/transactions?page=last"
- | },
- | "next": {
- | "href": "v1/accounts/Alias1/transactions?page=3"
- | }
- | }
- |}""".stripMargin),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AISP") :: Nil
- )
-
- lazy val accountsTransactionsGet : OBPEndpoint = {
- case "accounts" :: accountresourceid:: "transactions" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
-
- _ <- Helper.booleanToFuture(failMsg= DefaultBankIdNotSet, cc=callContext) {defaultBankId != "DEFAULT_BANK_ID_NOT_SET"}
-
- bankId = BankId(defaultBankId)
-
- (bank, callContext) <- NewStyle.function.getBank(bankId, callContext)
-
- (bankAccount, callContext) <- NewStyle.function.checkBankAccountExists(bankId, AccountId(accountresourceid), callContext)
-
- view <- ViewNewStyle.checkOwnerViewAccessAndReturnOwnerView(u, BankIdAccountId(bankAccount.bankId, bankAccount.accountId), callContext)
-
- params <- Future { createQueriesByHttpParams(callContext.get.requestHeaders)} map {
- x => fullBoxOrException(x ~> APIFailureNewStyle(UnknownError, 400, callContext.map(_.toLight)))
- } map { unboxFull(_) }
-
- (transactionRequests, callContext) <- Future { Connector.connector.vend.getTransactionRequests210(u, bankAccount, callContext)} map {
- x => fullBoxOrException(x ~> APIFailureNewStyle(InvalidConnectorResponseForGetTransactionRequests210, 400, callContext.map(_.toLight)))
- } map { unboxFull(_) }
-
- (transactions, callContext) <- Future { bankAccount.getModeratedTransactions(bank, Full(u), view, BankIdAccountId(bankId,bankAccount.accountId), callContext, params)} map {
- x => fullBoxOrException(x ~> APIFailureNewStyle(UnknownError, 400, callContext.map(_.toLight)))
- } map { unboxFull(_) }
-
- } yield {
- (createTransactionsJson(transactions, transactionRequests), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- consentsPut,
- apiVersion,
- nameOf(consentsPut),
- "PUT",
- "/consents",
- "Forwarding the PSU consent (AISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-In the mixed detailed consent on accounts
-
-* the AISP captures the consent of the PSU
-* then it forwards this consent to the ASPSP
-
-This consent replaces any prior consent that was previously sent by the AISP.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the AISP role.
-* The TPP and the PSU have a contract that has been enrolled by the ASPSP
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
-* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
-
-### Business Flow
-
-The PSU specifies to the AISP which of his/her accounts will be accessible and which functionalities should be available. The AISP forwards these settings to the ASPSP. The ASPSP answers by HTTP201 return code.
-
- """,
- json.parse("""{
- "balances" : [ {
- "iban" : "YY64COJH41059545330222956960771321"
- } ],
- "trustedBeneficiaries" : true,
- "psuIdentity" : true
-}"""),
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AISP") :: apiTagMockedData :: Nil
- )
-
- lazy val consentsPut : OBPEndpoint = {
- case "consents" :: Nil JsonPut _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- endUserIdentityGet,
- apiVersion,
- nameOf(endUserIdentityGet),
- "GET",
- "/end-user-identity",
- "Retrieval of the identity of the end-user (AISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-This call returns the identity of the PSU (end-user).
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the AISP role.
-* The TPP and the PSU have a contract that has been enrolled by the ASPSP
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
-* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
-
-### Business Flow
-
-The AISP asks for the identity of the PSU. The ASPSP answers with the identity, i.e. first and last names of the end-user.
-
- """,
- EmptyBody,
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AISP") :: apiTagMockedData :: Nil
- )
-
- lazy val endUserIdentityGet : OBPEndpoint = {
- case "end-user-identity" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- trustedBeneficiariesGet,
- apiVersion,
- nameOf(trustedBeneficiariesGet),
- "GET",
- "/trusted-beneficiaries",
- "Retrieval of the trusted beneficiaries list (AISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-This call returns all trusted beneficiaries that have been set by the PSU. Those beneficiaries can benefit from an SCA exemption during payment initiation. The result may be subject to pagination (i.e. retrieving a partial result in case of having too many results) through a set of pages by the ASPSP. Thereafter, the AISP may ask for the first, next, previous or last page of results.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the AISP role.
-* The TPP and the PSU have a contract that has been enrolled by the ASPSP
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
-* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
-
-### Business Flow
-
-The AISP asks for the trusted beneficiaries list. The ASPSP answers with a list of beneficiary details structure.
-
- """,
- EmptyBody,
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("AISP") :: apiTagMockedData :: Nil
- )
-
- lazy val trustedBeneficiariesGet : OBPEndpoint = {
- case "trusted-beneficiaries" :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.STET.v1_4
+//
+//import scala.language.implicitConversions
+//import code.api.APIFailureNewStyle
+//import code.api.STET.v1_4.JSONFactory_STET_1_4._
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil.{defaultBankId, _}
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import code.api.util.NewStyle.HttpCode
+//import code.api.util.newstyle.ViewNewStyle
+//import code.api.util.{ApiTag, NewStyle}
+//import code.bankconnectors.Connector
+//import code.model._
+//import code.util.Helper
+//import code.views.Views
+//import com.github.dwickern.macros.NameOf.nameOf
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//import com.openbankproject.commons.model.{AccountId, BankId, BankIdAccountId}
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.mutable.ArrayBuffer
+//import scala.concurrent.Future
+//
+//object APIMethods_AISPApi extends RestHelper {
+// val apiVersion = OBP_STET_1_4.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// accountsBalancesGet ::
+// accountsGet ::
+// accountsTransactionsGet ::
+// consentsPut ::
+// endUserIdentityGet ::
+// trustedBeneficiariesGet ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// accountsBalancesGet,
+// apiVersion,
+// nameOf(accountsBalancesGet),
+// "GET",
+// "/accounts/ACCOUNTRESOURCEID/balances",
+// "Retrieval of an account balances report (AISP)",
+// s"""${mockedDataText(false)}
+// ### Description
+//
+//This call returns a set of balances for a given PSU account that is specified by the AISP through an account resource Identification
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the AISP role
+//* The TPP and the PSU have a contract that has been enrolled by the ASPSP
+// * At this step, the ASPSP has delivered an OAUTH2 "Authorization Code" or "Resource Owner Password" access token to the TPP (cf. § 3.4.2).
+//
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
+//* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
+//* The TPP has previously retrieved the list of available accounts for the PSU
+//
+//### Business flow
+//
+//The AISP requests the ASPSP on one of the PSU's accounts.
+//The ASPSP answers by providing a list of balances on this account.
+//
+//* The ASPSP must provide at least the accounting balance on the account.
+//* The ASPSP can provide other balance restitutions, e.g. instant balance, as well, if possible.
+//* Actually, from the PSD2 perspective, any other balances that are provided through the Web-Banking service of the ASPSP must also be provided by this ASPSP through the API.
+//
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// | "balances": [
+// | {
+// | "name": "Solde comptable au 12/01/2017",
+// | "balanceAmount": {
+// | "currency": "EUR",
+// | "amount": "123.45"
+// | },
+// | "balanceType": "CLBD",
+// | "lastCommittedTransaction": "A452CH"
+// | }
+// | ],
+// | "_links": {
+// | "self": {
+// | "href": "v1/accounts/Alias1/balances-report"
+// | },
+// | "parent-list": {
+// | "href": "v1/accounts"
+// | },
+// | "transactions": {
+// | "href": "v1/accounts/Alias1/transactions"
+// | }
+// | }
+// |}
+// |""".stripMargin),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AISP") :: Nil
+// )
+//
+// lazy val accountsBalancesGet : OBPEndpoint = {
+// case "accounts" :: accountresourceid:: "balances" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// _ <- Helper.booleanToFuture(failMsg= DefaultBankIdNotSet, cc=callContext) { defaultBankId != "DEFAULT_BANK_ID_NOT_SET" }
+// (_, callContext) <- NewStyle.function.getBank(BankId(defaultBankId), callContext)
+// (bankAccount, callContext) <- NewStyle.function.checkBankAccountExists(BankId(defaultBankId), AccountId(accountresourceid), callContext)
+// view <- ViewNewStyle.checkOwnerViewAccessAndReturnOwnerView(u, BankIdAccountId(bankAccount.bankId, bankAccount.accountId), callContext)
+// moderatedAccount <- Future {bankAccount.moderatedBankAccount(view, BankIdAccountId(bankAccount.bankId, bankAccount.accountId), Full(u), callContext)} map {
+// x => fullBoxOrException(x ~> APIFailureNewStyle(UnknownError, 400, callContext.map(_.toLight)))
+// } map { unboxFull(_) }
+// } yield {
+// (createAccountBalanceJSON(moderatedAccount), HttpCode.`200`(callContext))
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsGet,
+// apiVersion,
+// nameOf(accountsGet),
+// "GET",
+// "/accounts",
+// "Retrieval of the PSU accounts (AISP)",
+// s"""${mockedDataText(false)}
+// ### Description
+//
+//This call returns all payment accounts that are relevant the PSU on behalf of whom the AISP is connected. Thanks to HYPERMEDIA, each account is returned with the links aiming to ease access to the relevant transactions and balances. The result may be subject to pagination (i.e. retrieving a partial result in case of having too many results) through a set of pages by the ASPSP. Thereafter, the AISP may ask for the first, next, previous or last page of results.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the AISP role.
+//* The TPP and the PSU have a contract that has been enrolled by the ASPSP
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
+//* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
+//
+//### Business Flow
+//
+//The TPP sends a request to the ASPSP for retrieving the list of the PSU payment accounts. The ASPSP computes the relevant PSU accounts and builds the answer as an accounts list. The result may be subject to pagination in order to avoid an excessive result set. Each payment account will be provided with its characteristics.
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// | "accounts": [
+// | {
+// | "resourceId": "Alias1",
+// | "bicFi": "BNKAFRPPXXX",
+// | "name": "Compte de Mr et Mme Dupont",
+// | "usage": "PRIV",
+// | "cashAccountType": "CACC",
+// | "currency": "EUR",
+// | "psuStatus": "Co-account Holder",
+// | "_links": {
+// | "balances": {
+// | "href": "v1/accounts/Alias1/balances"
+// | },
+// | "transactions": {
+// | "href": "v1/accounts/Alias1/transactions"
+// | }
+// | }
+// | }
+// | ],
+// | "_links": {
+// | "self": {
+// | "href": "v1/accounts?page=2"
+// | },
+// | "first": {
+// | "href": "v1/accounts"
+// | },
+// | "last": {
+// | "href": "v1/accounts?page=last",
+// | "templated": true
+// | },
+// | "next": {
+// | "href": "v1/accounts?page=3",
+// | "templated": true
+// | },
+// | "prev": {
+// | "href": "v1/accounts",
+// | "templated": true
+// | }
+// | }
+// |}""".stripMargin),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AISP") :: Nil
+// )
+//
+// lazy val accountsGet : OBPEndpoint = {
+// case "accounts" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+//
+// _ <- Helper.booleanToFuture(failMsg= DefaultBankIdNotSet, cc=callContext) {defaultBankId != "DEFAULT_BANK_ID_NOT_SET"}
+//
+// bankId = BankId(defaultBankId)
+//
+// (_, callContext) <- NewStyle.function.getBank(bankId, callContext)
+//
+// availablePrivateAccounts <- Views.views.vend.getPrivateBankAccountsFuture(u, bankId)
+//
+// (accounts, callContext)<- NewStyle.function.getBankAccounts(availablePrivateAccounts, callContext)
+//
+// } yield {
+// (createTransactionListJSON(accounts), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// accountsTransactionsGet,
+// apiVersion,
+// nameOf(accountsTransactionsGet),
+// "GET",
+// "/accounts/ACCOUNTRESOURCEID/transactions",
+// "Retrieval of an account transaction set (AISP)",
+// s"""${mockedDataText(false)}
+// ### Description
+//
+//This call returns transactions for an account for a given PSU account that is specified by the AISP through an account resource identification. The request may use some filter parameter in order to restrict the query
+//
+//* on a given imputation date range
+//* past a given incremental technical identification
+//
+//The result may be subject to pagination (i.e. retrieving a partial result in case of having too many results) through a set of pages by the ASPSP. Thereafter, the AISP may ask for the first, next, previous or last page of results.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the AISP role
+//* The TPP and the PSU have a contract that has been enrolled by the ASPSP
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) is any.
+//* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
+//* The TPP has previously retrieved the list of available accounts for the PSU
+//
+//### Business flow
+//
+//The AISP requests the ASPSP on one of the PSU's accounts. It may specify some selection criteria. The ASPSP answers by a set of transactions that matches the query. The result may be subject to pagination in order to avoid an excessive result set.
+//
+// """,
+// EmptyBody,
+// json.parse("""{
+// | "transactions": [
+// | {
+// | "entryReference": "AF5T2",
+// | "transactionAmount": {
+// | "currency": "EUR",
+// | "amount": "12.25"
+// | },
+// | "creditDebitIndicator": "CRDT",
+// | "status": "BOOK",
+// | "bookingDate": "2018-02-12",
+// | "remittanceInformation": [
+// | "SEPA CREDIT TRANSFER from PSD2Company"
+// | ]
+// | }
+// | ],
+// | "_links": {
+// | "self": {
+// | "href": "v1/accounts/Alias1/transactions"
+// | },
+// | "parent-list": {
+// | "href": "v1/accounts"
+// | },
+// | "balances": {
+// | "href": "v1/accounts/Alias1/balances"
+// | },
+// | "last": {
+// | "href": "v1/accounts/sAlias1/transactions?page=last"
+// | },
+// | "next": {
+// | "href": "v1/accounts/Alias1/transactions?page=3"
+// | }
+// | }
+// |}""".stripMargin),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AISP") :: Nil
+// )
+//
+// lazy val accountsTransactionsGet : OBPEndpoint = {
+// case "accounts" :: accountresourceid:: "transactions" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+//
+// _ <- Helper.booleanToFuture(failMsg= DefaultBankIdNotSet, cc=callContext) {defaultBankId != "DEFAULT_BANK_ID_NOT_SET"}
+//
+// bankId = BankId(defaultBankId)
+//
+// (bank, callContext) <- NewStyle.function.getBank(bankId, callContext)
+//
+// (bankAccount, callContext) <- NewStyle.function.checkBankAccountExists(bankId, AccountId(accountresourceid), callContext)
+//
+// view <- ViewNewStyle.checkOwnerViewAccessAndReturnOwnerView(u, BankIdAccountId(bankAccount.bankId, bankAccount.accountId), callContext)
+//
+// params <- Future { createQueriesByHttpParams(callContext.get.requestHeaders)} map {
+// x => fullBoxOrException(x ~> APIFailureNewStyle(UnknownError, 400, callContext.map(_.toLight)))
+// } map { unboxFull(_) }
+//
+// (transactionRequests, callContext) <- Future { Connector.connector.vend.getTransactionRequests210(u, bankAccount, callContext)} map {
+// x => fullBoxOrException(x ~> APIFailureNewStyle(InvalidConnectorResponseForGetTransactionRequests210, 400, callContext.map(_.toLight)))
+// } map { unboxFull(_) }
+//
+// (transactions, callContext) <- Future { bankAccount.getModeratedTransactions(bank, Full(u), view, BankIdAccountId(bankId,bankAccount.accountId), callContext, params)} map {
+// x => fullBoxOrException(x ~> APIFailureNewStyle(UnknownError, 400, callContext.map(_.toLight)))
+// } map { unboxFull(_) }
+//
+// } yield {
+// (createTransactionsJson(transactions, transactionRequests), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// consentsPut,
+// apiVersion,
+// nameOf(consentsPut),
+// "PUT",
+// "/consents",
+// "Forwarding the PSU consent (AISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//In the mixed detailed consent on accounts
+//
+//* the AISP captures the consent of the PSU
+//* then it forwards this consent to the ASPSP
+//
+//This consent replaces any prior consent that was previously sent by the AISP.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the AISP role.
+//* The TPP and the PSU have a contract that has been enrolled by the ASPSP
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
+//* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
+//
+//### Business Flow
+//
+//The PSU specifies to the AISP which of his/her accounts will be accessible and which functionalities should be available. The AISP forwards these settings to the ASPSP. The ASPSP answers by HTTP201 return code.
+//
+// """,
+// json.parse("""{
+// "balances" : [ {
+// "iban" : "YY64COJH41059545330222956960771321"
+// } ],
+// "trustedBeneficiaries" : true,
+// "psuIdentity" : true
+//}"""),
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val consentsPut : OBPEndpoint = {
+// case "consents" :: Nil JsonPut _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// endUserIdentityGet,
+// apiVersion,
+// nameOf(endUserIdentityGet),
+// "GET",
+// "/end-user-identity",
+// "Retrieval of the identity of the end-user (AISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//This call returns the identity of the PSU (end-user).
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the AISP role.
+//* The TPP and the PSU have a contract that has been enrolled by the ASPSP
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
+//* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
+//
+//### Business Flow
+//
+//The AISP asks for the identity of the PSU. The ASPSP answers with the identity, i.e. first and last names of the end-user.
+//
+// """,
+// EmptyBody,
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val endUserIdentityGet : OBPEndpoint = {
+// case "end-user-identity" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// trustedBeneficiariesGet,
+// apiVersion,
+// nameOf(trustedBeneficiariesGet),
+// "GET",
+// "/trusted-beneficiaries",
+// "Retrieval of the trusted beneficiaries list (AISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//This call returns all trusted beneficiaries that have been set by the PSU. Those beneficiaries can benefit from an SCA exemption during payment initiation. The result may be subject to pagination (i.e. retrieving a partial result in case of having too many results) through a set of pages by the ASPSP. Thereafter, the AISP may ask for the first, next, previous or last page of results.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the AISP role.
+//* The TPP and the PSU have a contract that has been enrolled by the ASPSP
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code" or "Resource Owner Password" access token which allows the ASPSP to identify the relevant PSU and retrieve the linked PSU context (cf. § 3.4.2) if any.
+//* The ASPSP takes into account the access token that establishes the link between the PSU and the AISP.
+//
+//### Business Flow
+//
+//The AISP asks for the trusted beneficiaries list. The ASPSP answers with a list of beneficiary details structure.
+//
+// """,
+// EmptyBody,
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("AISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val trustedBeneficiariesGet : OBPEndpoint = {
+// case "trusted-beneficiaries" :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/STET/v1_4/CBPIIApi.scala b/obp-api/src/main/scala/code/api/STET/v1_4/CBPIIApi.scala
index 5b8e4ffa40..b74d4a6259 100644
--- a/obp-api/src/main/scala/code/api/STET/v1_4/CBPIIApi.scala
+++ b/obp-api/src/main/scala/code/api/STET/v1_4/CBPIIApi.scala
@@ -1,83 +1,83 @@
-package code.api.STET.v1_4
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_CBPIIApi extends RestHelper {
- val apiVersion = OBP_STET_1_4.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- fundsConfirmationsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- fundsConfirmationsPost,
- apiVersion,
- nameOf(fundsConfirmationsPost),
- "POST",
- "/funds-confirmations",
- "Payment coverage check request (CBPII)",
- s"""${mockedDataText(true)}
- ### Description
-
-The CBPII can ask an ASPSP to check if a given amount can be covered by the liquidity that is available on a PSU cash account or payment card.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the CBPII role
-* The TPP and the PSU have a contract that has been registered by the ASPSP
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its OAUTH2 "Authorization Code", "Resource Owner Password" or "Client Credential" access token which allows the ASPSP to identify the relevant PSU.
-
-### Business flow
-
-The CBPII requests the ASPSP for a payment coverage check against either a bank account or a card primary identifier. The ASPSP answers with a structure embedding the original request and the result as a Boolean.
-
- """,
- json.parse("""{
- "paymentCoverageRequestId" : "MyCoverage123456",
- "instructedAmount" : {
- "currency" : "EUR",
- "amount" : "12345"
- },
- "accountId" : {
- "iban" : "YY13RDHN98392489481620896668799742"
- }
-}"""),
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("CBPII") :: apiTagMockedData :: Nil
- )
-
- lazy val fundsConfirmationsPost : OBPEndpoint = {
- case "funds-confirmations" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.STET.v1_4
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_CBPIIApi extends RestHelper {
+// val apiVersion = OBP_STET_1_4.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// fundsConfirmationsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// fundsConfirmationsPost,
+// apiVersion,
+// nameOf(fundsConfirmationsPost),
+// "POST",
+// "/funds-confirmations",
+// "Payment coverage check request (CBPII)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//The CBPII can ask an ASPSP to check if a given amount can be covered by the liquidity that is available on a PSU cash account or payment card.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the CBPII role
+//* The TPP and the PSU have a contract that has been registered by the ASPSP
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its OAUTH2 "Authorization Code", "Resource Owner Password" or "Client Credential" access token which allows the ASPSP to identify the relevant PSU.
+//
+//### Business flow
+//
+//The CBPII requests the ASPSP for a payment coverage check against either a bank account or a card primary identifier. The ASPSP answers with a structure embedding the original request and the result as a Boolean.
+//
+// """,
+// json.parse("""{
+// "paymentCoverageRequestId" : "MyCoverage123456",
+// "instructedAmount" : {
+// "currency" : "EUR",
+// "amount" : "12345"
+// },
+// "accountId" : {
+// "iban" : "YY13RDHN98392489481620896668799742"
+// }
+//}"""),
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("CBPII") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val fundsConfirmationsPost : OBPEndpoint = {
+// case "funds-confirmations" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/STET/v1_4/JSONFactory_SETE_1_4.scala b/obp-api/src/main/scala/code/api/STET/v1_4/JSONFactory_SETE_1_4.scala
index 7fc189f981..459880915c 100644
--- a/obp-api/src/main/scala/code/api/STET/v1_4/JSONFactory_SETE_1_4.scala
+++ b/obp-api/src/main/scala/code/api/STET/v1_4/JSONFactory_SETE_1_4.scala
@@ -1,176 +1,176 @@
-package code.api.STET.v1_4
-
-import code.api.util.{APIUtil, CustomJsonFormats}
-import code.model.{ModeratedBankAccount, ModeratedTransaction}
-import com.openbankproject.commons.model.{BankAccount, TransactionRequest}
-
-import java.util.Date
-
-object JSONFactory_STET_1_4 extends CustomJsonFormats {
-
- trait Links
- case class Balances(balances: String) extends Links
- case class Transactions(trasactions: String) extends Links
- case class ViewAccount(viewAccount: String) extends Links
- case class CoreAccountJsonV1(
- resourceId: String,
- bicFi: String,
- currency: String,
- accountType: String,
- cashAccountType: String,
- name: String,
- usage: String="PRIV",
- psuStatus: String="Co-account Holder",
- )
- case class Href(href: String) extends Links
-
- case class Self(self: Href= Href("v1/accounts?page=2")) extends Links
-
- case class First(self: Href= Href("v1/accounts")) extends Links
-
- case class Last(
- href: Href= Href("v1/accounts?page=last"),
- templated: Boolean = true
- ) extends Links
-
- case class Next(
- href: Href= Href("v1/accounts?page=3"),
- templated: Boolean = true
- ) extends Links
-
- case class Prev(
- href: Href= Href("v1/accounts"),
- templated: Boolean = true
- ) extends Links
-
- case class ParentList(
- `parent-list`: Href= Href("v1/accounts"),
- ) extends Links
-
- case class TransactionBalanceLink(
- href: Href= Href("v1/accounts"),
- ) extends Links
-
- case class TransactionLastLink(
- href: Href= Href("v1/accounts"),
- ) extends Links
-
- case class TransactionNextLink(
- href: Href= Href("v1/accounts"),
- ) extends Links
-
-
- case class TransactionsLinks(
- transactions: Href= Href("v1/accounts/Alias1/transactions"),
- ) extends Links
-
- case class AccountsJsonV1(
- accounts: List[CoreAccountJsonV1],
- _links: List[Links]
- )
-
- case class AmountOfMoneyV1(
- currency : String,
- content : String
- )
- case class ClosingBookedBody(
- amount : AmountOfMoneyV1,
- date: String //eg: “2017-10-25”, this is not a valid datetime (not java.util.Date)
- )
- case class ExpectedBody(
- amount : AmountOfMoneyV1,
- lastActionDateTime: Date
- )
- case class AccountBalance(
- name:String,
- balanceAmount: AmountOfMoneyV1,
- balanceType:String,
- lastCommittedTransaction: String
- )
- case class AccountBalances(
- `balances`: List[AccountBalance],
- _links: List[Links] = List(
- Self(Href("v1/accounts/Alias1/balances-report")),
- ParentList(Href("v1/accounts")),
- TransactionsLinks(Href("v1/accounts/Alias1/transactions"))
- )
- )
-
- case class TransactionsJsonV1(
- transactions: List[TransactionJsonV1],
- _links: List[Links]= List(
- Self(Href("v1/accounts/Alias1/transactions")),
- ParentList(Href("v1/accounts")),
- TransactionBalanceLink(Href("v1/accounts/Alias1/balances")),
- TransactionLastLink(Href("v1/accounts/sAlias1/transactions?page=last")),
- TransactionNextLink(Href("v1/accounts/Alias1/transactions?page=3"))
- )
- )
-
- case class TransactionJsonV1(
- entryReference: String,
- creditDebitIndicator: String,
- transactionAmount: AmountOfMoneyV1,
- bookingDate: Date,
- status: String,
- remittanceInformation: List[String]
- )
-
- def createTransactionListJSON(accounts: List[BankAccount]): AccountsJsonV1 =
- AccountsJsonV1(
- accounts =accounts.map(
- account => CoreAccountJsonV1(
- resourceId = account.accountId.value,
- bicFi = "",
- currency = account.currency,
- accountType = account.accountType,
- cashAccountType = "CACC",
- name = account.accountHolder)
- ),
- _links=List(Self(), First(), Last(), Next(), Prev())
- )
-
- def createAccountBalanceJSON(moderatedAccount: ModeratedBankAccount) = {
- AccountBalances(
- `balances`= List(
- AccountBalance(
- name = "Solde comptable au 12/01/2017",
- balanceAmount = AmountOfMoneyV1(moderatedAccount.currency.getOrElse(""),moderatedAccount.balance),
- balanceType= moderatedAccount.accountType.getOrElse(""),
- lastCommittedTransaction="A452CH"
- )
- )
- )
- }
-
- def createTransactionJSON(transaction : ModeratedTransaction) : TransactionJsonV1 = {
- TransactionJsonV1(
- entryReference = transaction.id.value,
- creditDebitIndicator = "",
- transactionAmount = AmountOfMoneyV1(APIUtil.stringOptionOrNull(transaction.currency),transaction.amount.get.toString()),
- bookingDate = transaction.startDate.get,
- status = "COMPLETED",
- remittanceInformation = List(APIUtil.stringOptionOrNull(transaction.description))
- )
- }
-
- def createTransactionFromRequestJSON(transactionRequest : TransactionRequest) : TransactionJsonV1 = {
- TransactionJsonV1(
- entryReference = transactionRequest.id.value,
- creditDebitIndicator = transactionRequest.name,
- transactionAmount = AmountOfMoneyV1(transactionRequest.charge.value.currency,transactionRequest.charge.value.amount),
- bookingDate = transactionRequest.start_date,
- status = "BOOK",
- remittanceInformation = List(transactionRequest.body.description)
- )
- }
-
- def createTransactionsJson(transactions: List[ModeratedTransaction], transactionRequests: List[TransactionRequest] = Nil) : TransactionsJsonV1 = {
- val transactions_booked: List[TransactionJsonV1] = transactions.map(createTransactionJSON)
- // val transactions_pending: List[TransactionJsonV1] =transactionRequests.filter(_.status!="COMPLETED").map(createTransactionFromRequestJSON)
- TransactionsJsonV1(
- transactions = transactions_booked:::Nil //transactions_pending:::Nil
- )
- }
-
-}
+//package code.api.STET.v1_4
+//
+//import code.api.util.{APIUtil, CustomJsonFormats}
+//import code.model.{ModeratedBankAccount, ModeratedTransaction}
+//import com.openbankproject.commons.model.{BankAccount, TransactionRequest}
+//
+//import java.util.Date
+//
+//object JSONFactory_STET_1_4 extends CustomJsonFormats {
+//
+// trait Links
+// case class Balances(balances: String) extends Links
+// case class Transactions(trasactions: String) extends Links
+// case class ViewAccount(viewAccount: String) extends Links
+// case class CoreAccountJsonV1(
+// resourceId: String,
+// bicFi: String,
+// currency: String,
+// accountType: String,
+// cashAccountType: String,
+// name: String,
+// usage: String="PRIV",
+// psuStatus: String="Co-account Holder",
+// )
+// case class Href(href: String) extends Links
+//
+// case class Self(self: Href= Href("v1/accounts?page=2")) extends Links
+//
+// case class First(self: Href= Href("v1/accounts")) extends Links
+//
+// case class Last(
+// href: Href= Href("v1/accounts?page=last"),
+// templated: Boolean = true
+// ) extends Links
+//
+// case class Next(
+// href: Href= Href("v1/accounts?page=3"),
+// templated: Boolean = true
+// ) extends Links
+//
+// case class Prev(
+// href: Href= Href("v1/accounts"),
+// templated: Boolean = true
+// ) extends Links
+//
+// case class ParentList(
+// `parent-list`: Href= Href("v1/accounts"),
+// ) extends Links
+//
+// case class TransactionBalanceLink(
+// href: Href= Href("v1/accounts"),
+// ) extends Links
+//
+// case class TransactionLastLink(
+// href: Href= Href("v1/accounts"),
+// ) extends Links
+//
+// case class TransactionNextLink(
+// href: Href= Href("v1/accounts"),
+// ) extends Links
+//
+//
+// case class TransactionsLinks(
+// transactions: Href= Href("v1/accounts/Alias1/transactions"),
+// ) extends Links
+//
+// case class AccountsJsonV1(
+// accounts: List[CoreAccountJsonV1],
+// _links: List[Links]
+// )
+//
+// case class AmountOfMoneyV1(
+// currency : String,
+// content : String
+// )
+// case class ClosingBookedBody(
+// amount : AmountOfMoneyV1,
+// date: String //eg: “2017-10-25”, this is not a valid datetime (not java.util.Date)
+// )
+// case class ExpectedBody(
+// amount : AmountOfMoneyV1,
+// lastActionDateTime: Date
+// )
+// case class AccountBalance(
+// name:String,
+// balanceAmount: AmountOfMoneyV1,
+// balanceType:String,
+// lastCommittedTransaction: String
+// )
+// case class AccountBalances(
+// `balances`: List[AccountBalance],
+// _links: List[Links] = List(
+// Self(Href("v1/accounts/Alias1/balances-report")),
+// ParentList(Href("v1/accounts")),
+// TransactionsLinks(Href("v1/accounts/Alias1/transactions"))
+// )
+// )
+//
+// case class TransactionsJsonV1(
+// transactions: List[TransactionJsonV1],
+// _links: List[Links]= List(
+// Self(Href("v1/accounts/Alias1/transactions")),
+// ParentList(Href("v1/accounts")),
+// TransactionBalanceLink(Href("v1/accounts/Alias1/balances")),
+// TransactionLastLink(Href("v1/accounts/sAlias1/transactions?page=last")),
+// TransactionNextLink(Href("v1/accounts/Alias1/transactions?page=3"))
+// )
+// )
+//
+// case class TransactionJsonV1(
+// entryReference: String,
+// creditDebitIndicator: String,
+// transactionAmount: AmountOfMoneyV1,
+// bookingDate: Date,
+// status: String,
+// remittanceInformation: List[String]
+// )
+//
+// def createTransactionListJSON(accounts: List[BankAccount]): AccountsJsonV1 =
+// AccountsJsonV1(
+// accounts =accounts.map(
+// account => CoreAccountJsonV1(
+// resourceId = account.accountId.value,
+// bicFi = "",
+// currency = account.currency,
+// accountType = account.accountType,
+// cashAccountType = "CACC",
+// name = account.accountHolder)
+// ),
+// _links=List(Self(), First(), Last(), Next(), Prev())
+// )
+//
+// def createAccountBalanceJSON(moderatedAccount: ModeratedBankAccount) = {
+// AccountBalances(
+// `balances`= List(
+// AccountBalance(
+// name = "Solde comptable au 12/01/2017",
+// balanceAmount = AmountOfMoneyV1(moderatedAccount.currency.getOrElse(""),moderatedAccount.balance),
+// balanceType= moderatedAccount.accountType.getOrElse(""),
+// lastCommittedTransaction="A452CH"
+// )
+// )
+// )
+// }
+//
+// def createTransactionJSON(transaction : ModeratedTransaction) : TransactionJsonV1 = {
+// TransactionJsonV1(
+// entryReference = transaction.id.value,
+// creditDebitIndicator = "",
+// transactionAmount = AmountOfMoneyV1(APIUtil.stringOptionOrNull(transaction.currency),transaction.amount.get.toString()),
+// bookingDate = transaction.startDate.get,
+// status = "COMPLETED",
+// remittanceInformation = List(APIUtil.stringOptionOrNull(transaction.description))
+// )
+// }
+//
+// def createTransactionFromRequestJSON(transactionRequest : TransactionRequest) : TransactionJsonV1 = {
+// TransactionJsonV1(
+// entryReference = transactionRequest.id.value,
+// creditDebitIndicator = transactionRequest.name,
+// transactionAmount = AmountOfMoneyV1(transactionRequest.charge.value.currency,transactionRequest.charge.value.amount),
+// bookingDate = transactionRequest.start_date,
+// status = "BOOK",
+// remittanceInformation = List(transactionRequest.body.description)
+// )
+// }
+//
+// def createTransactionsJson(transactions: List[ModeratedTransaction], transactionRequests: List[TransactionRequest] = Nil) : TransactionsJsonV1 = {
+// val transactions_booked: List[TransactionJsonV1] = transactions.map(createTransactionJSON)
+// // val transactions_pending: List[TransactionJsonV1] =transactionRequests.filter(_.status!="COMPLETED").map(createTransactionFromRequestJSON)
+// TransactionsJsonV1(
+// transactions = transactions_booked:::Nil //transactions_pending:::Nil
+// )
+// }
+//
+//}
diff --git a/obp-api/src/main/scala/code/api/STET/v1_4/OBP_STET_1_4.scala b/obp-api/src/main/scala/code/api/STET/v1_4/OBP_STET_1_4.scala
index d77c547df7..df35dc4299 100644
--- a/obp-api/src/main/scala/code/api/STET/v1_4/OBP_STET_1_4.scala
+++ b/obp-api/src/main/scala/code/api/STET/v1_4/OBP_STET_1_4.scala
@@ -1,70 +1,70 @@
-/**
- * Open Bank Project - API
- * Copyright (C) 2011-2019, TESOBE GmbH
- **
- *This program is free software: you can redistribute it and/or modify
- *it under the terms of the GNU Affero General Public License as published by
- *the Free Software Foundation, either version 3 of the License, or
- *(at your option) any later version.
- **
- *This program is distributed in the hope that it will be useful,
- *but WITHOUT ANY WARRANTY; without even the implied warranty of
- *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *GNU Affero General Public License for more details.
- **
- *You should have received a copy of the GNU Affero General Public License
- *along with this program. If not, see .
- **
- *Email: contact@tesobe.com
- *TESOBE GmbH
- *Osloerstrasse 16/17
- *Berlin 13359, Germany
- **
- *This product includes software developed at
- *TESOBE (http://www.tesobe.com/)
- * by
- *Simon Redfern : simon AT tesobe DOT com
- *Stefan Bethge : stefan AT tesobe DOT com
- *Everett Sochowski : everett AT tesobe DOT com
- *Ayoub Benali: ayoub AT tesobe DOT com
- *
- */
-package code.api.STET.v1_4
-
-import code.api.OBPRestHelper
-import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
-import code.api.util.ScannedApis
-import code.util.Helper.MdcLoggable
-import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
-
-import scala.collection.mutable.ArrayBuffer
-
-
-
-
-/*
-This file defines which endpoints from all the versions are available in v1
- */
-object OBP_STET_1_4 extends OBPRestHelper with MdcLoggable with ScannedApis {
- //please modify these three parameter if it is not correct.
- override val apiVersion = ApiVersion.stetV14
- val versionStatus = ApiVersionStatus.DRAFT.toString
-
- private[this] val endpoints =
- APIMethods_AISPApi.endpoints ++
- APIMethods_CBPIIApi.endpoints ++
- APIMethods_PISPApi.endpoints
-
- override val allResourceDocs: ArrayBuffer[ResourceDoc] =
- APIMethods_AISPApi.resourceDocs ++
- APIMethods_CBPIIApi.resourceDocs ++
- APIMethods_PISPApi.resourceDocs
-
- // Filter the possible endpoints by the disabled / enabled Props settings and add them together
- override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
-
- // Make them available for use!
- registerRoutes(routes, allResourceDocs, apiPrefix)
-
- logger.info(s"version $version has been run! There are ${routes.length} routes.")
-}
+///**
+// * Open Bank Project - API
+// * Copyright (C) 2011-2019, TESOBE GmbH
+// **
+// *This program is free software: you can redistribute it and/or modify
+// *it under the terms of the GNU Affero General Public License as published by
+// *the Free Software Foundation, either version 3 of the License, or
+// *(at your option) any later version.
+// **
+// *This program is distributed in the hope that it will be useful,
+// *but WITHOUT ANY WARRANTY; without even the implied warranty of
+// *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// *GNU Affero General Public License for more details.
+// **
+// *You should have received a copy of the GNU Affero General Public License
+// *along with this program. If not, see .
+// **
+// *Email: contact@tesobe.com
+// *TESOBE GmbH
+// *Osloerstrasse 16/17
+// *Berlin 13359, Germany
+// **
+// *This product includes software developed at
+// *TESOBE (http://www.tesobe.com/)
+// * by
+// *Simon Redfern : simon AT tesobe DOT com
+// *Stefan Bethge : stefan AT tesobe DOT com
+// *Everett Sochowski : everett AT tesobe DOT com
+// *Ayoub Benali: ayoub AT tesobe DOT com
+// *
+// */
+//package code.api.STET.v1_4
+//
+//import code.api.OBPRestHelper
+//import code.api.util.APIUtil.{OBPEndpoint, ResourceDoc, getAllowedEndpoints}
+//import code.api.util.ScannedApis
+//import code.util.Helper.MdcLoggable
+//import com.openbankproject.commons.util.{ApiVersion, ApiVersionStatus}
+//
+//import scala.collection.mutable.ArrayBuffer
+//
+//
+//
+//
+///*
+//This file defines which endpoints from all the versions are available in v1
+// */
+//object OBP_STET_1_4 extends OBPRestHelper with MdcLoggable with ScannedApis {
+// //please modify these three parameter if it is not correct.
+// override val apiVersion = ApiVersion.stetV14
+// val versionStatus = ApiVersionStatus.DRAFT.toString
+//
+// private[this] val endpoints =
+// APIMethods_AISPApi.endpoints ++
+// APIMethods_CBPIIApi.endpoints ++
+// APIMethods_PISPApi.endpoints
+//
+// override val allResourceDocs: ArrayBuffer[ResourceDoc] =
+// APIMethods_AISPApi.resourceDocs ++
+// APIMethods_CBPIIApi.resourceDocs ++
+// APIMethods_PISPApi.resourceDocs
+//
+// // Filter the possible endpoints by the disabled / enabled Props settings and add them together
+// override val routes : List[OBPEndpoint] = getAllowedEndpoints(endpoints, allResourceDocs)
+//
+// // Make them available for use!
+// registerRoutes(routes, allResourceDocs, apiPrefix)
+//
+// logger.info(s"version $version has been run! There are ${routes.length} routes.")
+//}
diff --git a/obp-api/src/main/scala/code/api/STET/v1_4/PISPApi.scala b/obp-api/src/main/scala/code/api/STET/v1_4/PISPApi.scala
index 64b7b94009..da0172ae83 100644
--- a/obp-api/src/main/scala/code/api/STET/v1_4/PISPApi.scala
+++ b/obp-api/src/main/scala/code/api/STET/v1_4/PISPApi.scala
@@ -1,544 +1,544 @@
-package code.api.STET.v1_4
-
-import scala.language.implicitConversions
-import code.api.berlin.group.v1_3.JvalueCaseClass
-import code.api.util.APIUtil._
-import code.api.util.ApiTag
-import code.api.util.ApiTag._
-import code.api.util.ErrorMessages._
-import com.github.dwickern.macros.NameOf.nameOf
-import net.liftweb.common.Full
-import net.liftweb.http.rest.RestHelper
-import net.liftweb.json
-import net.liftweb.json._
-
-import scala.collection.immutable.Nil
-import scala.collection.mutable.ArrayBuffer
-import com.openbankproject.commons.ExecutionContext.Implicits.global
-
-object APIMethods_PISPApi extends RestHelper {
- val apiVersion = OBP_STET_1_4.apiVersion
- val resourceDocs = ArrayBuffer[ResourceDoc]()
- val apiRelations = ArrayBuffer[ApiRelation]()
- protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
-
- val endpoints =
- paymentRequestConfirmationPost ::
- paymentRequestPut ::
- paymentRequestsGet ::
- paymentRequestsPost ::
- Nil
-
-
- resourceDocs += ResourceDoc(
- paymentRequestConfirmationPost,
- apiVersion,
- nameOf(paymentRequestConfirmationPost),
- "POST",
- "/payment-requests/PAYMENTREQUESTRESOURCEID/confirmation",
- "Confirmation of a payment request or a modification request (PISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-The PISP confirms one of the following requests
-
-* payment request on behalf of a merchant
-* transfer request on behalf of the account's owner
-* standing-order request on behalf of the account's owner
-
-The ASPSP answers with a status of the relevant request and the subsequent Credit Transfer.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the PISP role
-* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
-* The TPP has previously posted a Request which has been saved by the ASPSP (cf. § 4.5.3)
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its "OAUTH2 Client Credential" access token
-
-### Business flow
-
-Once the PSU has been authenticated, it is the due to the PISP to confirm the Request to the ASPSP in order to complete the process flow.
-In REDIRECT and DECOUPLED approach, this confirmation is not a prerequisite to the execution of the Credit Transfer.
-
- """,
- json.parse("""{
- "psuAuthenticationFactor" : "JJKJKJ788GKJKJBK"
-}"""),
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PISP") :: apiTagMockedData :: Nil
- )
-
- lazy val paymentRequestConfirmationPost : OBPEndpoint = {
- case "payment-requests" :: paymentrequestresourceid:: "confirmation" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- paymentRequestPut,
- apiVersion,
- nameOf(paymentRequestPut),
- "PUT",
- "/payment-requests/PAYMENTREQUESTRESOURCEID",
- "Modification of a Payment/Transfer Request (PISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-The PISP sent a Payment/Transfer Request through a POST command.
-The ASPSP registered the Payment/Transfer Request, updated if necessary the relevant identifiers in order to avoid duplicates and returned the location of the updated Request.
-The PISP got the Payment/Transfer Request that has been updated with the resource identifiers, and eventually the status of the Payment/Transfer Request and the status of the subsequent credit transfer.
-The PISP request for the payment cancellation (global cancellation) or for some payment instructions cancellation (partial cancellation)
-No other modification of the Payment/Transfer Request is allowed.
-
-### Prerequisites
-
-* The TPP was registered by the Registration Authority for the PISP role
-* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
-* The TPP previously posted a Payment/Transfer Request which was saved by the ASPSP (cf. § 4.5.3)
-* The TPP and the ASPSP successfully processed a mutual check and authentication
-* The TPP presented its "OAUTH2 Client Credential" access token.
-* The TPP presented the payment/transfer request.
-* The PSU was successfully authenticated.
-
-### Business flow
-
-the following cases can be applied:
-
-* Case of a payment with multiple instructions or a standing order, the PISP asks to cancel the whole Payment/Transfer or Standing Order Request including all non-executed payment instructions by setting the [paymentInformationStatus] to "RJCT" and the relevant [statusReasonInformation] to "DS02" at payment level.
-* Case of a payment with multiple instructions, the PISP asks to cancel one or several payment instructions by setting the [transactionStatus] to "RJCT" and the relevant [statusReasonInformation] to "DS02" at each relevant instruction level.
-
-Since the modification request needs a PSU authentication before committing, the modification request includes:
-
-
-
-* The specification of the authentication approaches that are supported by the PISP (any combination of "REDIRECT", "EMBEDDED" and "DECOUPLED" values).
-* In case of possible REDIRECT or DECOUPLED authentication approach, one or two call-back URLs to be used by the ASPSP at the finalisation of the authentication and consent process :
-* In case of possible "EMBEDDED" or "DECOUPLED" approaches, a PSU identifier that can be processed by the ASPSP for PSU recognition.
-
-* The ASPSP saves the updated Payment/Transfer Request and answers to the PISP. The answer embeds
-
-
- """,
- json.parse("""{
- "paymentInformationId" : "MyPmtInfId",
- "creationDateTime" : "2018-03-31T13:25:22.527+02:00",
- "numberOfTransactions" : 1,
- "initiatingParty" : {
- "name" : "MyPreferedPisp",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "organisationId" : {
- "identification" : "12FR5",
- "schemeName" : "COID",
- "issuer" : "ACPR"
- }
- },
- "paymentTypeInformation" : {
- "serviceLevel" : "SEPA",
- "localInstrument" : "INST",
- "categoryPurpose" : "DVPM"
- },
- "debtor" : {
- "name" : "MyCustomer",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "privateId" : {
- "identification" : "FD37G",
- "schemeName" : "BANK",
- "issuer" : "BICXYYTTZZZ"
- }
- },
- "creditor" : {
- "name" : "myMerchant",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "organisationId" : {
- "identification" : "852126789",
- "schemeName" : "SIREN",
- "issuer" : "FR"
- }
- },
- "creditorAccount" : {
- "iban" : "YY64COJH41059545330222956960771321"
- },
- "ultimateCreditor" : {
- "name" : "myPreferedUltimateMerchant",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "organisationId" : {
- "identification" : "85212678900025",
- "schemeName" : "SIRET",
- "issuer" : "FR"
- }
- },
- "purpose" : "COMC",
- "chargeBearer" : "SLEV",
- "creditTransferTransaction" : [ {
- "paymentId" : {
- "instructionId" : "MyInstrId",
- "endToEndId" : "MyEndToEndId"
- },
- "requestedExecutionDate" : "2016-12-31T00:00:00.000+01:00",
- "instructedAmount" : {
- "currency" : "EUR",
- "amount" : "124.35"
- },
- "remittanceInformation" : [ "MyRemittanceInformation" ]
- } ],
- "supplementaryData" : {
- "acceptedAuthenticationApproach" : [ "REDIRECT", "DECOUPLED" ],
- "successfulReportUrl" : "http://myPisp/PaymentSuccess",
- "unsuccessfulReportUrl" : "http://myPisp/PaymentFailure"
- }
-}"""),
- json.parse("""{
- "appliedAuthenticationApproach" : {
- "appliedAuthenticationApproach" : "REDIRECT"
- },
- "_links" : {
- "consentApproval" : {
- "href" : "https://psd2.aspsp/consent-approval"
- }
- }
-}"""),
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PISP") :: apiTagMockedData :: Nil
- )
-
- lazy val paymentRequestPut : OBPEndpoint = {
- case "payment-requests" :: paymentrequestresourceid :: Nil JsonPut _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (json.parse("""{
- "appliedAuthenticationApproach" : {
- "appliedAuthenticationApproach" : "REDIRECT"
- },
- "_links" : {
- "consentApproval" : {
- "href" : "https://psd2.aspsp/consent-approval"
- }
- }
-}"""), callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- paymentRequestsGet,
- apiVersion,
- nameOf(paymentRequestsGet),
- "GET",
- "/payment-requests/PAYMENTREQUESTRESOURCEID",
- "Retrieval of a payment request (PISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-The following use cases can be applied:
-
-* retrieval of a payment request on behalf of a merchant
-* retrieval of a transfer request on behalf of the account's owner
-* retrieval of a standing-order request on behalf of the account's owner
-
-The PISP has sent a Request through a POST command.
-The ASPSP has registered the Request, updated if necessary the relevant identifiers in order to avoid duplicates and returned the location of the updated Request.
-The PISP gets the Request that has been updated with the resource identifiers, and eventually the status of the Payment/Transfer Request and the status of the subsequent credit transfer.
-
-### Prerequisites
-
-* The TPP has been registered by the Registration Authority for the PISP role
-* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
-* The TPP has previously posted a Request which has been saved by the ASPSP (cf. § 4.5.3)
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its "OAUTH2 Client Credential" access token
-
-### Business flow
-
-The PISP asks to retrieve the Payment/Transfer Request that has been saved by the ASPSP. The PISP uses the location link provided by the ASPSP in response of the posting of this request.
-The ASPSP returns the previously posted Payment/Transfer Request which is enriched with:
-
-* The resource identifiers given by the ASPSP
-* The status information of the Payment Request and of the subsequent credit transfer
-
-The status information must be available during at least 30 calendar days after the posting of the Payment Request. However, the ASPSP may increase this availability duration, based on its own rules.
-
- """,
- EmptyBody,
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PISP") :: apiTagMockedData :: Nil
- )
-
- lazy val paymentRequestsGet : OBPEndpoint = {
- case "payment-requests" :: paymentrequestresourceid :: Nil JsonGet _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
- resourceDocs += ResourceDoc(
- paymentRequestsPost,
- apiVersion,
- nameOf(paymentRequestsPost),
- "POST",
- "/payment-requests",
- "Payment request initiation (PISP)",
- s"""${mockedDataText(true)}
- ### Description
-
-The following use cases can be applied:
-
-* payment request on behalf of a merchant
-* transfer request on behalf of the account's owner
-* standing-order request on behalf of the account's owner
-
-#### Data content
-
-A payment request or a transfer request might embed several payment instructions having
-
-* one single execution date or multiple execution dates
-* one single beneficiary or multiple beneficiaries
-
-Having at the same time multiple beneficiaries and multiple execution date might not be a relevant business case, although it is technically allowed.
-Each implementation will have to specify which business use cases are actually supported.
-A standing order request must embed one single payment instruction and must address one single beneficiary.
-
-* The beneficiary must be set at the payment level
-* The standing order specific characteristics (start date, periodicity...) must be set at the instruction level
-
-Payment request can rely for execution on different payment instruments: - SEPA Credit Transfer (SCT) - Domestic Credit Transfer in a non Euro-currency - International payment The following table indicates how to use the different fields, depending on the payment instrument:
-
-| Structure | SEPA payments | Domestic payments in non-euro currency | International payments |
-|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
-| PaymentTypeInformation/ InstructionPriority (payment level) | "HIGH" for high-priority SCT "NORM" for other SCT Ignored for SCTInst | "HIGH" for high-priority CT "NORM" or ignored for other CT | "HIGH" for high-priority payments "NORM" or ignored for other payments |
-| PaymentTypeInformation/ ServiceLevel (payment level) | "SEPA" for SCT and SCTInst | ignored | ignored |
-| PaymentTypeInformation/ CategoryPurpose (payment level) | "CASH" for transfer request "DVPM" for payment request on behalf of a merchant || "CORT" for generic international payments "INTC" for transfers between two branches within the same company "TREA" for treasury transfers |
-| PaymentTypeInformation/ LocalInstrument (payment level) | "INST" pour les SCTInst Otherwise ignored | ignored or valued with ISO20022 external code list values ||
-| RequestedExecutionDate (either at payment or transaction level) | Mandatory (indicates the date on debit on the ordering party account) |||
-| InstructedAmount (at each transaction level) | Mandatory |||
-| ChargeBearer (at each transaction level) | "SLEV" for SCT and SCTInst | "SLEV" or "SHAR" | "CRED", "DEBT" or "SHAR" |
-| Purpose (at payment level) | Optional |||
-| RegulatoryReportingCode (at each transaction level) | Not used || Mandatory (possibly multiple values) |
-| RemittanceInformation | Optional Unstructured |||
-| Debtor (at payment level) | Mandatory 2 address lines only | Mandatory 4 address lines only ||
-| DebtorAccount (at payment level) | Optional | Optional Account currency may be specified ||
-| DebtorAgent (at payment level) | Optional |||
-| Creditor (either at payment or transaction level) | Mandatory 2 address lines only |||
-| CreditorAccount (either at payment or transaction level) | Mandatory | Mandatory Account currency may be specified ||
-| CreditorAgent (either at payment or transaction level) | Optional |||
-| UltimateCreditor (either at payment or transaction level) | Optional |||
-| ClearingSystemId et ClearingSystemMemberId (either at payment or transaction level) | Not used || Optional |
-
-
-
-#### Prerequisites for all use cases
-
-* The TPP has been registered by the Registration Authority for the PISP role
-* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
-* The TPP and the ASPSP have successfully processed a mutual check and authentication
-* The TPP has presented its "OAUTH2 Client Credential" access token
-
-#### Business flow
-
-##### Payment Request use case
-
-The PISP forwards a payment request on behalf of a merchant.
-The PSU buys some goods or services on an e-commerce website held by a merchant. Among other payment method, the merchant suggests the use of a PISP service. As there is obviously a contract between the merchant and the PISP, there is no need of such a contract between the PSU and this PISP to initiate the process.
-Case of the PSU that chooses to use the PISP service:
-
-* The merchant forwards the requested payment characteristics to the PISP and redirects the PSU to the PISP portal.
-* The PISP requests from the PSU which ASPSP will be used.
-* The PISP prepares the Payment Request and sends this request to the ASPSP.
-* The Request can embed several payment instructions having different requested execution date.
-* The beneficiary, as being the merchant, is set at the payment level.
-
-##### Transfer Request use case
-
-The PISP forwards a transfer request on behalf of the owner of the account.
-
-* The PSU provides the PISP with all information needed for the transfer.
-* The PISP prepares the Transfer Request and sends this request to the relevant ASPSP that holds the debtor account.
-* The Request can embed several payment instructions having different beneficiaries.
-* The requested execution date, as being the same for all instructions, is set at the payment level.
-
-##### Standing Order Request use case
-
-The PISP forwards a Standing Order request on behalf of the owner of the account.
-
-* The PSU provides the PISP with all information needed for the Standing Order.
-* The PISP prepares the Standing Order Request and sends this request to the relevant ASPSP that holds the debtor account.
-* The Request embeds one single payment instruction with
-
-#### Authentication flows for all use cases
-
-As the request posted by the PISP to the ASPSP needs a PSU authentication before execution, this request will include:
-
-* The specification of the authentication approaches that are supported by the PISP (any combination of "REDIRECT", "EMBEDDED" and "DECOUPLED" values).
-* In case of possible REDIRECT or DECOUPLED authentication approach, one or two call-back URLs to be used by the ASPSP at the finalisation of the authentication and consent process :
-* In case of possible "EMBEDDED" or "DECOUPLED" approaches, the PSU identifier that can be processed by the ASPSP for PSU recognition must have been set within the request body [debtor] structure.
-
-The ASPSP saves the request and answers to the PISP. The answer embeds:
-
-
-
-* A location link of the saved Request that will be further used to retrieve the Request and its status information.
-* The specification of the chosen authentication approach taking into account both the PISP and the PSU capabilities.
-* In case of chosen REDIRECT authentication approach, the URL to be used by the PISP for redirecting the PSU in order to perform a authentication.
-
-Case of the PSU neither gives nor denies his/her consent, the Request shall expire and is then rejected to the PISP. The expiration delay is specified by each ASPSP.
-
-##### Redirect authentication approach
-
-When the chosen authentication approach within the ASPSP answers is set to "REDIRECT":
-
-* The PISP redirects the PSU to the ASPSP which authenticates the PSU
-* The ASPSP asks the PSU to give (or deny) his/her consent to the Payment Request
-* The PSU chooses or confirms which of his/her accounts shall be used by the ASPSP for the future Credit Transfer.
-* The ASPSP is then able to initiate the subsequent Credit Transfer
-* The ASPSP redirects the PSU to the PISP using one of the call-back URLs provided within the posted Payment Request
-
- 
-
-##### Decoupled authentication approach
-
-When the chosen authentication approach is "DECOUPLED":
-
-* Based on the PSU identifier provided within the Payment Request by the PISP, the ASPSP gives the PSU with the Payment Request details and challenges the PSU for a Strong Customer Authentication on a decoupled device or application.
-* The PSU chooses or confirms which of his/her accounts shall be used by the ASPSP for the future Credit Transfer.
-* The ASPSP is then able to initiate the subsequent Credit Transfer
-* The ASPSP notifies the PISP about the finalisation of the authentication and consent process by using one of the call-back URLs provided within the posted Payment Request
-
- 
-
-##### Embedded authentication approach
-
-When the chosen authentication approach within the ASPSP answers is set to "EMBEDDED":
-
-* The TPP informs the PSU that a challenge is needed for completing the Payment Request processing. This challenge will be one of the following:
-* The PSU unlock the device or application through a "knowledge factor" and/or an "inherence factor" (biometric), retrieves the Payment Request details and processes the data sent by the ASPSP;
-* The PSU might choose or confirm which of his/her accounts shall be used by the ASPSP for the future Credit Transfer when the device or application allows it.
-* When agreeing the Payment Request, the PSU enters the resulting authentication factor through the PISP interface which will forward it to the ASPSP through a confirmation request (cf. § 4.7)
-
- 
-
- """,
- json.parse("""{
- "paymentInformationId" : "MyPmtInfId",
- "creationDateTime" : "2018-03-31T13:25:22.527+02:00",
- "numberOfTransactions" : 1,
- "initiatingParty" : {
- "name" : "MyPreferedPisp",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "organisationId" : {
- "identification" : "12FR5",
- "schemeName" : "COID",
- "issuer" : "ACPR"
- }
- },
- "paymentTypeInformation" : {
- "serviceLevel" : "SEPA",
- "localInstrument" : "INST",
- "categoryPurpose" : "DVPM"
- },
- "debtor" : {
- "name" : "MyCustomer",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "privateId" : {
- "identification" : "FD37G",
- "schemeName" : "BANK",
- "issuer" : "BICXYYTTZZZ"
- }
- },
- "creditor" : {
- "name" : "myMerchant",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "organisationId" : {
- "identification" : "852126789",
- "schemeName" : "SIREN",
- "issuer" : "FR"
- }
- },
- "creditorAccount" : {
- "iban" : "YY64COJH41059545330222956960771321"
- },
- "ultimateCreditor" : {
- "name" : "myPreferedUltimateMerchant",
- "postalAddress" : {
- "country" : "FR",
- "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
- },
- "organisationId" : {
- "identification" : "85212678900025",
- "schemeName" : "SIRET",
- "issuer" : "FR"
- }
- },
- "purpose" : "COMC",
- "chargeBearer" : "SLEV",
- "creditTransferTransaction" : [ {
- "paymentId" : {
- "instructionId" : "MyInstrId",
- "endToEndId" : "MyEndToEndId"
- },
- "requestedExecutionDate" : "2016-12-31T00:00:00.000+01:00",
- "instructedAmount" : {
- "currency" : "EUR",
- "amount" : "124.35"
- },
- "remittanceInformation" : [ "MyRemittanceInformation" ]
- } ],
- "supplementaryData" : {
- "acceptedAuthenticationApproach" : [ "REDIRECT", "DECOUPLED" ],
- "successfulReportUrl" : "http://myPisp/PaymentSuccess",
- "unsuccessfulReportUrl" : "http://myPisp/PaymentFailure"
- }
-}"""),
- EmptyBody,
- List(AuthenticatedUserIsRequired, UnknownError),
- ApiTag("PISP") :: apiTagMockedData :: Nil
- )
-
- lazy val paymentRequestsPost : OBPEndpoint = {
- case "payment-requests" :: Nil JsonPost _ => {
- cc =>
- for {
- (Full(u), callContext) <- authenticatedAccess(cc)
- } yield {
- (NotImplemented, callContext)
- }
- }
- }
-
-}
-
-
-
+//package code.api.STET.v1_4
+//
+//import scala.language.implicitConversions
+//import code.api.berlin.group.v1_3.JvalueCaseClass
+//import code.api.util.APIUtil._
+//import code.api.util.ApiTag
+//import code.api.util.ApiTag._
+//import code.api.util.ErrorMessages._
+//import com.github.dwickern.macros.NameOf.nameOf
+//import net.liftweb.common.Full
+//import net.liftweb.http.rest.RestHelper
+//import net.liftweb.json
+//import net.liftweb.json._
+//
+//import scala.collection.immutable.Nil
+//import scala.collection.mutable.ArrayBuffer
+//import com.openbankproject.commons.ExecutionContext.Implicits.global
+//
+//object APIMethods_PISPApi extends RestHelper {
+// val apiVersion = OBP_STET_1_4.apiVersion
+// val resourceDocs = ArrayBuffer[ResourceDoc]()
+// val apiRelations = ArrayBuffer[ApiRelation]()
+// protected implicit def JvalueToSuper(what: JValue): JvalueCaseClass = JvalueCaseClass(what)
+//
+// val endpoints =
+// paymentRequestConfirmationPost ::
+// paymentRequestPut ::
+// paymentRequestsGet ::
+// paymentRequestsPost ::
+// Nil
+//
+//
+// resourceDocs += ResourceDoc(
+// paymentRequestConfirmationPost,
+// apiVersion,
+// nameOf(paymentRequestConfirmationPost),
+// "POST",
+// "/payment-requests/PAYMENTREQUESTRESOURCEID/confirmation",
+// "Confirmation of a payment request or a modification request (PISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//The PISP confirms one of the following requests
+//
+//* payment request on behalf of a merchant
+//* transfer request on behalf of the account's owner
+//* standing-order request on behalf of the account's owner
+//
+//The ASPSP answers with a status of the relevant request and the subsequent Credit Transfer.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the PISP role
+//* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
+//* The TPP has previously posted a Request which has been saved by the ASPSP (cf. § 4.5.3)
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its "OAUTH2 Client Credential" access token
+//
+//### Business flow
+//
+//Once the PSU has been authenticated, it is the due to the PISP to confirm the Request to the ASPSP in order to complete the process flow.
+//In REDIRECT and DECOUPLED approach, this confirmation is not a prerequisite to the execution of the Credit Transfer.
+//
+// """,
+// json.parse("""{
+// "psuAuthenticationFactor" : "JJKJKJ788GKJKJBK"
+//}"""),
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val paymentRequestConfirmationPost : OBPEndpoint = {
+// case "payment-requests" :: paymentrequestresourceid:: "confirmation" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// paymentRequestPut,
+// apiVersion,
+// nameOf(paymentRequestPut),
+// "PUT",
+// "/payment-requests/PAYMENTREQUESTRESOURCEID",
+// "Modification of a Payment/Transfer Request (PISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//The PISP sent a Payment/Transfer Request through a POST command.
+//The ASPSP registered the Payment/Transfer Request, updated if necessary the relevant identifiers in order to avoid duplicates and returned the location of the updated Request.
+//The PISP got the Payment/Transfer Request that has been updated with the resource identifiers, and eventually the status of the Payment/Transfer Request and the status of the subsequent credit transfer.
+//The PISP request for the payment cancellation (global cancellation) or for some payment instructions cancellation (partial cancellation)
+//No other modification of the Payment/Transfer Request is allowed.
+//
+//### Prerequisites
+//
+//* The TPP was registered by the Registration Authority for the PISP role
+//* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
+//* The TPP previously posted a Payment/Transfer Request which was saved by the ASPSP (cf. § 4.5.3)
+//* The TPP and the ASPSP successfully processed a mutual check and authentication
+//* The TPP presented its "OAUTH2 Client Credential" access token.
+//* The TPP presented the payment/transfer request.
+//* The PSU was successfully authenticated.
+//
+//### Business flow
+//
+//the following cases can be applied:
+//
+//* Case of a payment with multiple instructions or a standing order, the PISP asks to cancel the whole Payment/Transfer or Standing Order Request including all non-executed payment instructions by setting the [paymentInformationStatus] to "RJCT" and the relevant [statusReasonInformation] to "DS02" at payment level.
+//* Case of a payment with multiple instructions, the PISP asks to cancel one or several payment instructions by setting the [transactionStatus] to "RJCT" and the relevant [statusReasonInformation] to "DS02" at each relevant instruction level.
+//
+//Since the modification request needs a PSU authentication before committing, the modification request includes:
+//
+//
+//
+//* The specification of the authentication approaches that are supported by the PISP (any combination of "REDIRECT", "EMBEDDED" and "DECOUPLED" values).
+//* In case of possible REDIRECT or DECOUPLED authentication approach, one or two call-back URLs to be used by the ASPSP at the finalisation of the authentication and consent process :
+//* In case of possible "EMBEDDED" or "DECOUPLED" approaches, a PSU identifier that can be processed by the ASPSP for PSU recognition.
+//
+//* The ASPSP saves the updated Payment/Transfer Request and answers to the PISP. The answer embeds
+//
+//
+// """,
+// json.parse("""{
+// "paymentInformationId" : "MyPmtInfId",
+// "creationDateTime" : "2018-03-31T13:25:22.527+02:00",
+// "numberOfTransactions" : 1,
+// "initiatingParty" : {
+// "name" : "MyPreferedPisp",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "organisationId" : {
+// "identification" : "12FR5",
+// "schemeName" : "COID",
+// "issuer" : "ACPR"
+// }
+// },
+// "paymentTypeInformation" : {
+// "serviceLevel" : "SEPA",
+// "localInstrument" : "INST",
+// "categoryPurpose" : "DVPM"
+// },
+// "debtor" : {
+// "name" : "MyCustomer",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "privateId" : {
+// "identification" : "FD37G",
+// "schemeName" : "BANK",
+// "issuer" : "BICXYYTTZZZ"
+// }
+// },
+// "creditor" : {
+// "name" : "myMerchant",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "organisationId" : {
+// "identification" : "852126789",
+// "schemeName" : "SIREN",
+// "issuer" : "FR"
+// }
+// },
+// "creditorAccount" : {
+// "iban" : "YY64COJH41059545330222956960771321"
+// },
+// "ultimateCreditor" : {
+// "name" : "myPreferedUltimateMerchant",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "organisationId" : {
+// "identification" : "85212678900025",
+// "schemeName" : "SIRET",
+// "issuer" : "FR"
+// }
+// },
+// "purpose" : "COMC",
+// "chargeBearer" : "SLEV",
+// "creditTransferTransaction" : [ {
+// "paymentId" : {
+// "instructionId" : "MyInstrId",
+// "endToEndId" : "MyEndToEndId"
+// },
+// "requestedExecutionDate" : "2016-12-31T00:00:00.000+01:00",
+// "instructedAmount" : {
+// "currency" : "EUR",
+// "amount" : "124.35"
+// },
+// "remittanceInformation" : [ "MyRemittanceInformation" ]
+// } ],
+// "supplementaryData" : {
+// "acceptedAuthenticationApproach" : [ "REDIRECT", "DECOUPLED" ],
+// "successfulReportUrl" : "http://myPisp/PaymentSuccess",
+// "unsuccessfulReportUrl" : "http://myPisp/PaymentFailure"
+// }
+//}"""),
+// json.parse("""{
+// "appliedAuthenticationApproach" : {
+// "appliedAuthenticationApproach" : "REDIRECT"
+// },
+// "_links" : {
+// "consentApproval" : {
+// "href" : "https://psd2.aspsp/consent-approval"
+// }
+// }
+//}"""),
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val paymentRequestPut : OBPEndpoint = {
+// case "payment-requests" :: paymentrequestresourceid :: Nil JsonPut _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (json.parse("""{
+// "appliedAuthenticationApproach" : {
+// "appliedAuthenticationApproach" : "REDIRECT"
+// },
+// "_links" : {
+// "consentApproval" : {
+// "href" : "https://psd2.aspsp/consent-approval"
+// }
+// }
+//}"""), callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// paymentRequestsGet,
+// apiVersion,
+// nameOf(paymentRequestsGet),
+// "GET",
+// "/payment-requests/PAYMENTREQUESTRESOURCEID",
+// "Retrieval of a payment request (PISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//The following use cases can be applied:
+//
+//* retrieval of a payment request on behalf of a merchant
+//* retrieval of a transfer request on behalf of the account's owner
+//* retrieval of a standing-order request on behalf of the account's owner
+//
+//The PISP has sent a Request through a POST command.
+//The ASPSP has registered the Request, updated if necessary the relevant identifiers in order to avoid duplicates and returned the location of the updated Request.
+//The PISP gets the Request that has been updated with the resource identifiers, and eventually the status of the Payment/Transfer Request and the status of the subsequent credit transfer.
+//
+//### Prerequisites
+//
+//* The TPP has been registered by the Registration Authority for the PISP role
+//* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
+//* The TPP has previously posted a Request which has been saved by the ASPSP (cf. § 4.5.3)
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its "OAUTH2 Client Credential" access token
+//
+//### Business flow
+//
+//The PISP asks to retrieve the Payment/Transfer Request that has been saved by the ASPSP. The PISP uses the location link provided by the ASPSP in response of the posting of this request.
+//The ASPSP returns the previously posted Payment/Transfer Request which is enriched with:
+//
+//* The resource identifiers given by the ASPSP
+//* The status information of the Payment Request and of the subsequent credit transfer
+//
+//The status information must be available during at least 30 calendar days after the posting of the Payment Request. However, the ASPSP may increase this availability duration, based on its own rules.
+//
+// """,
+// EmptyBody,
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val paymentRequestsGet : OBPEndpoint = {
+// case "payment-requests" :: paymentrequestresourceid :: Nil JsonGet _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+// resourceDocs += ResourceDoc(
+// paymentRequestsPost,
+// apiVersion,
+// nameOf(paymentRequestsPost),
+// "POST",
+// "/payment-requests",
+// "Payment request initiation (PISP)",
+// s"""${mockedDataText(true)}
+// ### Description
+//
+//The following use cases can be applied:
+//
+//* payment request on behalf of a merchant
+//* transfer request on behalf of the account's owner
+//* standing-order request on behalf of the account's owner
+//
+//#### Data content
+//
+//A payment request or a transfer request might embed several payment instructions having
+//
+//* one single execution date or multiple execution dates
+//* one single beneficiary or multiple beneficiaries
+//
+//Having at the same time multiple beneficiaries and multiple execution date might not be a relevant business case, although it is technically allowed.
+//Each implementation will have to specify which business use cases are actually supported.
+//A standing order request must embed one single payment instruction and must address one single beneficiary.
+//
+//* The beneficiary must be set at the payment level
+//* The standing order specific characteristics (start date, periodicity...) must be set at the instruction level
+//
+//Payment request can rely for execution on different payment instruments: - SEPA Credit Transfer (SCT) - Domestic Credit Transfer in a non Euro-currency - International payment The following table indicates how to use the different fields, depending on the payment instrument:
+//
+//| Structure | SEPA payments | Domestic payments in non-euro currency | International payments |
+//|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
+//| PaymentTypeInformation/ InstructionPriority (payment level) | "HIGH" for high-priority SCT "NORM" for other SCT Ignored for SCTInst | "HIGH" for high-priority CT "NORM" or ignored for other CT | "HIGH" for high-priority payments "NORM" or ignored for other payments |
+//| PaymentTypeInformation/ ServiceLevel (payment level) | "SEPA" for SCT and SCTInst | ignored | ignored |
+//| PaymentTypeInformation/ CategoryPurpose (payment level) | "CASH" for transfer request "DVPM" for payment request on behalf of a merchant || "CORT" for generic international payments "INTC" for transfers between two branches within the same company "TREA" for treasury transfers |
+//| PaymentTypeInformation/ LocalInstrument (payment level) | "INST" pour les SCTInst Otherwise ignored | ignored or valued with ISO20022 external code list values ||
+//| RequestedExecutionDate (either at payment or transaction level) | Mandatory (indicates the date on debit on the ordering party account) |||
+//| InstructedAmount (at each transaction level) | Mandatory |||
+//| ChargeBearer (at each transaction level) | "SLEV" for SCT and SCTInst | "SLEV" or "SHAR" | "CRED", "DEBT" or "SHAR" |
+//| Purpose (at payment level) | Optional |||
+//| RegulatoryReportingCode (at each transaction level) | Not used || Mandatory (possibly multiple values) |
+//| RemittanceInformation | Optional Unstructured |||
+//| Debtor (at payment level) | Mandatory 2 address lines only | Mandatory 4 address lines only ||
+//| DebtorAccount (at payment level) | Optional | Optional Account currency may be specified ||
+//| DebtorAgent (at payment level) | Optional |||
+//| Creditor (either at payment or transaction level) | Mandatory 2 address lines only |||
+//| CreditorAccount (either at payment or transaction level) | Mandatory | Mandatory Account currency may be specified ||
+//| CreditorAgent (either at payment or transaction level) | Optional |||
+//| UltimateCreditor (either at payment or transaction level) | Optional |||
+//| ClearingSystemId et ClearingSystemMemberId (either at payment or transaction level) | Not used || Optional |
+//
+//
+//
+//#### Prerequisites for all use cases
+//
+//* The TPP has been registered by the Registration Authority for the PISP role
+//* The TPP was provided with an OAUTH2 "Client Credential" access token by the ASPSP (cf. § 3.4.3).
+//* The TPP and the ASPSP have successfully processed a mutual check and authentication
+//* The TPP has presented its "OAUTH2 Client Credential" access token
+//
+//#### Business flow
+//
+//##### Payment Request use case
+//
+//The PISP forwards a payment request on behalf of a merchant.
+//The PSU buys some goods or services on an e-commerce website held by a merchant. Among other payment method, the merchant suggests the use of a PISP service. As there is obviously a contract between the merchant and the PISP, there is no need of such a contract between the PSU and this PISP to initiate the process.
+//Case of the PSU that chooses to use the PISP service:
+//
+//* The merchant forwards the requested payment characteristics to the PISP and redirects the PSU to the PISP portal.
+//* The PISP requests from the PSU which ASPSP will be used.
+//* The PISP prepares the Payment Request and sends this request to the ASPSP.
+//* The Request can embed several payment instructions having different requested execution date.
+//* The beneficiary, as being the merchant, is set at the payment level.
+//
+//##### Transfer Request use case
+//
+//The PISP forwards a transfer request on behalf of the owner of the account.
+//
+//* The PSU provides the PISP with all information needed for the transfer.
+//* The PISP prepares the Transfer Request and sends this request to the relevant ASPSP that holds the debtor account.
+//* The Request can embed several payment instructions having different beneficiaries.
+//* The requested execution date, as being the same for all instructions, is set at the payment level.
+//
+//##### Standing Order Request use case
+//
+//The PISP forwards a Standing Order request on behalf of the owner of the account.
+//
+//* The PSU provides the PISP with all information needed for the Standing Order.
+//* The PISP prepares the Standing Order Request and sends this request to the relevant ASPSP that holds the debtor account.
+//* The Request embeds one single payment instruction with
+//
+//#### Authentication flows for all use cases
+//
+//As the request posted by the PISP to the ASPSP needs a PSU authentication before execution, this request will include:
+//
+//* The specification of the authentication approaches that are supported by the PISP (any combination of "REDIRECT", "EMBEDDED" and "DECOUPLED" values).
+//* In case of possible REDIRECT or DECOUPLED authentication approach, one or two call-back URLs to be used by the ASPSP at the finalisation of the authentication and consent process :
+//* In case of possible "EMBEDDED" or "DECOUPLED" approaches, the PSU identifier that can be processed by the ASPSP for PSU recognition must have been set within the request body [debtor] structure.
+//
+//The ASPSP saves the request and answers to the PISP. The answer embeds:
+//
+//
+//
+//* A location link of the saved Request that will be further used to retrieve the Request and its status information.
+//* The specification of the chosen authentication approach taking into account both the PISP and the PSU capabilities.
+//* In case of chosen REDIRECT authentication approach, the URL to be used by the PISP for redirecting the PSU in order to perform a authentication.
+//
+//Case of the PSU neither gives nor denies his/her consent, the Request shall expire and is then rejected to the PISP. The expiration delay is specified by each ASPSP.
+//
+//##### Redirect authentication approach
+//
+//When the chosen authentication approach within the ASPSP answers is set to "REDIRECT":
+//
+//* The PISP redirects the PSU to the ASPSP which authenticates the PSU
+//* The ASPSP asks the PSU to give (or deny) his/her consent to the Payment Request
+//* The PSU chooses or confirms which of his/her accounts shall be used by the ASPSP for the future Credit Transfer.
+//* The ASPSP is then able to initiate the subsequent Credit Transfer
+//* The ASPSP redirects the PSU to the PISP using one of the call-back URLs provided within the posted Payment Request
+//
+// 
+//
+//##### Decoupled authentication approach
+//
+//When the chosen authentication approach is "DECOUPLED":
+//
+//* Based on the PSU identifier provided within the Payment Request by the PISP, the ASPSP gives the PSU with the Payment Request details and challenges the PSU for a Strong Customer Authentication on a decoupled device or application.
+//* The PSU chooses or confirms which of his/her accounts shall be used by the ASPSP for the future Credit Transfer.
+//* The ASPSP is then able to initiate the subsequent Credit Transfer
+//* The ASPSP notifies the PISP about the finalisation of the authentication and consent process by using one of the call-back URLs provided within the posted Payment Request
+//
+// 
+//
+//##### Embedded authentication approach
+//
+//When the chosen authentication approach within the ASPSP answers is set to "EMBEDDED":
+//
+//* The TPP informs the PSU that a challenge is needed for completing the Payment Request processing. This challenge will be one of the following:
+//* The PSU unlock the device or application through a "knowledge factor" and/or an "inherence factor" (biometric), retrieves the Payment Request details and processes the data sent by the ASPSP;
+//* The PSU might choose or confirm which of his/her accounts shall be used by the ASPSP for the future Credit Transfer when the device or application allows it.
+//* When agreeing the Payment Request, the PSU enters the resulting authentication factor through the PISP interface which will forward it to the ASPSP through a confirmation request (cf. § 4.7)
+//
+// 
+//
+// """,
+// json.parse("""{
+// "paymentInformationId" : "MyPmtInfId",
+// "creationDateTime" : "2018-03-31T13:25:22.527+02:00",
+// "numberOfTransactions" : 1,
+// "initiatingParty" : {
+// "name" : "MyPreferedPisp",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "organisationId" : {
+// "identification" : "12FR5",
+// "schemeName" : "COID",
+// "issuer" : "ACPR"
+// }
+// },
+// "paymentTypeInformation" : {
+// "serviceLevel" : "SEPA",
+// "localInstrument" : "INST",
+// "categoryPurpose" : "DVPM"
+// },
+// "debtor" : {
+// "name" : "MyCustomer",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "privateId" : {
+// "identification" : "FD37G",
+// "schemeName" : "BANK",
+// "issuer" : "BICXYYTTZZZ"
+// }
+// },
+// "creditor" : {
+// "name" : "myMerchant",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "organisationId" : {
+// "identification" : "852126789",
+// "schemeName" : "SIREN",
+// "issuer" : "FR"
+// }
+// },
+// "creditorAccount" : {
+// "iban" : "YY64COJH41059545330222956960771321"
+// },
+// "ultimateCreditor" : {
+// "name" : "myPreferedUltimateMerchant",
+// "postalAddress" : {
+// "country" : "FR",
+// "addressLine" : [ "18 rue de la DSP2", "75008 PARIS" ]
+// },
+// "organisationId" : {
+// "identification" : "85212678900025",
+// "schemeName" : "SIRET",
+// "issuer" : "FR"
+// }
+// },
+// "purpose" : "COMC",
+// "chargeBearer" : "SLEV",
+// "creditTransferTransaction" : [ {
+// "paymentId" : {
+// "instructionId" : "MyInstrId",
+// "endToEndId" : "MyEndToEndId"
+// },
+// "requestedExecutionDate" : "2016-12-31T00:00:00.000+01:00",
+// "instructedAmount" : {
+// "currency" : "EUR",
+// "amount" : "124.35"
+// },
+// "remittanceInformation" : [ "MyRemittanceInformation" ]
+// } ],
+// "supplementaryData" : {
+// "acceptedAuthenticationApproach" : [ "REDIRECT", "DECOUPLED" ],
+// "successfulReportUrl" : "http://myPisp/PaymentSuccess",
+// "unsuccessfulReportUrl" : "http://myPisp/PaymentFailure"
+// }
+//}"""),
+// EmptyBody,
+// List(AuthenticatedUserIsRequired, UnknownError),
+// ApiTag("PISP") :: apiTagMockedData :: Nil
+// )
+//
+// lazy val paymentRequestsPost : OBPEndpoint = {
+// case "payment-requests" :: Nil JsonPost _ => {
+// cc =>
+// for {
+// (Full(u), callContext) <- authenticatedAccess(cc)
+// } yield {
+// (NotImplemented, callContext)
+// }
+// }
+// }
+//
+//}
+//
+//
+//
diff --git a/obp-api/src/main/scala/code/api/util/APIUtil.scala b/obp-api/src/main/scala/code/api/util/APIUtil.scala
index 6cede202c2..c0b76123c3 100644
--- a/obp-api/src/main/scala/code/api/util/APIUtil.scala
+++ b/obp-api/src/main/scala/code/api/util/APIUtil.scala
@@ -5263,13 +5263,14 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
lazy val allStaticResourceDocs = (OBPAPI6_0_0.allResourceDocs
++ OBP_UKOpenBanking_200.allResourceDocs
++ OBP_UKOpenBanking_310.allResourceDocs
- ++ code.api.Polish.v2_1_1_1.OBP_PAPI_2_1_1_1.allResourceDocs
- ++ code.api.STET.v1_4.OBP_STET_1_4.allResourceDocs
- ++ code.api.AUOpenBanking.v1_0_0.ApiCollector.allResourceDocs
- ++ code.api.MxOF.CNBV9_1_0_0.allResourceDocs
- ++ code.api.berlin.group.v1_3.OBP_BERLIN_GROUP_1_3.allResourceDocs
- ++ code.api.MxOF.OBP_MXOF_1_0_0.allResourceDocs
- ++ code.api.BahrainOBF.v1_0_0.ApiCollector.allResourceDocs).toList
+ // Commented out: Lift endpoints migrated off / removed (Polish, STET, AUOpenBanking, MxOF/CNBV9, BahrainOBF)
+ // ++ code.api.Polish.v2_1_1_1.OBP_PAPI_2_1_1_1.allResourceDocs
+ // ++ code.api.STET.v1_4.OBP_STET_1_4.allResourceDocs
+ // ++ code.api.AUOpenBanking.v1_0_0.ApiCollector.allResourceDocs
+ // ++ code.api.MxOF.CNBV9_1_0_0.allResourceDocs
+ // ++ code.api.MxOF.OBP_MXOF_1_0_0.allResourceDocs
+ // ++ code.api.BahrainOBF.v1_0_0.ApiCollector.allResourceDocs
+ ++ code.api.berlin.group.v1_3.OBP_BERLIN_GROUP_1_3.allResourceDocs).toList
def allDynamicResourceDocs= (DynamicEntityHelper.doc ++ DynamicEndpointHelper.doc ++ DynamicEndpoints.dynamicResourceDocs).toList
diff --git a/obp-api/src/test/scala/code/api/http4sbridge/Http4sLiftBridgePropertyTest.scala b/obp-api/src/test/scala/code/api/http4sbridge/Http4sLiftBridgePropertyTest.scala
index 666dfe406e..4b69723533 100644
--- a/obp-api/src/test/scala/code/api/http4sbridge/Http4sLiftBridgePropertyTest.scala
+++ b/obp-api/src/test/scala/code/api/http4sbridge/Http4sLiftBridgePropertyTest.scala
@@ -36,46 +36,9 @@ import scala.util.Random
class Http4sLiftBridgePropertyTest extends V500ServerSetup {
- // --- MXOF (Mexican Open Finance) ---
- private val mxofPrefix = "mxof"
- private val mxofVersion = "v1.0.0"
- // MXOF endpoints: /atms (GET, HEAD)
- private val mxofGetEndpoints = List("/atms")
-
- // --- CNBV9 (Mexican Banking Commission) ---
- private val cnbv9Prefix = "CNBV9"
- private val cnbv9Version = "v1.0.0"
- // CNBV9 reuses MXOF ATM endpoints: /atms (GET, HEAD)
- private val cnbv9GetEndpoints = List("/atms")
-
- // --- STET (European Payment Services) ---
- private val stetPrefix = "stet"
- private val stetVersion = "v1.4"
- // STET GET endpoints: /accounts, /end-user-identity, /trusted-beneficiaries
- private val stetGetEndpoints = List("/accounts", "/end-user-identity", "/trusted-beneficiaries")
-
- // --- CDS Australia (Consumer Data Standards) ---
- private val cdsPrefix = "cds-au"
- private val cdsVersion = "v1.0.0"
- // CDS GET endpoints: /banking/products, /banking/accounts, /discovery/status, /discovery/outages
- private val cdsGetEndpoints = List("/banking/products", "/banking/accounts", "/discovery/status", "/discovery/outages")
-
- // --- Bahrain OBF (Open Banking Framework) ---
- private val bahrainPrefix = "BAHRAIN-OBF"
- private val bahrainVersion = "v1.0.0"
- // Bahrain GET endpoints: /accounts, /standing-orders
- private val bahrainGetEndpoints = List("/accounts", "/standing-orders")
-
- // --- Polish API ---
- private val polishPrefix = "polish-api"
- private val polishVersion = "v2.1.1.1"
- // Polish API uses POST-only endpoints with versioned paths:
- // /accounts/v2_1_1.1/getAccounts, /payments/v2_1_1.1/getPayment, etc.
- // We test POST endpoints since all Polish API endpoints are POST-only.
- private val polishPostEndpoints = List(
- "/accounts/v2_1_1.1/getAccounts",
- "/payments/v2_1_1.1/getPayment"
- )
+ // Commented out: MXOF/CNBV9/STET/CDS-AU(AUOpenBanking)/Bahrain/Polish Lift endpoints were removed
+ // from the codebase. Their per-standard bridge fixtures are dropped; only OBP core + UK OpenBanking
+ // + Berlin Group remain reachable through the Lift bridge.
private val bgVersion = "v1.3"
private val bgPrefix = "berlin-group"
private val allStandardVersions = List(
@@ -86,13 +49,7 @@ class Http4sLiftBridgePropertyTest extends V500ServerSetup {
"v5.0.0", "v5.1.0",
"v6.0.0"
)
- private val intlStandardsWithGetEndpoints = List(
- ("MXOF", mxofPrefix, mxofVersion, mxofGetEndpoints),
- ("CNBV9", cnbv9Prefix, cnbv9Version, cnbv9GetEndpoints),
- ("STET", stetPrefix, stetVersion, stetGetEndpoints),
- ("CDS-AU", cdsPrefix, cdsVersion, cdsGetEndpoints),
- ("Bahrain-OBF", bahrainPrefix, bahrainVersion, bahrainGetEndpoints)
- )
+ private val intlStandardsWithGetEndpoints: List[(String, String, String, List[String])] = List()
private val ukObVersions = List("v2.0", "v3.1")
// Reduced iteration counts keep CI fast while still catching probabilistic bugs.
diff --git a/obp-api/src/test/scala/code/api/v4_0_0/ApiCollectionEndpointTest.scala b/obp-api/src/test/scala/code/api/v4_0_0/ApiCollectionEndpointTest.scala
index f98b70644f..0aaec7df8a 100644
--- a/obp-api/src/test/scala/code/api/v4_0_0/ApiCollectionEndpointTest.scala
+++ b/obp-api/src/test/scala/code/api/v4_0_0/ApiCollectionEndpointTest.scala
@@ -201,86 +201,6 @@ class ApiCollectionEndpointTest extends V400ServerSetup {
val operationId= apiCollectionEndpoint.operation_id
}
- {
- Then(s"we test the $ApiEndpoint6- STETv1.4-consentsPut")
- val requestApiCollectionEndpoint = (v4_0_0_Request / "my" / "api-collection-ids" / apiCollectionId / "api-collection-endpoints").POST <@ (user1)
-
- lazy val postApiCollectionEndpointJson = SwaggerDefinitionsJSON.postApiCollectionEndpointJson400.copy(operation_id="STETv1.4-consentsPut")
-
- val responseApiCollectionEndpointJson = makePostRequest(requestApiCollectionEndpoint, write(postApiCollectionEndpointJson))
- Then("We should get a 201")
- responseApiCollectionEndpointJson.code should equal(201)
- val apiCollectionEndpoint = responseApiCollectionEndpointJson.body.extract[ApiCollectionEndpointJson400]
-
- apiCollectionEndpoint.operation_id should be (postApiCollectionEndpointJson.operation_id)
- apiCollectionEndpoint.api_collection_endpoint_id shouldNot be (null)
-
- val operationId= apiCollectionEndpoint.operation_id
- }
- {
- Then(s"we test the $ApiEndpoint6- PAPIv2.1.1.1-getAccount")
- val requestApiCollectionEndpoint = (v4_0_0_Request / "my" / "api-collection-ids" / apiCollectionId / "api-collection-endpoints").POST <@ (user1)
-
- lazy val postApiCollectionEndpointJson = SwaggerDefinitionsJSON.postApiCollectionEndpointJson400.copy(operation_id="PAPIv2.1.1.1-getAccount")
-
- val responseApiCollectionEndpointJson = makePostRequest(requestApiCollectionEndpoint, write(postApiCollectionEndpointJson))
- Then("We should get a 201")
- responseApiCollectionEndpointJson.code should equal(201)
- val apiCollectionEndpoint = responseApiCollectionEndpointJson.body.extract[ApiCollectionEndpointJson400]
-
- apiCollectionEndpoint.operation_id should be (postApiCollectionEndpointJson.operation_id)
- apiCollectionEndpoint.api_collection_endpoint_id shouldNot be (null)
-
- val operationId= apiCollectionEndpoint.operation_id
- }
- {
- Then(s"we test the $ApiEndpoint6- AUv1.0.0-listBalance")
- val requestApiCollectionEndpoint = (v4_0_0_Request / "my" / "api-collection-ids" / apiCollectionId / "api-collection-endpoints").POST <@ (user1)
-
- lazy val postApiCollectionEndpointJson = SwaggerDefinitionsJSON.postApiCollectionEndpointJson400.copy(operation_id="AUv1.0.0-listBalance")
-
- val responseApiCollectionEndpointJson = makePostRequest(requestApiCollectionEndpoint, write(postApiCollectionEndpointJson))
- Then("We should get a 201")
- responseApiCollectionEndpointJson.code should equal(201)
- val apiCollectionEndpoint = responseApiCollectionEndpointJson.body.extract[ApiCollectionEndpointJson400]
-
- apiCollectionEndpoint.operation_id should be (postApiCollectionEndpointJson.operation_id)
- apiCollectionEndpoint.api_collection_endpoint_id shouldNot be (null)
-
- val operationId= apiCollectionEndpoint.operation_id
- }
- {
- Then(s"we test the $ApiEndpoint6- BAHRAIN-OBFv1.0.0-accountAccessConsentsPost")
- val requestApiCollectionEndpoint = (v4_0_0_Request / "my" / "api-collection-ids" / apiCollectionId / "api-collection-endpoints").POST <@ (user1)
-
- lazy val postApiCollectionEndpointJson = SwaggerDefinitionsJSON.postApiCollectionEndpointJson400.copy(operation_id="BAHRAIN-OBFv1.0.0-accountAccessConsentsPost")
-
- val responseApiCollectionEndpointJson = makePostRequest(requestApiCollectionEndpoint, write(postApiCollectionEndpointJson))
- Then("We should get a 201")
- responseApiCollectionEndpointJson.code should equal(201)
- val apiCollectionEndpoint = responseApiCollectionEndpointJson.body.extract[ApiCollectionEndpointJson400]
-
- apiCollectionEndpoint.operation_id should be (postApiCollectionEndpointJson.operation_id)
- apiCollectionEndpoint.api_collection_endpoint_id shouldNot be (null)
-
- val operationId= apiCollectionEndpoint.operation_id
- }
- {
- Then(s"we test the $ApiEndpoint6- CNBV9v1.0.0-getMxAtms")
- val requestApiCollectionEndpoint = (v4_0_0_Request / "my" / "api-collection-ids" / apiCollectionId / "api-collection-endpoints").POST <@ (user1)
-
- lazy val postApiCollectionEndpointJson = SwaggerDefinitionsJSON.postApiCollectionEndpointJson400.copy(operation_id="CNBV9v1.0.0-getMxAtms")
-
- val responseApiCollectionEndpointJson = makePostRequest(requestApiCollectionEndpoint, write(postApiCollectionEndpointJson))
- Then("We should get a 201")
- responseApiCollectionEndpointJson.code should equal(201)
- val apiCollectionEndpoint = responseApiCollectionEndpointJson.body.extract[ApiCollectionEndpointJson400]
-
- apiCollectionEndpoint.operation_id should be (postApiCollectionEndpointJson.operation_id)
- apiCollectionEndpoint.api_collection_endpoint_id shouldNot be (null)
-
- val operationId= apiCollectionEndpoint.operation_id
- }
{
Then(s"we test the $ApiEndpoint7")
@@ -292,7 +212,7 @@ class ApiCollectionEndpointTest extends V400ServerSetup {
val apiCollectionsJsonGet400 = responseGet.body.extract[ApiCollectionEndpointsJson400]
- apiCollectionsJsonGet400.api_collection_endpoints.length should be (9)
+ apiCollectionsJsonGet400.api_collection_endpoints.length should be (4)
}
}
}
diff --git a/obp-api/src/test/scala/code/util/ApiVersionUtilsTest.scala b/obp-api/src/test/scala/code/util/ApiVersionUtilsTest.scala
index 651dfc5cee..06dde3a94c 100644
--- a/obp-api/src/test/scala/code/util/ApiVersionUtilsTest.scala
+++ b/obp-api/src/test/scala/code/util/ApiVersionUtilsTest.scala
@@ -20,6 +20,8 @@ class ApiVersionUtilsTest extends V400ServerSetup {
versions.map(version => ApiVersionUtils.valueOf(version.fullyQualifiedVersion))
//NOTE, when we added the new version, better fix this number manually. and also check the versions
- versions.length shouldBe(26)
+ // 26 -> 20: removed Lift standards STET v1.4, Polish v2.1.1.1, AUOpenBanking v1.0.0,
+ // BahrainOBF v1.0.0, MxOF v1.0.0 and CNBV9 v1.0.0 (6 scanned versions).
+ versions.length shouldBe(20)
}}
}
\ No newline at end of file