diff --git a/src/examples/v3/exampleTransaction.json b/src/examples/v3/exampleTransaction.json index e2476c4..731f38a 100644 --- a/src/examples/v3/exampleTransaction.json +++ b/src/examples/v3/exampleTransaction.json @@ -13,6 +13,7 @@ "email": "peter@theseller.com", "address": { "line1": "47 Park Road", "postcode": "AL3 5AF" }, "role": "Seller", + "sellersCapacity": { "capacity": "Legal Owner" }, "externalIds": { "MoveReady": "123434" } }, { @@ -570,7 +571,6 @@ } ] }, - "sellersCapacity": { "capacity": "Legal Owner" }, "legalBoundaries": { "partOutsideLegalOwnership": { "yesNo": "No" diff --git a/src/schemas/v3/combined.json b/src/schemas/v3/combined.json index 5965021..8aad383 100644 --- a/src/schemas/v3/combined.json +++ b/src/schemas/v3/combined.json @@ -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"] + } + ] } } } @@ -157,7 +232,6 @@ "additionalInformation", "consumerProtectionRegulationsDeclaration", "legalOwners", - "sellersCapacity", "legalBoundaries", "servicesCrossing", "electricalWorks", @@ -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", diff --git a/src/schemas/v3/overlays/baspi.json b/src/schemas/v3/overlays/baspi.json index 0eee3e6..3233b8f 100644 --- a/src/schemas/v3/overlays/baspi.json +++ b/src/schemas/v3/overlays/baspi.json @@ -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" + } + } } } } @@ -57,7 +110,6 @@ "additionalInformation", "consumerProtectionRegulationsDeclaration", "legalOwners", - "sellersCapacity", "legalBoundaries", "servicesCrossing", "electricalWorks", @@ -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": [ diff --git a/src/schemas/v3/overlays/piq.json b/src/schemas/v3/overlays/piq.json index 5407d00..5294b60 100644 --- a/src/schemas/v3/overlays/piq.json +++ b/src/schemas/v3/overlays/piq.json @@ -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": { @@ -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": { diff --git a/src/schemas/v3/overlays/rds.json b/src/schemas/v3/overlays/rds.json index a8949d0..960a7c1 100644 --- a/src/schemas/v3/overlays/rds.json +++ b/src/schemas/v3/overlays/rds.json @@ -2,6 +2,47 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/rds.json", "properties": { + "participants": { + "items": { + "properties": { + "sellersCapacity": { + "rdsRef": "Participants/description=?,Participants/ActingFor/Participants/Role", + "discriminator": { + "propertyName": "capacity" + }, + "oneOf": [ + { + "properties": { + "capacity": { + "enum": [ + "Legal Owner", + "Mortgagee in Possession" + ] + }, + "sellersCapacityDetails": { + "rdsRef": "Participants/OtherDocumentation" + } + } + }, + { + "properties": { + "capacity": { + "enum": [ + "Personal Representative for a Deceased Owner", + "Under Power of Attorney", + "Other" + ] + }, + "sellersCapacityDetails": { + "rdsRef": "Participants/OtherDocumentation" + } + } + } + ] + } + } + } + }, "propertyPack": { "properties": { "address": { @@ -2628,41 +2669,6 @@ } } }, - "sellersCapacity": { - "rdsRef": "Participants/description=?,Participants/ActingFor/Participants/Role", - "discriminator": { - "propertyName": "capacity" - }, - "oneOf": [ - { - "properties": { - "capacity": { - "enum": [ - "Legal Owner", - "Mortgagee in Possession" - ] - }, - "sellersCapacityDetails": { - "rdsRef": "Participants/OtherDocumentation" - } - } - }, - { - "properties": { - "capacity": { - "enum": [ - "Personal Representative for a Deceased Owner", - "Under Power of Attorney", - "Other" - ] - }, - "sellersCapacityDetails": { - "rdsRef": "Participants/OtherDocumentation" - } - } - } - ] - }, "legalBoundaries": { "properties": { "partOutsideLegalOwnership": { diff --git a/src/schemas/v3/pdtf-transaction.json b/src/schemas/v3/pdtf-transaction.json index 4d30e53..5345274 100644 --- a/src/schemas/v3/pdtf-transaction.json +++ b/src/schemas/v3/pdtf-transaction.json @@ -114,11 +114,80 @@ "Prospective Buyer", "Buyer", "Buyer's Conveyancer", - "Estate Agent" + "Estate Agent", + "Buyer's Agent", + "Surveyor", + "Mortgage Broker", + "Lender" ] }, "externalIds": { "type": "object" + }, + "sellersCapacity": { + "title": "Capacity in which the Seller sells", + "type": "object", + "properties": { + "capacity": { + "type": "string", + "title": "", + "enum": [ + "Legal Owner", + "Personal Representative for a Deceased Owner", + "Under Power of Attorney", + "Mortgagee in Possession", + "Other" + ] + } + }, + "oneOf": [ + { + "properties": { + "capacity": { + "enum": [ + "Legal Owner", + "Mortgagee in Possession" + ] + }, + "sellersCapacityDetails": { + "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": { + "title": "Attachments", + "type": "string", + "enum": [ + "Attached", + "To follow" + ] + } + } + }, + { + "properties": { + "capacity": { + "enum": [ + "Personal Representative for a Deceased Owner", + "Under Power of Attorney", + "Other" + ] + }, + "sellersCapacityDetails": { + "title": "Please provide details and provide any probate, grant of representation or power of attorney ", + "type": "string" + }, + "attachments": { + "title": "Attachments", + "type": "string", + "enum": [ + "Attached", + "To follow" + ] + } + } + } + ] } } } @@ -21279,71 +21348,6 @@ } } }, - "sellersCapacity": { - "title": "Capacity in which the Seller sells", - "type": "object", - "properties": { - "capacity": { - "type": "string", - "title": "", - "enum": [ - "Legal Owner", - "Personal Representative for a Deceased Owner", - "Under Power of Attorney", - "Mortgagee in Possession", - "Other" - ] - } - }, - "oneOf": [ - { - "properties": { - "capacity": { - "enum": [ - "Legal Owner", - "Mortgagee in Possession" - ] - }, - "sellersCapacityDetails": { - "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": { - "title": "Attachments", - "type": "string", - "enum": [ - "Attached", - "To follow" - ] - } - } - }, - { - "properties": { - "capacity": { - "enum": [ - "Personal Representative for a Deceased Owner", - "Under Power of Attorney", - "Other" - ] - }, - "sellersCapacityDetails": { - "title": "Please provide details and provide any probate, grant of representation or power of attorney ", - "type": "string" - }, - "attachments": { - "title": "Attachments", - "type": "string", - "enum": [ - "Attached", - "To follow" - ] - } - } - } - ] - }, "legalBoundaries": { "title": "Legal Boundaries", "description": "", diff --git a/src/schemas/v3/skeleton.json b/src/schemas/v3/skeleton.json index bc72ca6..d35163f 100644 --- a/src/schemas/v3/skeleton.json +++ b/src/schemas/v3/skeleton.json @@ -22,7 +22,12 @@ "organisation": {}, "organisationReference": {}, "role": {}, - "externalIds": {} + "externalIds": {}, + "sellersCapacity": { + "capacity": {}, + "sellersCapacityDetails": {}, + "attachments": {} + } }, "propertyPack": { "address": { @@ -2569,11 +2574,6 @@ "organisationName": {} } }, - "sellersCapacity": { - "capacity": {}, - "sellersCapacityDetails": {}, - "attachments": {} - }, "legalBoundaries": { "partOutsideLegalOwnership": { "yesNo": {},