Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-351

Validate renewal/subscription information

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 10.0.0
    • ACQ Sprint 82, ACQ Sprint 83
    • 2
    • Thunderjet

    Description

      Overview

      MODORDSTOR-131 adds a new "isSubscription" field to the ongoing (formerly "renewal") schema. This story builds upon that by adding validation.

      if (orderType == Ongoing)

      • the "ongoing" sub-object must be present
        • Since "ongoing.isSubscription" is a boolean w/ default, at the very least that field will be present.

      If (orderType == One Time && "ongoing" sub-object is present)

      • return an appropriate error

      NOTE: There were also several fields renamed in MODORDSTOR-131, these changes need to be factored in as part of this story as well (Api tests, etc.)

      Acceptance Criteria

      • The validation described above it implemented
      • unit tests are updated
      • api tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                cmcnally Craig McNally
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases