Skip to content

Commit

Permalink
Move sellersCapacity to participant (#160)
Browse files Browse the repository at this point in the history
* move seller capacity to participant

* Revise sellers capacity structure

---------

Co-authored-by: Ed Molyneux <[email protected]>
  • Loading branch information
jacknely and edmolyneux authored Feb 7, 2024
1 parent 6a337cb commit be686fc
Show file tree
Hide file tree
Showing 7 changed files with 282 additions and 264 deletions.
2 changes: 1 addition & 1 deletion src/examples/v3/exampleTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"email": "[email protected]",
"address": { "line1": "47 Park Road", "postcode": "AL3 5AF" },
"role": "Seller",
"sellersCapacity": { "capacity": "Legal Owner" },
"externalIds": { "MoveReady": "123434" }
},
{
Expand Down Expand Up @@ -570,7 +571,6 @@
}
]
},
"sellersCapacity": { "capacity": "Legal Owner" },
"legalBoundaries": {
"partOutsideLegalOwnership": {
"yesNo": "No"
Expand Down
149 changes: 76 additions & 73 deletions src/schemas/v3/combined.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,86 @@
"Prospective Buyer",
"Buyer",
"Buyer's Conveyancer",
"Estate Agent"
"Estate Agent",
"Buyer's Agent",
"Surveyor",
"Mortgage Broker",
"Lender"
]
},
"externalIds": {
"type": "object"
},
"sellersCapacity": {
"baspiRef": "B1.3",
"rdsRef": "Participants/description=?,Participants/ActingFor/Participants/Role",
"piqRef": "B1.3.1",
"title": "Capacity in which the Seller sells",
"type": "object",
"baspiRequired": ["capacity"],
"properties": {
"capacity": {
"baspiRef": "B1.3.1",
"type": "string",
"title": "",
"enum": [
"Legal Owner",
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Mortgagee in Possession",
"Other"
]
}
},
"discriminator": {
"propertyName": "capacity"
},
"oneOf": [
{
"properties": {
"capacity": {
"enum": ["Legal Owner", "Mortgagee in Possession"]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2",
"rdsRef": "Participants/OtherDocumentation",
"title": "Please provide details if applicable",
"description": "(for example if the sellers names do not match the legal owners on the title deed due to change of name on marriage)",
"type": "string"
},
"attachments": {
"baspiRef": "B1.3.3",
"title": "Attachments",
"type": "string",
"enum": ["Attached", "To follow"]
}
}
},
{
"properties": {
"capacity": {
"enum": [
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Other"
]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2",
"rdsRef": "Participants/OtherDocumentation",
"title": "Please provide details and provide any probate, grant of representation or power of attorney ",
"type": "string"
},
"attachments": {
"baspiRef": "B1.3.3",
"title": "Attachments",
"type": "string",
"enum": ["Attached", "To follow"]
}
},
"baspiRequired": ["sellersCapacityDetails", "attachments"]
}
]
}
}
}
Expand Down Expand Up @@ -157,7 +232,6 @@
"additionalInformation",
"consumerProtectionRegulationsDeclaration",
"legalOwners",
"sellersCapacity",
"legalBoundaries",
"servicesCrossing",
"electricalWorks",
Expand Down Expand Up @@ -23572,77 +23646,6 @@
}
}
},
"sellersCapacity": {
"baspiRef": "B1.3",
"rdsRef": "Participants/description=?,Participants/ActingFor/Participants/Role",
"piqRef": "B1.3.1",
"title": "Capacity in which the Seller sells",
"type": "object",
"baspiRequired": ["capacity"],
"properties": {
"capacity": {
"baspiRef": "B1.3.1",
"type": "string",
"title": "",
"enum": [
"Legal Owner",
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Mortgagee in Possession",
"Other"
]
}
},
"discriminator": {
"propertyName": "capacity"
},
"oneOf": [
{
"properties": {
"capacity": {
"enum": ["Legal Owner", "Mortgagee in Possession"]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2",
"rdsRef": "Participants/OtherDocumentation",
"title": "Please provide details if applicable",
"description": "(for example if the sellers names do not match the legal owners on the title deed due to change of name on marriage)",
"type": "string"
},
"attachments": {
"baspiRef": "B1.3.3",
"title": "Attachments",
"type": "string",
"enum": ["Attached", "To follow"]
}
}
},
{
"properties": {
"capacity": {
"enum": [
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Other"
]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2",
"rdsRef": "Participants/OtherDocumentation",
"title": "Please provide details and provide any probate, grant of representation or power of attorney ",
"type": "string"
},
"attachments": {
"baspiRef": "B1.3.3",
"title": "Attachments",
"type": "string",
"enum": ["Attached", "To follow"]
}
},
"baspiRequired": ["sellersCapacityDetails", "attachments"]
}
]
},
"legalBoundaries": {
"baspiRef": "B2.1",
"ta6Ref": "1",
Expand Down
107 changes: 53 additions & 54 deletions src/schemas/v3/overlays/baspi.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,59 @@
"line1",
"postcode"
]
},
"sellersCapacity": {
"baspiRef": "B1.3",
"discriminator": {
"propertyName": "capacity"
},
"oneOf": [
{
"properties": {
"capacity": {
"enum": [
"Legal Owner",
"Mortgagee in Possession"
]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2"
},
"attachments": {
"baspiRef": "B1.3.3"
}
}
},
{
"properties": {
"capacity": {
"enum": [
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Other"
]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2"
},
"attachments": {
"baspiRef": "B1.3.3"
}
},
"required": [
"sellersCapacityDetails",
"attachments"
]
}
],
"required": [
"capacity"
],
"properties": {
"capacity": {
"baspiRef": "B1.3.1"
}
}
}
}
}
Expand Down Expand Up @@ -57,7 +110,6 @@
"additionalInformation",
"consumerProtectionRegulationsDeclaration",
"legalOwners",
"sellersCapacity",
"legalBoundaries",
"servicesCrossing",
"electricalWorks",
Expand Down Expand Up @@ -5912,59 +5964,6 @@
}
}
},
"sellersCapacity": {
"baspiRef": "B1.3",
"discriminator": {
"propertyName": "capacity"
},
"oneOf": [
{
"properties": {
"capacity": {
"enum": [
"Legal Owner",
"Mortgagee in Possession"
]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2"
},
"attachments": {
"baspiRef": "B1.3.3"
}
}
},
{
"properties": {
"capacity": {
"enum": [
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Other"
]
},
"sellersCapacityDetails": {
"baspiRef": "B1.3.2"
},
"attachments": {
"baspiRef": "B1.3.3"
}
},
"required": [
"sellersCapacityDetails",
"attachments"
]
}
],
"required": [
"capacity"
],
"properties": {
"capacity": {
"baspiRef": "B1.3.1"
}
}
},
"legalBoundaries": {
"baspiRef": "B2.1",
"required": [
Expand Down
64 changes: 35 additions & 29 deletions src/schemas/v3/overlays/piq.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,41 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://trust.propdata.org.uk/schemas/v3/overlays/piq.json",
"properties": {
"participants": {
"items": {
"properties": {
"sellersCapacity": {
"piqRef": "B1.3.1",
"discriminator": {
"propertyName": "capacity"
},
"oneOf": [
{
"properties": {
"capacity": {
"enum": [
"Legal Owner",
"Mortgagee in Possession"
]
}
}
},
{
"properties": {
"capacity": {
"enum": [
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Other"
]
}
}
}
]
}
}
}
},
"propertyPack": {
"properties": {
"address": {
Expand Down Expand Up @@ -2396,35 +2431,6 @@
}
}
},
"sellersCapacity": {
"piqRef": "B1.3.1",
"discriminator": {
"propertyName": "capacity"
},
"oneOf": [
{
"properties": {
"capacity": {
"enum": [
"Legal Owner",
"Mortgagee in Possession"
]
}
}
},
{
"properties": {
"capacity": {
"enum": [
"Personal Representative for a Deceased Owner",
"Under Power of Attorney",
"Other"
]
}
}
}
]
},
"legalBoundaries": {
"piqRef": "B3.1",
"properties": {
Expand Down
Loading

0 comments on commit be686fc

Please sign in to comment.