io-app
io-app copied to clipboard
feat: [IOCOM-1172] Update business logic for payment reminder on a message details screen with the new DS
This PR depends on #5603
Short description
This PR updated the business logic for the message's payment reminder, with the new DS.
Loading | Expiring | Expired |
---|---|---|
List of changes proposed in this pull request
- The reminder in the message details:
- is hidden, if the message has no
dueDate
or no payment data - shows a loading status while the payment is updating
- shows "expires on" if the payment is still payable (displaying the
dueDate
of the message) - shows "has expired on" if the payment update returns a
PAA_PAGAMENTO_SCADUTO
code (displaying thedueDate
of the message) - is hidden if the payment update returns an error that is not
PAA_PAGAMENTO_SCADUTO
- is hidden, if the message has no
How to test
Using the io-dev-api-server, generate a message with a payment. Check that the behaviour described above is true for each case.