Uploaded image for project: 'mod-feesfines'
  1. mod-feesfines
  2. MODFEE-137

Provide ability to specify cancellation reason in accounts/:id/cancel request

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 16.0.0
    • None
    • Core: F - Sprint 101
    • 3
    • Prokopovych
    • R1 2021

    Description

      Overview: When an account is cancelled through /accounts/:id/cancel API, the account always have Payment status = Cancelled as error. However, it is not a proper status for some cases and may confuse end users, for example when an account for lost item fee is cancelled because item is found and returned we should cancel the account as Cancelled item returned (it was not an error).

      1. Scenario:

      • Given account cancellation request;
      • When cancellationReason property set in cancellation request;
      • Then:
        • Account.paymentStatus.name = cancellationReason
        • AccountAction.typeAction = cancellationReason

      2. Scenario:

      • Given account cancellation request;
      • When cancellationReason property is NOT set in cancellation request;
      • Then:
        • Account.paymentStatus.name = "Cancelled as error"
        • AccountAction.typeAction = "Cancelled as error"

      CC: OleksandrVidinieiev. hollyolepm, marcjohnson, cboerema.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                bohdan-suprun Bohdan Suprun
                bohdan-suprun Bohdan Suprun
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases