Handle Validate Scheme Rules - invalid non-qr reference.story
Scenario: Handling validation of scheme rules invalid bic
Given csmReachability service will deconstruct iban 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When the Payment Service sends a 'NON 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 Global QR-Bill |
| requestId | #ValidateSchemeRulesRequest.ipfId |
| invalidRef |
|---|
210000000003139471430009017 |
210000000003139471430009018 |
21000000000313947143000ABCD |
21000000000313947143000 |
21 |
R |
Example: {invalidRef=210000000003139471430009017}
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 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When ⦅the Payment Service⦆ sends a NON 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 | ⦅210000000003139471430009017⦆ |
| 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 Global 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=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 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When ⦅the Payment Service⦆ sends a NON 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 Global 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 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When ⦅the Payment Service⦆ sends a NON 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 Global 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 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When ⦅the Payment Service⦆ sends a NON 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 Global 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=21}
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 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When ⦅the Payment Service⦆ sends a NON 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 | ⦅21⦆ |
| 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 Global 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=R}
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 'FR34OSOAVGTLFAPNYIQHFDVZOCNCVQCLAU' with the following deconstruction:
| bankIdentifier | 00110 |
| ibanNationalId | CH |
And csmReachability service has the following record for the participant:
| csmAgentId | SicInst |
| csmParticipantIdentifier | 00110 |
| sic | SIC_PARTICIPATION_AND_LSV_AS_DEBTOR_FI |
When ⦅the Payment Service⦆ sends a NON 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 | ⦅R⦆ |
| 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 Global 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()