feature/BGv1.3 added periodic_payments - step6

This commit is contained in:
hongwei 2024-09-10 14:18:51 +02:00
parent 3d8933e8c8
commit 529e3c55cb
13 changed files with 118 additions and 221 deletions

View File

@ -573,19 +573,28 @@ object SwaggerDefinitionsJSON {
to = toAccountTransferToAccount
)
val sepaCreditTransfers = SepaCreditTransfers(
debtorAccount = PaymentAccount(iban = "12345"),
instructedAmount = amountOfMoneyJsonV121,
creditorAccount = PaymentAccount(iban = "54321"),
creditorName = "John Miles"
)
val sepaCreditTransfersBerlinGroupV13 = SepaCreditTransfersBerlinGroupV13(
debtorAccount = PaymentAccount(iban = "GB33BUKB20201555555555"),
instructedAmount = amountOfMoneyJsonV121,
creditorAccount = PaymentAccount(iban = "DE75512108001245126199"),
creditorName = "John Miles"
)
val sepaCreditTransfers = SepaCreditTransfers(
debtorAccount = PaymentAccount(iban = "12345"),
instructedAmount = amountOfMoneyJsonV121,
creditorAccount = PaymentAccount(iban = "54321"),
creditorName = "John Miles"
)
val sepaCreditTransfersBerlinGroupV13 = SepaCreditTransfersBerlinGroupV13(
debtorAccount = PaymentAccount(iban = "GB33BUKB20201555555555"),
instructedAmount = amountOfMoneyJsonV121,
creditorAccount = PaymentAccount(iban = "DE75512108001245126199"),
creditorName = "John Miles"
)
val periodicSepaCreditTransfersBerlinGroupV13 = PeriodicSepaCreditTransfersBerlinGroupV13(
debtorAccount = PaymentAccount(iban = "GB33BUKB20201555555555"),
instructedAmount = amountOfMoneyJsonV121,
creditorAccount = PaymentAccount(iban = "DE75512108001245126199"),
creditorName = "John Miles",
frequency = "Monthly",
startDate ="2018-03-01",
)
val transactionRequestSimple= TransactionRequestSimple(
otherBankRoutingScheme = bankRoutingSchemeExample.value,

View File

@ -30,6 +30,7 @@ import net.liftweb.util.StringHelpers
import scala.collection.mutable.ListBuffer
import com.openbankproject.commons.model.ListResult
import code.util.Helper.MdcLoggable
import net.liftweb.common.Box.tryo
import net.liftweb.common.{EmptyBox, Full}
import net.liftweb.json
@ -692,7 +693,12 @@ object SwaggerJSONFactory extends MdcLoggable {
case _ if isOneOfType[Coll[BigDecimal], Coll[JBigDecimal]] => s""" {"type":"array", "items":{"type": "string", "format":"double","example":"123.321"}}"""
case _ if isOneOfType[Option[Coll[BigDecimal]], Option[Coll[JBigDecimal]]] => s""" {"type":"array", "items":{"type": "string", "format":"double","example":"123.321"}}"""
//Date
case _ if isOneOfType[Date, Option[Date]] => s""" {"type":"string", "format":"date","example":"${APIUtil.DateWithSecondsFormat.format(exampleValue)}"}"""
case _ if isOneOfType[Date, Option[Date]] => {
val valueBox = tryo {s""""${APIUtil.DateWithSecondsFormat.format(exampleValue)}""""}
if(valueBox.isEmpty) logger.debug(s"isOneOfType[Date, Option[Date]]- Current Example Value is: $paramType - $exampleValue")
val value = valueBox.getOrElse(APIUtil.DateWithSecondsExampleString)
s""" {"type":"string", "format":"date","example":$value}"""
}
case _ if isOneOfType[Coll[Date], Option[Coll[Date]]] => s""" {"type":"array", "items":{"type":"string", "format":"date"}}"""
//List or Array Option data.

View File

@ -1,7 +1,6 @@
package code.api.builder.PaymentInitiationServicePISApi
import code.api.Constant
import code.api.ResourceDocs1_4_0.SwaggerDefinitionsJSON.sepaCreditTransfersBerlinGroupV13
import code.api.berlin.group.v1_3.JSONFactory_BERLIN_GROUP_1_3.{CancelPaymentResponseJson, CancelPaymentResponseLinks, LinkHrefJson, UpdatePaymentPsuDataJson, checkAuthorisationConfirmation, checkSelectPsuAuthenticationMethod, checkTransactionAuthorisation, checkUpdatePsuAuthentication, createCancellationTransactionRequestJson}
import code.api.berlin.group.v1_3.{JSONFactory_BERLIN_GROUP_1_3, JvalueCaseClass, OBP_BERLIN_GROUP_1_3}
import code.api.util.APIUtil._
@ -633,7 +632,19 @@ Check the transaction status of a payment initiation.""",
"/payments/PAYMENT_PRODUCT",
"Payment initiation request(payments)",
generalPaymentSummary,
sepaCreditTransfersBerlinGroupV13,
json.parse(s"""{
"debtorAccount": {
"iban": "DE123456987480123"
},
"instructedAmount": {
"currency": "EUR",
"amount": "100"
},
"creditorAccount": {
"iban": "UK12 1234 5123 4517 2948 6166 077"
},
"creditorName": "70charname"
}"""),
json.parse(s"""{
"transactionStatus": "RCVD",
"paymentId": "1234-wertiq-983",

View File

@ -1088,6 +1088,7 @@ trait Connector extends MdcLoggable {
charge,
chargePolicy,
None,
None,
)
} map {
unboxFullOrFail(_, callContext, s"$InvalidConnectorResponseForCreateTransactionRequestImpl210")

View File

@ -345,7 +345,6 @@ object ConnectorBuilderUtil {
//"getCustomerByCustomerIdLegacy", // should not generate for Legacy methods
"createChallenges",
"createTransactionRequestv400",
"getCustomersByCustomerPhoneNumber",
"getTransactionAttributeById",
"createOrUpdateCustomerAttribute",
@ -390,6 +389,7 @@ object ConnectorBuilderUtil {
"makePaymentv200",
"createTransactionRequest",
"createTransactionRequestv200",
"createTransactionRequestv400",
"getStatus",
"getChargeValue",
"saveTransactionRequestTransaction",

View File

@ -5013,8 +5013,8 @@ object LocalMappedConnector extends Connector with MdcLoggable {
status.toString,
charge,
chargePolicy,
None, //berlinGroupPayments this is only from BerlinGroup
)
None,
None)
} map {
unboxFullOrFail(_, callContext, s"$InvalidConnectorResponseForCreateTransactionRequestImpl210")
}
@ -5170,6 +5170,7 @@ object LocalMappedConnector extends Connector with MdcLoggable {
status.toString,
charge,
chargePolicy,
paymentService,
berlinGroupPayments
)
saveTransactionRequestReasons(reasons, transactionRequest)

View File

@ -75,7 +75,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
val connectorName = "stored_procedure_vDec2019"
//---------------- dynamic start -------------------please don't modify this line
// ---------- created on 2024-08-07T12:43:02Z
// ---------- created on 2024-09-10T12:17:56Z
messageDocs += getAdapterInfoDoc
def getAdapterInfoDoc = MessageDoc(
@ -2423,7 +2423,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
@ -2435,192 +2440,6 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
response.map(convertToTuple[TransactionRequest](callContext))
}
messageDocs += createTransactionRequestv400Doc
def createTransactionRequestv400Doc = MessageDoc(
process = "obp.createTransactionRequestv400",
messageFormat = messageFormat,
description = "Create Transaction Requestv400",
outboundTopic = None,
inboundTopic = None,
exampleOutboundMessage = (
OutBoundCreateTransactionRequestv400(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext,
initiator= UserCommons(userPrimaryKey=UserPrimaryKey(123),
userId=userIdExample.value,
idGivenByProvider="string",
provider=providerExample.value,
emailAddress=emailAddressExample.value,
name=userNameExample.value,
createdByConsentId=Some("string"),
createdByUserInvitationId=Some("string"),
isDeleted=Some(true),
lastMarketingAgreementSignedDate=Some(toDate(dateExample))),
viewId=ViewId(viewIdExample.value),
fromAccount= BankAccountCommons(accountId=AccountId(accountIdExample.value),
accountType=accountTypeExample.value,
balance=BigDecimal(balanceExample.value),
currency=currencyExample.value,
name=bankAccountNameExample.value,
label=labelExample.value,
number=bankAccountNumberExample.value,
bankId=BankId(bankIdExample.value),
lastUpdate=toDate(bankAccountLastUpdateExample),
branchId=branchIdExample.value,
accountRoutings=List( AccountRouting(scheme=accountRoutingSchemeExample.value,
address=accountRoutingAddressExample.value)),
accountRules=List( AccountRule(scheme=accountRuleSchemeExample.value,
value=accountRuleValueExample.value)),
accountHolder=bankAccountAccountHolderExample.value,
attributes=Some(List( Attribute(name=attributeNameExample.value,
`type`=attributeTypeExample.value,
value=attributeValueExample.value)))),
toAccount= BankAccountCommons(accountId=AccountId(accountIdExample.value),
accountType=accountTypeExample.value,
balance=BigDecimal(balanceExample.value),
currency=currencyExample.value,
name=bankAccountNameExample.value,
label=labelExample.value,
number=bankAccountNumberExample.value,
bankId=BankId(bankIdExample.value),
lastUpdate=toDate(bankAccountLastUpdateExample),
branchId=branchIdExample.value,
accountRoutings=List( AccountRouting(scheme=accountRoutingSchemeExample.value,
address=accountRoutingAddressExample.value)),
accountRules=List( AccountRule(scheme=accountRuleSchemeExample.value,
value=accountRuleValueExample.value)),
accountHolder=bankAccountAccountHolderExample.value,
attributes=Some(List( Attribute(name=attributeNameExample.value,
`type`=attributeTypeExample.value,
value=attributeValueExample.value)))),
transactionRequestType=TransactionRequestType(transactionRequestTypeExample.value),
transactionRequestCommonBody= TransactionRequestCommonBodyJSONCommons(value= AmountOfMoneyJsonV121(currency=currencyExample.value,
amount=amountExample.value),
description=descriptionExample.value),
detailsPlain="string",
chargePolicy=chargePolicyExample.value,
challengeType=Some(challengeTypeExample.value),
scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS),
reasons=Some(List( TransactionRequestReason(code=codeExample.value,
documentNumber=Some(documentNumberExample.value),
amount=Some(amountExample.value),
currency=Some(currencyExample.value),
description=Some(descriptionExample.value)))),
paymentService = Some(paymentServiceExample.value),
berlinGroupPayments=Some( SepaCreditTransfersBerlinGroupV13(endToEndIdentification=Some("string"),
instructionIdentification=Some("string"),
debtorName=Some("string"),
debtorAccount=PaymentAccount("string"),
debtorId=Some("string"),
ultimateDebtor=Some("string"),
instructedAmount= AmountOfMoneyJsonV121(currency=currencyExample.value,
amount=amountExample.value),
currencyOfTransfer=Some("string"),
exchangeRateInformation=Some("string"),
creditorAccount=PaymentAccount("string"),
creditorAgent=Some("string"),
creditorAgentName=Some("string"),
creditorName="string",
creditorId=Some("string"),
creditorAddress=Some("string"),
creditorNameAndAddress=Some("string"),
ultimateCreditor=Some("string"),
purposeCode=Some("string"),
chargeBearer=Some("string"),
serviceLevel=Some("string"),
remittanceInformationUnstructured=Some("string"),
remittanceInformationUnstructuredArray=Some("string"),
remittanceInformationStructured=Some("string"),
remittanceInformationStructuredArray=Some("string"),
requestedExecutionDate=Some("string"),
requestedExecutionTime=Some("string"))))
),
exampleInboundMessage = (
InBoundCreateTransactionRequestv400(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext,
status=MessageDocsSwaggerDefinitions.inboundStatus,
data= TransactionRequest(id=TransactionRequestId(transactionRequestIdExample.value),
`type`=transactionRequestTypeExample.value,
from= TransactionRequestAccount(bank_id=bank_idExample.value,
account_id=account_idExample.value),
body= TransactionRequestBodyAllTypes(to_sandbox_tan=Some( TransactionRequestAccount(bank_id=bank_idExample.value,
account_id=account_idExample.value)),
to_sepa=Some(TransactionRequestIban(transactionRequestIban.value)),
to_counterparty=Some(TransactionRequestCounterpartyId(transactionRequestCounterpartyIdExample.value)),
to_simple=Some( TransactionRequestSimple(otherBankRoutingScheme=otherBankRoutingSchemeExample.value,
otherBankRoutingAddress=otherBankRoutingAddressExample.value,
otherBranchRoutingScheme=otherBranchRoutingSchemeExample.value,
otherBranchRoutingAddress=otherBranchRoutingAddressExample.value,
otherAccountRoutingScheme=otherAccountRoutingSchemeExample.value,
otherAccountRoutingAddress=otherAccountRoutingAddressExample.value,
otherAccountSecondaryRoutingScheme=otherAccountSecondaryRoutingSchemeExample.value,
otherAccountSecondaryRoutingAddress=otherAccountSecondaryRoutingAddressExample.value)),
to_transfer_to_phone=Some( TransactionRequestTransferToPhone(value= AmountOfMoneyJsonV121(currency=currencyExample.value,
amount=amountExample.value),
description=descriptionExample.value,
message=messageExample.value,
from= FromAccountTransfer(mobile_phone_number="string",
nickname=nicknameExample.value),
to=ToAccountTransferToPhone(toExample.value))),
to_transfer_to_atm=Some( TransactionRequestTransferToAtm(value= AmountOfMoneyJsonV121(currency=currencyExample.value,
amount=amountExample.value),
description=descriptionExample.value,
message=messageExample.value,
from= FromAccountTransfer(mobile_phone_number="string",
nickname=nicknameExample.value),
to= ToAccountTransferToAtm(legal_name="string",
date_of_birth="string",
mobile_phone_number="string",
kyc_document= ToAccountTransferToAtmKycDocument(`type`=typeExample.value,
number=numberExample.value)))),
to_transfer_to_account=Some( TransactionRequestTransferToAccount(value= AmountOfMoneyJsonV121(currency=currencyExample.value,
amount=amountExample.value),
description=descriptionExample.value,
transfer_type="string",
future_date="string",
to= ToAccountTransferToAccount(name=nameExample.value,
bank_code="string",
branch_number="string",
account= ToAccountTransferToAccountAccount(number=accountNumberExample.value,
iban=ibanExample.value)))),
to_sepa_credit_transfers=Some( SepaCreditTransfers(debtorAccount=PaymentAccount("string"),
instructedAmount= AmountOfMoneyJsonV121(currency=currencyExample.value,
amount=amountExample.value),
creditorAccount=PaymentAccount("string"),
creditorName="string")),
value= AmountOfMoney(currency=currencyExample.value,
amount=amountExample.value),
description=descriptionExample.value),
transaction_ids="string",
status=statusExample.value,
start_date=toDate(transactionRequestStartDateExample),
end_date=toDate(transactionRequestEndDateExample),
challenge= TransactionRequestChallenge(id=challengeIdExample.value,
allowed_attempts=123,
challenge_type="string"),
charge= TransactionRequestCharge(summary=summaryExample.value,
value= AmountOfMoney(currency=currencyExample.value,
amount=amountExample.value)),
charge_policy="string",
counterparty_id=CounterpartyId(transactionRequestCounterpartyIdExample.value),
name=nameExample.value,
this_bank_id=BankId(bankIdExample.value),
this_account_id=AccountId(accountIdExample.value),
this_view_id=ViewId(viewIdExample.value),
other_account_routing_scheme="string",
other_account_routing_address="string",
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
override def createTransactionRequestv400(initiator: User, viewId: ViewId, fromAccount: BankAccount, toAccount: BankAccount, transactionRequestType: TransactionRequestType, transactionRequestCommonBody: TransactionRequestCommonBodyJSON, detailsPlain: String, chargePolicy: String, challengeType: Option[String], scaMethod: Option[StrongCustomerAuthentication.SCA], reasons: Option[List[TransactionRequestReason]], paymentService: Option[String], berlinGroupPayments: Option[BerlinGroupTransactionRequestCommonBodyJson], callContext: Option[CallContext]): OBPReturnType[Box[TransactionRequest]] = {
import com.openbankproject.commons.dto.{InBoundCreateTransactionRequestv400 => InBound, OutBoundCreateTransactionRequestv400 => OutBound}
val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, initiator, viewId, fromAccount, toAccount, transactionRequestType, transactionRequestCommonBody, detailsPlain, chargePolicy, challengeType, scaMethod, reasons, paymentService, berlinGroupPayments)
val response: Future[Box[InBound]] = sendRequest[InBound]("obp_create_transaction_requestv400", req, callContext)
response.map(convertToTuple[TransactionRequest](callContext))
}
messageDocs += getTransactionRequests210Doc
def getTransactionRequests210Doc = MessageDoc(
process = "obp.getTransactionRequests210",
@ -2735,7 +2554,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string"))))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string"))))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
@ -2834,7 +2658,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
@ -2946,7 +2775,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")))
),
exampleInboundMessage = (
InBoundCreateTransactionAfterChallengeV210(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext,
@ -3024,7 +2858,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
@ -3716,7 +3555,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
@ -3981,7 +3825,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")))
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")))
),
adapterImplementation = Some(AdapterImplementation("- Core", 1))
)
@ -4075,7 +3924,12 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
other_bank_routing_scheme="string",
other_bank_routing_address="string",
is_beneficiary=true,
future_date=Some("string")),
future_date=Some("string"),
payment_start_date=Some(toDate(dateExample)),
payment_end_date=Some(toDate(dateExample)),
payment_execution_Rule=Some("string"),
payment_frequency=Some("string"),
payment_day_of_execution=Some("string")),
reasons=Some(List( TransactionRequestReason(code=codeExample.value,
documentNumber=Some(documentNumberExample.value),
amount=Some(amountExample.value),
@ -6776,8 +6630,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable {
response.map(convertToTuple[Boolean](callContext))
}
// ---------- created on 2024-08-07T12:43:02Z
//---------------- dynamic end ---------------------please don't modify this line
// ---------- created on 2024-09-10T12:17:56Z
//---------------- dynamic end ---------------------please don't modify this line
private val availableOperation = DynamicEntityOperation.values.map(it => s""""$it"""").mkString("[", ", ", "]")

View File

@ -88,6 +88,7 @@ object MappedTransactionRequestProvider extends TransactionRequestProvider {
status: String,
charge: TransactionRequestCharge,
chargePolicy: String,
paymentService: Option[String],
berlinGroupPayments: Option[BerlinGroupTransactionRequestCommonBodyJson]): Box[TransactionRequest] = {
val toAccountRouting = transactionRequestType.value match {
@ -97,7 +98,7 @@ object MappedTransactionRequestProvider extends TransactionRequestProvider {
case _ => toAccount.accountRoutings.headOption
}
val (paymentStartDate, paymentEndDate, executionRule, frequency, dayOfExecution) = if(transactionRequestType == TransactionRequestType("")){ //TODO, here need to add the paymentService
val (paymentStartDate, paymentEndDate, executionRule, frequency, dayOfExecution) = if(paymentService == Some("periodic-payments")){
val paymentFields = berlinGroupPayments.asInstanceOf[Option[PeriodicSepaCreditTransfersBerlinGroupV13]]
val paymentStartDate = paymentFields.map(_.startDate).map(DateWithMsFormat.parse).orNull

View File

@ -89,6 +89,7 @@ trait TransactionRequestProvider {
status: String,
charge: TransactionRequestCharge,
chargePolicy: String,
paymentService: Option[String],
berlinGroupPayments: Option[BerlinGroupTransactionRequestCommonBodyJson]): Box[TransactionRequest]
def saveTransactionRequestTransactionImpl(transactionRequestId: TransactionRequestId, transactionId: TransactionId): Box[Boolean]

View File

@ -55,8 +55,8 @@ class SwaggerFactoryUnitTest extends V140ServerSetup with MdcLoggable {
}
feature("Test all V300, V220 and V210, exampleRequestBodies and successResponseBodies and all the case classes in SwaggerDefinitionsJSON") {
scenario("Test all the case classes") {
val resourceDocList: ArrayBuffer[ResourceDoc] =
OBPAPI5_1_0.allResourceDocs ++
val resourceDocList: ArrayBuffer[ResourceDoc] = ArrayBuffer.empty
OBPAPI5_1_0.allResourceDocs// ++
OBPAPI5_0_0.allResourceDocs ++
OBPAPI4_0_0.allResourceDocs ++
OBPAPI3_1_0.allResourceDocs ++

View File

@ -515,7 +515,11 @@ case class OutBoundCreateChallenge(outboundAdapterCallContext: OutboundAdapterCa
case class InBoundCreateChallenge(inboundAdapterCallContext: InboundAdapterCallContext, status: Status, data: String) extends InBoundTrait[String]
case class OutBoundCreateCounterparty(outboundAdapterCallContext: OutboundAdapterCallContext, name: String, description: String, currency: String, createdByUserId: String, thisBankId: String, thisAccountId: String, thisViewId: String, otherAccountRoutingScheme: String, otherAccountRoutingAddress: String, otherAccountSecondaryRoutingScheme: String, otherAccountSecondaryRoutingAddress: String, otherBankRoutingScheme: String, otherBankRoutingAddress: String, otherBranchRoutingScheme: String, otherBranchRoutingAddress: String, isBeneficiary: Boolean, bespoke: List[CounterpartyBespoke]) extends TopicTrait
case class OutBoundCreateCounterparty(outboundAdapterCallContext: OutboundAdapterCallContext, name: String, description: String, currency: String, createdByUserId: String, thisBankId: String, thisAccountId: String, thisViewId: String, otherAccountRoutingScheme: String, otherAccountRoutingAddress: String,
otherAccountSecondaryRoutingScheme: String, otherAccountSecondaryRoutingAddress: String,
otherBankRoutingScheme: String, otherBankRoutingAddress: String,
otherBranchRoutingScheme: String, otherBranchRoutingAddress: String, isBeneficiary: Boolean,
bespoke: List[CounterpartyBespoke]) extends TopicTrait
case class InBoundCreateCounterparty(inboundAdapterCallContext: InboundAdapterCallContext, status: Status, data: CounterpartyTraitCommons) extends InBoundTrait[CounterpartyTraitCommons]
@ -1091,7 +1095,16 @@ case class InBoundGetChargeValue(status: Status, data: String) extends InBoundTr
override val inboundAdapterCallContext: InboundAdapterCallContext = InboundAdapterCallContext()
}
case class OutBoundCreateTransactionRequestv400(outboundAdapterCallContext: OutboundAdapterCallContext, initiator: User, viewId: ViewId, fromAccount: BankAccount, toAccount: BankAccount, transactionRequestType: TransactionRequestType, transactionRequestCommonBody: TransactionRequestCommonBodyJSON, detailsPlain: String, chargePolicy: String, challengeType: Option[String], scaMethod: Option[StrongCustomerAuthentication.SCA], reasons: Option[List[TransactionRequestReason]], paymentService: Option[String], berlinGroupPayments: Option[BerlinGroupTransactionRequestCommonBodyJson]) extends TopicTrait
case class OutBoundCreateTransactionRequestv400(outboundAdapterCallContext: OutboundAdapterCallContext, initiator: User, viewId: ViewId, fromAccount: BankAccount, toAccount: BankAccount, transactionRequestType: TransactionRequestType,
transactionRequestCommonBody: TransactionRequestCommonBodyJSON,
detailsPlain: String,
chargePolicy: String,
challengeType: Option[String],
scaMethod: Option[StrongCustomerAuthentication.SCA],
reasons: Option[List[TransactionRequestReason]],
paymentService: Option[String],
berlinGroupPayments: Option[BerlinGroupTransactionRequestCommonBodyJson]
) extends TopicTrait
case class InBoundCreateTransactionRequestv400(inboundAdapterCallContext: InboundAdapterCallContext, status: Status, data: TransactionRequest) extends InBoundTrait[TransactionRequest]
case class OutBoundCreateTransactionRequestImpl(transactionRequestId: TransactionRequestId, transactionRequestType: TransactionRequestType, fromAccount: BankAccount, counterparty: BankAccount, body: TransactionRequestBody, status: String, charge: TransactionRequestCharge) extends TopicTrait