Handle Validate Scheme Rules - invalid qr reference.story
Scenario: Handling validation of scheme rules invalid bic
Given csmReachability service will deconstruct iban 'CH34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00120 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00120 |
| sic | SIC_PARTICIPATION_WITH_QR_IID |
When the Payment Service sends a 'QR IBAN Valid' 'Validate Scheme Rules Request' with values:
| getPayload().getContent().cdtTrfTxInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 002940 |
| getPayload().getContent().cdtTrfTxInf[0].rmtInf.strd[0].cdtrRefInf.ref | <invalidRef> |
| customBusinessData | supportingContext('flowType','DEBTOR') |
Then the Payment Service receives a 'Validate Scheme Rules Response' with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | RR07 |
| getPayload().getContent().description | Invalid Creditor Reference Swiss QR-Bill |
| requestId | #ValidateSchemeRulesRequest.ipfId |
| invalidRef |
|---|
210000000003139471430009018 |
21000000000313947143000ABCD |
21000000000313947143000 |
2100000000031394714300090171005 |
Example: {invalidRef=210000000003139471430009018}
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)
Given csmReachability service will deconstruct iban 'CH34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00120 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00120 |
| sic | SIC_PARTICIPATION_WITH_QR_IID |
When ⦅the Payment Service⦆ sends a QR IBAN Valid Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 002940 |
| getPayload().getContent().cdtTrfTxInf[0].rmtInf.strd[0].cdtrRefInf.ref | ⦅210000000003139471430009018⦆ |
| customBusinessData | supportingContext(flowType,DEBTOR) |
Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | RR07 |
| getPayload().getContent().description | Invalid Creditor Reference Swiss QR-Bill |
| requestId | #ValidateSchemeRulesRequest.ipfId |
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()
Example: {invalidRef=21000000000313947143000ABCD}
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)
Given csmReachability service will deconstruct iban 'CH34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00120 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00120 |
| sic | SIC_PARTICIPATION_WITH_QR_IID |
When ⦅the Payment Service⦆ sends a QR IBAN Valid Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 002940 |
| getPayload().getContent().cdtTrfTxInf[0].rmtInf.strd[0].cdtrRefInf.ref | ⦅21000000000313947143000ABCD⦆ |
| customBusinessData | supportingContext(flowType,DEBTOR) |
Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | RR07 |
| getPayload().getContent().description | Invalid Creditor Reference Swiss QR-Bill |
| requestId | #ValidateSchemeRulesRequest.ipfId |
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()
Example: {invalidRef=21000000000313947143000}
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)
Given csmReachability service will deconstruct iban 'CH34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00120 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00120 |
| sic | SIC_PARTICIPATION_WITH_QR_IID |
When ⦅the Payment Service⦆ sends a QR IBAN Valid Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 002940 |
| getPayload().getContent().cdtTrfTxInf[0].rmtInf.strd[0].cdtrRefInf.ref | ⦅21000000000313947143000⦆ |
| customBusinessData | supportingContext(flowType,DEBTOR) |
Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | RR07 |
| getPayload().getContent().description | Invalid Creditor Reference Swiss QR-Bill |
| requestId | #ValidateSchemeRulesRequest.ipfId |
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()
Example: {invalidRef=2100000000031394714300090171005}
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)
Given csmReachability service will deconstruct iban 'CH34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00120 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00120 |
| sic | SIC_PARTICIPATION_WITH_QR_IID |
When ⦅the Payment Service⦆ sends a QR IBAN Valid Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].instgAgt.finInstnId.clrSysMmbId.mmbId | 002940 |
| getPayload().getContent().cdtTrfTxInf[0].rmtInf.strd[0].cdtrRefInf.ref | ⦅2100000000031394714300090171005⦆ |
| customBusinessData | supportingContext(flowType,DEBTOR) |
Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | RR07 |
| getPayload().getContent().description | Invalid Creditor Reference Swiss QR-Bill |
| requestId | #ValidateSchemeRulesRequest.ipfId |
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()