Documentation for a newer release is available. View Latest
Esta página no está disponible actualmente en Español. Si lo necesita, póngase en contacto con el servicio de asistencia de Icon (correo electrónico)

Handle Validate Scheme Rules - AmtLimit.story

Scenario: Handling validation of scheme rules invalid amount limit checked for Debtor direction

When the ⦅Payment Service⦆ sends a Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].intrBkSttlmAmt.value | 1500000.01 |
| customBusinessData | supportingContext(flowType,DEBTOR) |

Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | AM02 |
| getPayload().getContent().description | Amount exceeds scheme limit |
| requestId | #ValidateSchemeRulesRequest.ipfId |

Scenario: Handling validation of scheme rules invalid amount limit not checked for Creditor direction

When the ⦅Payment Service⦆ sends a Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].intrBkSttlmAmt.value | 1500000.01 |
| customBusinessData | supportingContext(flowType,CREDITOR) |

Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | SUCCESS |
| requestId | #ValidateSchemeRulesRequest.ipfId |