bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Legal API - implement endpoint to proxy MRAS get jurisdictions call #22012

Closed argush3 closed 2 months ago

argush3 commented 2 months ago

The creation of the stage 1 notice of dissolution commencement letter for a BC corp will need to make a call to the MRAS getJurisdictions endpoint to determine if the given BC corp has an EP in another jurisdiction(s). Reference stage 1 letter generation logic in the involuntary dissolutions flow diagram for details.

This ticket is intended to implement an endpoint in the legal api that proxies the MRAS getJurisdictions call.

~Implement the service class in a way where we can easily extend this functionality to be an endpoint if req’d.~ Realized we do need to implement as an endpoint as the email body needs to be able to differentiate if BC business is operating in another jurisdiction.

TODOs

Sample GetJurisidictions endpoint response from MRAS

<?xml version="1.0" encoding="utf-8"?>
<Jurisdictions xmlns="http://mras.ca/schema/v1">
  <Jurisdiction>
    <JurisdictionID>QC</JurisdictionID>
    <NameEn>Quebec</NameEn>
    <NameFr>Québec</NameFr>
    <RedirectUrl>https://servicesi.registreentreprises.ca/REQNA/A9/GR/GR98/GR98A2_09A_PIU_SimulerEchangeMRAS_PC/ImmatSelectId.aspx?prvc=BC&amp;idc=1007</RedirectUrl>
    <TargetProfileID>123ABCD</TargetProfileID>
  </Jurisdiction>
  <Jurisdiction>
    <JurisdictionID>AB</JurisdictionID>
    <NameEn>Alberta</NameEn>
    <NameFr>Alberta</NameFr>
    <RedirectUrl>https://www.servicealberta.ca/xpr/form.cfm?HomeJID=BC&amp;HomePID=1007</RedirectUrl>
  </Jurisdiction>
  <Jurisdiction>
    <JurisdictionID>SK</JurisdictionID>
    <NameEn>Saskatchewan</NameEn>
    <NameFr>Saskatchewan</NameFr>
    <RedirectUrl>https://corporateregistrypoc.isc.ca/BusinessCorporation/ExtraProvincialRegistration/Index/?HjRegNum=1007&amp;StateCode=BC</RedirectUrl>
  </Jurisdiction>
</Jurisdictions>
vikas-gov commented 2 months ago

Verify the (existing) MRAS code can be leveraged. For any questions please connect with Dylan

vikas-gov commented 2 months ago

Dylan: To check if MRAS testing config is available

vishnup0422 commented 2 months ago

The end point will return if the business is registered in Extra Provincial jurisdictions (SK, QC, MB, AB)

BC1246631

Screenshot 2024-07-10 at 9.39.35 PM.png Screenshot 2024-07-10 at 9.39.40 PM.png
vishnup0422 commented 2 months ago

This is tested in staging env as well. The response will show the target profile ID if it has a EP in that province.

image.png Screenshot 2024-07-11 at 9.55.51 AM.png