diff --git a/examples/data/ldcE.ts b/examples/data/ldcE.ts index c43adb24..7956f0a9 100644 --- a/examples/data/ldcE.ts +++ b/examples/data/ldcE.ts @@ -1274,7 +1274,7 @@ export const validLDCE: Schema = { ], optional: [], }, - fees: { + fee: { calculated: [], payable: [], }, diff --git a/examples/data/ldcP.ts b/examples/data/ldcP.ts index d572bfaa..ffe5eb30 100644 --- a/examples/data/ldcP.ts +++ b/examples/data/ldcP.ts @@ -8,7 +8,7 @@ export const validLDCP: Schema = { description: 'Lawful Development Certificate - Proposed use', }, fee: { - calculated: 103, + calculated: 129, payable: 0, exemption: { disability: true, @@ -875,7 +875,7 @@ export const validLDCP: Schema = { recommended: [], optional: [], }, - fees: { + fee: { calculated: [ { description: @@ -891,7 +891,7 @@ export const validLDCP: Schema = { payable: [ { description: - 'If the proposed works (to either a home or within the curtilage of a home) is for the sole purpose of providing either: a means of access to (or within) the dwellinghouse for a disabled resident (current or future); providing facilities that are designed to ensure the disabled persons safety, health or comfort; or providing disabled access to a public building. Then no planning fee will be payable for this application.', + 'If the proposed works (to either a home or within the curtilage of a home) is for the sole purpose of - providing either a means of access to (or within) the dwellinghouse for a disabled resident (current or future); providing facilities that are designed to ensure the disabled persons safety, health or comfort; or providing disabled access to a public building - then no planning fee will be payable for this application.', policyRefs: [ { text: 'UK Statutory Instruments 2012 No. 2920 Regulation 4', diff --git a/examples/data/planningPermission.ts b/examples/data/planningPermission.ts index 86dd7e28..9bc2a913 100644 --- a/examples/data/planningPermission.ts +++ b/examples/data/planningPermission.ts @@ -1294,7 +1294,7 @@ export const validPlanningPermission: Schema = { ], optional: [], }, - fees: { + fee: { calculated: [], payable: [], }, diff --git a/examples/data/priorApproval.ts b/examples/data/priorApproval.ts index 806ceb35..126d7a35 100644 --- a/examples/data/priorApproval.ts +++ b/examples/data/priorApproval.ts @@ -802,7 +802,7 @@ export const validPriorApproval: Schema = { ], optional: [], }, - fees: { + fee: { calculated: [], payable: [], }, diff --git a/schema/schema.json b/schema/schema.json index e90608b6..cfc76ca1 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1749,8 +1749,8 @@ ], "type": "object" }, - "FeesExplanation": { - "$id": "#FeesExplanation", + "FeeExplanation": { + "$id": "#FeeExplanation", "additionalProperties": false, "description": "An explanation, including policy references, of the calculated and payable fees associated with this application", "properties": { @@ -4478,8 +4478,8 @@ "service": { "additionalProperties": false, "properties": { - "fees": { - "$ref": "#/definitions/FeesExplanation" + "fee": { + "$ref": "#/definitions/FeeExplanation" }, "files": { "$ref": "#/definitions/RequestedFiles" @@ -4495,7 +4495,7 @@ "flowId", "url", "files", - "fees" + "fee" ], "type": "object" }, diff --git a/types/schema/Metadata.ts b/types/schema/Metadata.ts index 106389fe..120f0655 100644 --- a/types/schema/Metadata.ts +++ b/types/schema/Metadata.ts @@ -54,10 +54,10 @@ export interface CalculateMetadata { } /** - * @id #FeesExplanation + * @id #FeeExplanation * @description An explanation, including policy references, of the calculated and payable fees associated with this application */ -export interface FeesExplanation { +export interface FeeExplanation { calculated: CalculateMetadata[]; payable: CalculateMetadata[]; } @@ -72,6 +72,6 @@ export interface PlanXMetadata extends BaseMetadata { flowId: UUID; url: URL; files: RequestedFiles; - fees: FeesExplanation; + fee: FeeExplanation; }; }