io-app icon indicating copy to clipboard operation
io-app copied to clipboard

feat: [IOCOM-1172] Update business logic for payment reminder on a message details screen with the new DS

Open Vangaorth opened this issue 11 months ago • 3 comments

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
Simulator Screenshot - iPhone 15 - 2024-03-21 at 19 04 35 Simulator Screenshot - iPhone 15 - 2024-03-21 at 19 04 36 Simulator Screenshot - iPhone 15 - 2024-03-21 at 19 11 07

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 the dueDate of the message)
    • is hidden if the payment update returns an error that is not PAA_PAGAMENTO_SCADUTO

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.

Vangaorth avatar Mar 21 '24 09:03 Vangaorth