Skip to content

Commit

Permalink
PPR API add new commercial lien registration type.
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <[email protected]>
  • Loading branch information
doug-lovett committed Feb 6, 2025
1 parent 69ce55b commit b4ae692
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/registry_schemas/schemas/ppr/draftSummary.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"registrationType": {
"type": "string",
"enum": ["SA", "RL", "FR", "LT", "MH", "SG", "FL", "FA", "FS", "MR", "AM", "CO", "AC", "DR", "DT", "PD", "ST", "SU", "SE"],
"description": "For a Financing Statement the draft type value. For a Change Statement and an Amendment Statement the changeType value."
"maxLength": 2,
"description": "For a Financing Statement one of the defined registration types. For a Change Statement and an Amendment Statement the changeType value."
},
"documentId": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions src/registry_schemas/schemas/ppr/financingStatement.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://bcrs.gov.bc.ca/.well_known/schemas/ppr/financingStatement",
"type": "object",
"title": "The PPR Financning Statement Schema",
"title": "The PPR Financing Statement Schema",
"properties": {
"type": {
"type": "string",
"maxLength": 2,
"enum": ["SA", "RL", "FR", "LT", "MH", "SG", "FL", "FA", "FS", "MR", "CC", "CT", "DP", "ET", "FO", "FT"
, "HR", "IP", "LO", "MI", "OT"
, "PG", "PS", "IT", "RA", "SS", "TL", "HN", "ML", "MN", "PN", "WL", "TF", "TA", "TG", "TM", "MD", "PT"
, "SC", "TO", "SV", "SE"],
, "SC", "TO", "SV", "SE", "CL"],
"description": "Specifies the type of Financing Statement. Includes all legacy registration types."
},
"clientReferenceId": {
Expand Down
2 changes: 1 addition & 1 deletion src/registry_schemas/schemas/ppr/searchSummary.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"type": "string",
"maxLength": 2,
"enum": ["SA", "RL", "FR", "LT", "MH", "SG", "FL", "FA", "FS", "MR", "CC", "CT", "DP", "ET", "FO", "FT", "HR", "IP", "LO", "MI", "OT"
, "PG", "PS", "IT", "RA", "SS", "TL", "HN", "ML", "MN", "PN", "WL", "TF", "TA", "TG", "TM", "MD", "PT", "SC", "TO", "SV", "SE"],
, "PG", "PS", "IT", "RA", "SS", "TL", "HN", "ML", "MN", "PN", "WL", "TF", "TA", "TG", "TM", "MD", "PT", "SC", "TO", "SV", "SE", "CL"],
"description": "Specifies the type of Financing Statement. Includes all legacy registration types."
},
"debtor": {
Expand Down
2 changes: 1 addition & 1 deletion src/registry_schemas/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
Development release segment: .devN
"""

__version__ = '1.8.13' # pylint: disable=invalid-name
__version__ = '1.8.14' # pylint: disable=invalid-name
1 change: 1 addition & 0 deletions tests/unit/ppr/test_financing_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
('SV', True),
('TO', True),
('SE', True),
('CL', True),
('XX', False),
]
# testdata pattern is ({other type description}, {is valid})
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ppr/test_registration_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
TEST_VALID_MINIMUM = {
'registrationNumber': '9000100B',
'registrationType': 'SA',
'registrationType': 'CL',
'registrationClass': 'PPSALIEN',
'path': '/ppr/api/v1/financing-statements/9000100B',
'createDateTime': '2021-06-03T22:58:45+00:00'
Expand Down

0 comments on commit b4ae692

Please sign in to comment.