bcgov / entity

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

API - Update Rules for MHR Make and Model #17315

Closed mstanton1 closed 1 year ago

mstanton1 commented 1 year ago
chdivyareddy commented 1 year ago

Verified in DEV with MHR 107781, 107782

MHR 107781

{
    "affirmByName": "BUSINESS REGISTRY TEST 1",
    "attentionReference": "AT-TEST948",
    "clientReferenceId": "UT-MHREG-SO-0001",
    "createDateTime": "2023-08-11T19:04:03+00:00",
    "declaredValue": 0,
    "description": {
        "baseInformation": {
            "circa": false,
            "make": "WATSON IND. (ALTA)",
            "model": "",
            "year": 2018
        },
        "manufacturer": "STARLINE",
        "otherRemarks": "BC SAFETY AUTHORITY #339556, PERMIT# EL-721296-2018",
        "rebuiltRemarks": "REBUILT AS A DOUBLE WIDE, MAKE/MODEL CUSTOM, YEAR 1995",
        "sectionCount": 1,
        "sections": [
            {
                "lengthFeet": 52,
                "serialNumber": "52D70556",
                "widthFeet": 12
            }
        ],
        "status": "ACTIVE"
    },
    "documentDescription": "MANUFACTURED HOME REGISTRATION",
    "documentId": "63284158",
    "documentRegistrationNumber": "00501657",
    "hasCaution": false,
    "location": {
        "address": {
            "city": "VICTORIA",
            "country": "CA",
            "postalCode": "A1A 1A1",
            "region": "BC",
            "street": "940 BLANSHARD STREET"
        },
        "leaveProvince": false,
        "locationId": 198736,
        "locationType": "MH_PARK",
        "pad": "20",
        "parkName": "HIDDEN VALLEY TRAILER COURT",
        "status": "ACTIVE",
        "taxCertificate": false
    },
    "mhrNumber": "107781",
    "ownLand": true,
    "ownerGroups": [
        {
            "groupId": 1,
            "owners": [
                {
                    "address": {
                        "city": "KELOWNA",
                        "country": "CA",
                        "postalCode": "V2F 6H4",
                        "region": "BC",
                        "street": "1234 FRONT STREET"
                    },
                    "description": "TRUSTEE OF THE ESTATE OF JOHN SMITH",
                    "individualName": {
                        "first": "RICHARD",
                        "last": "SMITH"
                    },
                    "ownerId": 896629,
                    "partyType": "TRUSTEE",
                    "phoneNumber": "6047271234",
                    "status": "ACTIVE",
                    "type": "NA"
                },
                {
                    "address": {
                        "city": "KELOWNA",
                        "country": "CA",
                        "postalCode": "V1F 6J4",
                        "region": "BC",
                        "street": "7-3031 200 ST"
                    },
                    "description": "TRUSTEE OF THE ESTATE OF JOHN SMITH",
                    "individualName": {
                        "first": "KAREEM",
                        "last": "HOWARD"
                    },
                    "ownerId": 896630,
                    "partyType": "TRUSTEE",
                    "phoneNumber": "6047942774",
                    "status": "ACTIVE",
                    "type": "NA"
                }
            ],
            "status": "ACTIVE",
            "tenancySpecified": true,
            "type": "NA"
        }
    ],
    "payment": {
        "invoiceId": "30260",
        "receipt": "/api/v1/payment-requests/30260/receipts"
    },
    "registrationType": "MHREG",
    "status": "ACTIVE",
    "submittingParty": {
        "address": {
            "city": "VICTORIA",
            "country": "CA",
            "postalCode": "V8W 2V8",
            "region": "BC",
            "street": "222 SUMMER STREET"
        },
        "businessName": "ABC SEARCHING COMPANY"
    }
}

MHR 107782

{
    "affirmByName": "BUSINESS REGISTRY TEST 1",
    "clientReferenceId": "UT-MHREG0004",
    "createDateTime": "2023-08-11T19:10:07+00:00",
    "declaredValue": 0,
    "description": {
        "baseInformation": {
            "circa": false,
            "make": "",
            "model": "DUCHESS",
            "year": 2018
        },
        "manufacturer": "STARLINE",
        "otherRemarks": "BC SAFETY AUTHORITY #339556, PERMIT# EL-721296-2018",
        "rebuiltRemarks": "REBUILT AS A DOUBLE WIDE, MAKE/MODEL CUSTOM, YEAR 1995",
        "sectionCount": 1,
        "sections": [
            {
                "lengthFeet": 52,
                "serialNumber": "52D70556",
                "widthFeet": 12
            }
        ],
        "status": "ACTIVE"
    },
    "documentDescription": "MANUFACTURED HOME REGISTRATION",
    "documentId": "63284149",
    "documentRegistrationNumber": "00501658",
    "hasCaution": false,
    "location": {
        "additionalDescription": "SPALLUMCHEEN INDIAN RESERVE NO. 2",
        "address": {
            "city": "VICTORIA",
            "country": "CA",
            "postalCode": "V3A 6H4",
            "region": "BC",
            "street": "940 BLANSHARD STREET"
        },
        "districtLot": "74",
        "landDistrict": "PEACE RIVER",
        "leaveProvince": false,
        "locationId": 198737,
        "locationType": "OTHER",
        "lot": "3",
        "parcel": "A (69860M)",
        "plan": "S523432",
        "range": "16",
        "section": "34",
        "status": "ACTIVE",
        "taxCertificate": false,
        "township": "78"
    },
    "mhrNumber": "107782",
    "ownLand": false,
    "ownerGroups": [
        {
            "groupId": 1,
            "interest": "UNDIVIDED",
            "interestDenominator": 5,
            "interestNumerator": 4,
            "owners": [
                {
                    "address": {
                        "city": "LANGLEY",
                        "country": "CA",
                        "postalCode": "V3A 6H4",
                        "region": "BC",
                        "street": "6665 238TH STREET"
                    },
                    "description": "ADMINISTRATOR OF THE ESTATE OF JOHN SMITH",
                    "individualName": {
                        "first": "MARY-ANNE",
                        "last": "BICKNELL"
                    },
                    "ownerId": 896632,
                    "partyType": "ADMINISTRATOR",
                    "phoneNumber": "6044620279",
                    "status": "ACTIVE",
                    "type": "NA"
                },
                {
                    "address": {
                        "city": "KELOWNA",
                        "country": "CA",
                        "postalCode": "V2F 6H4",
                        "region": "BC",
                        "street": "1234 FRONT STREET"
                    },
                    "description": "ADMINISTRATOR OF THE ESTATE OF JOHN SMITH",
                    "individualName": {
                        "first": "RICHARD",
                        "last": "SMITH"
                    },
                    "ownerId": 896633,
                    "partyType": "ADMINISTRATOR",
                    "phoneNumber": "6047271234",
                    "status": "ACTIVE",
                    "type": "NA"
                }
            ],
            "status": "ACTIVE",
            "tenancySpecified": true,
            "type": "NA"
        },
        {
            "groupId": 2,
            "interest": "UNDIVIDED",
            "interestDenominator": 5,
            "interestNumerator": 1,
            "owners": [
                {
                    "address": {
                        "city": "LANGLEY",
                        "country": "CA",
                        "postalCode": "V3A 6H4",
                        "region": "BC",
                        "street": "6665 238TH STREET"
                    },
                    "individualName": {
                        "first": "JOHN",
                        "last": "CONNOLLY",
                        "middle": "STEVEN"
                    },
                    "ownerId": 896634,
                    "partyType": "OWNER_IND",
                    "phoneNumber": "6044620279",
                    "status": "ACTIVE",
                    "type": "NA"
                }
            ],
            "status": "ACTIVE",
            "tenancySpecified": true,
            "type": "NA"
        }
    ],
    "payment": {
        "invoiceId": "30261",
        "receipt": "/api/v1/payment-requests/30261/receipts"
    },
    "registrationType": "MHREG",
    "status": "ACTIVE",
    "submittingParty": {
        "address": {
            "city": "VICTORIA",
            "country": "CA",
            "postalCode": "V8W 2V8",
            "region": "BC",
            "street": "222 SUMMER STREET"
        },
        "businessName": "ABC SEARCHING COMPANY",
        "emailAddress": "bsmith@abc-search.com",
        "phoneNumber": "2504930122"
    }
}

Validation: image.png