Handle Status Request.story
Scenario: Clear and settle not resolved within configured and status request get successful response
com.iconsolutions.ipf.payments.csm.sic5.application.bdd.testfw.Steps.parseMeta(java.lang.String)
com.iconsolutions.ipf.payments.csm.sic5.application.bdd.testfw.Steps.parseLegacy(java.lang.String)
When ⦅the Payment Service⦆ sends a Clear And Settle Request
Then ⦅the CSM⦆ receives a Customer Credit Transfer
When the ⦅Payment Service⦆ sends a Status Request with values:
| payload.content.txInf[0].orgnlGrpInf.orgnlMsgNmId | pacs.008.001.08 |
| payload.content.txInf[0].orgnlGrpInf.orgnlMsgId | #CustomerCreditTransfer.FIToFICstmrCdtTrf.GrpHdr.MsgId |
| payload.content.txInf[0].instdAgt.finInstnId.clrSysMmbId.mmbId | 654321 |
| payload.content.txInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 54321 |
| payload.content.txInf[0].clrSysRef | NOT_SET |
Then ⦅the CSM⦆ receives a Payment Status Request with values:
| FIToFIPmtStsReq.txInf[0].orgnlGrpInf.orgnlMsgNmId | pacs.008.001.08 |
| FIToFIPmtStsReq.txInf[0].orgnlGrpInf.orgnlMsgId | #CustomerCreditTransfer.FIToFICstmrCdtTrf.GrpHdr.MsgId |
| FIToFIPmtStsReq.txInf[0].instdAgt.finInstnId.clrSysMmbId.mmbId | 654321 |
| FIToFIPmtStsReq.txInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 54321 |
| FIToFIPmtStsReq.txInf[0].instgAgt.finInstnId.othr.id | SIP |
| FIToFIPmtStsReq.txInf[0].clrSysRef | IPSRCP |
!-- CSM responds with first a OKA we are sending response
When the ⦅CSM⦆ sends a Payment Status Report with values:
| FIToFIPmtStsRpt.txInf*And*Sts[0].orgnlGrpInf.orgnlMsgId | #StatusRequest.payload.content.grpHdr.msgId |
| FIToFIPmtStsRpt.txInf*And*Sts[0].orgnlGrpInf.orgnlMsgNmId | pacs.028.001.001 |
| FIToFIPmtStsRpt.txInf*And*Sts[0].clrSysRef | OKA002 |
| FIToFIPmtStsRpt.txInf*And*Sts[0].txSts | ACCP |
Then ⦅the Payment Service⦆ receives a Status Request Response with values:
| payload.content.txInf*And*Sts[0].orgnlGrpInf.orgnlMsgNmId | pacs.028.001.001 |
| payload.content.txInf*And*Sts[0].clrSysRef | OKA002 |
!-- CSM then sends response
When the ⦅CSM⦆ sends a Payment Status Report with values:
| FIToFIPmtStsRpt.txInf*And*Sts[0].txSts | ACSC |
| FIToFIPmtStsRpt.txInf*And*Sts[0].instdAgt.finInstnId.clrSysMmbId.mmbId | 654321 |
| FIToFIPmtStsRpt.txInf*And*Sts[0].clrSysRef | EXC002 |
Then ⦅the Payment Service⦆ receives a Clear And Settle Response with values:
| payload.content.txInf*And*Sts[0].OrgnlGrpInf.OrgnlMsgNmId | pacs.008.001.08.ch.02 |
| payload.content.txInf*And*Sts[0].orgnlTxId | #PaymentStatusReport.fIToFIPmtStsRpt.txInf*And*Sts[0].orgnlTxId |
| payload.content.txInf*And*Sts[0].instdAgt.finInstnId.clrSysMmbId.mmbId | 654321 |
| payload.content.txInf*And*Sts[0].txSts | ACSC |
| status | SUCCESS |
| payload.content.txInf*And*Sts[0].clrSysRef | EXC002 |
com.iconsolutions.testfw.core.steps.BaseSteps.clearContext()
com.iconsolutions.testfw.core.steps.BaseSteps.clearContext()
com.iconsolutions.testfw.core.steps.BaseSteps.clearContext()
com.iconsolutions.testfw.core.steps.BaseSteps.clearContext()
com.iconsolutions.testfw.core.steps.BaseSteps.clearContext()