Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Every user need to Accept the terms and conditions in order to access the portal:

...

→ Admin will directly insert the record into this table, each time terms & conditions need to be updated.

Changes to user table

ColumnChanges
tacstatusAdded - boolean - true if terms ad condition is accepted
tacaccepteddateAdded - if tacstatus false → this will be null, else last time user accepted terms and conditions will be stored
tacversionidAdded - if tacstatus false → this will be null, else last version of accepted terms and conditions will be stored
tcstatusRemoved - as this is not used currently
tcupdateddateRemoved - as this is not used currently

Storage in System Settings

...

APIs Added

  1. Accept TAC  
    POST  /v1/user/tac/accept
    {
      "request": {
    "version":"v1" } }

    Notes: Version will be identified from System settings. system settings will have identifier as "tncConfiguration" that will hold terms and condition version and other details. User Id will be taken from "x-authenticated-user-token".

     2. Get TAC

        GET /v1/tac/read

...

400 Bad Request - Request validation - invalid userId or invalid tacVersion




We need to provide only accept TAC api. Terms and condition page will be hosted on portal and app will also use same html page. when ever terms and condition page change, user need to update the new terms and condition version under system settings table.