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

Validate renewal/subscription information

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 10.0.0
    • Labels:
    • Template:
    • Sprint:
      ACQ Sprint 82, ACQ Sprint 83
    • Story Points:
      2
    • Development Team:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases