Versions Compared

Key

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

Targeted Environment

12 - MTOA-INT, MTOA-TEST

Enhancement: Enhancements to the service regulated entities to include the following info

...

TC_SERVICE_CD: service id

...

REGULATED_ENTITY_TYPE_CD: Regulated Entity Type Code

...

REGULATED_ENTITY_ID_TYPE_CD: Regulated Entity ID Type Code

...

Service Regulated Entities

Updates January 15 – 2021

GET - /api/v1/services/{id}/regulated-entities (Task #8766)

The response body will return four new properties.

  • ServiceId

  • RegulatedEntityTypeCode

  • RegulatedEntityIdTypeCode

  • SortOrder

Code Block
languagejson
[
  {
    "Id": 1,
    "ServiceId": 1230,
    "RegulatedEntityTypeCode": "VESSEL",
    "RegulatedEntityIdTypeCode": "VESSEL_NM",
    "SortOrder": 1,
    "EnglishDisplayName": "Vessel Name",
    "FrenchDisplayName": "Nom du bâtiment"
  }

GET - /api/v1/regulated-entities (Task #8667)

The response body will return four new properties.

  • ServiceId

  • RegulatedEntityTypeCode

  • RegulatedEntityIdTypeCode

  • SortOrder

Note: Id is now the service regulated entity id, previously it was the unique id for the service request regulated entity id.

Code Block
languagejson
[
  {
    "Value": "NEW VESSEL 1000",
    "Id": 1,
    "ServiceId": 1230,
    "RegulatedEntityTypeCode": "VESSEL",
    "RegulatedEntityIdTypeCode": "VESSEL_NM",
    "SortOrder": 1,
    "EnglishDisplayName": "Vessel Name",
    "FrenchDisplayName": "Nom du bâtiment"
  }

PUT - /api/v1/regulated-entities (Task #8773)

When updating the value of a service regulated entity the id used was a unique id used for the service request regulated entities.

Code Block
languagejson
[
  {
    "Value": "Value1",
    "Id": 100
  }
]

With this update the id used will be the regulated entity id found in GET - /api/v1/services/{id}/regulated-entities

Code Block
languagejson
[
  {
    "Value": "Value1",
    "Id": 1
  }
]

The response body will also match the same information.

Code Block
languagejson
[
  {
    "Value": "Value1",
    "Id": 1
  }
]

MTOA NuGet packages Release Notes

Version xxxx 0.15.19.130 (2021-01-15) (based on the 1.4.0 branch) 

...

The GetList and GetAll function of the ServiceRegulatedEntityManager will now return four new properties:

  • public int ServiceId { get; set; }

  • public string RegulatedEntityTypeCode { get; set; }

  • public string RegulatedEntityIdTypeCode { get; set; }

  • public short SortOrder { get; set; }

The Add and Update functions of the ServiceRegulatedEntityManager remain the same.

Breaking change 
N/A

MTOA Database – Release Note for Version (v1.12.0)

Schema Structure Changes

...

Table

...

Column

...

Comments

...

AC051_MAIL_COORDINATE

...

ADDRESS_LINE_1_TXT

...

New column

...

ADDRESS_LINE_2_TXT

...

New column

...

SUITE_APARTMENT_NUMBER_NUM

...

Size increased from 10 to 100 characters

 No DB structure change in this release.

Data Changes

No data change in this release.

...