From 4e5a8767576ea03499c5a0d829cc86082c70360a Mon Sep 17 00:00:00 2001 From: Azizbek Khushvakov <113523904+azizbekxm@users.noreply.github.com> Date: Fri, 3 Nov 2023 14:02:39 +0500 Subject: [PATCH] [MODFIN-337] - Add locationIds to fund schema (#432) * [MODFIN-337] - Add locationIds to fund schema * [MODFIN-337] - Add locationIds to fund schema --- mod-finance/examples/fund.sample | 4 ++++ mod-finance/examples/fund_collection.sample | 4 ++++ mod-finance/examples/fund_details.sample | 4 ++++ mod-finance/schemas/fund.json | 8 ++++++++ mod-finance/schemas/fund_details.json | 16 ++++++++++++++++ 5 files changed, 36 insertions(+) diff --git a/mod-finance/examples/fund.sample b/mod-finance/examples/fund.sample index c9046499..6e93d306 100644 --- a/mod-finance/examples/fund.sample +++ b/mod-finance/examples/fund.sample @@ -22,6 +22,10 @@ "d926d900-e27d-46d6-bba8-31e9d5c2cf44", "077274ad-6b4f-4c28-9779-6d381e7a1ca1" ], + "locationIds": [ + "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6", + "fcd64ce1-6995-48f0-840e-89ffa2288371" + ], "tags": { "tagList": [ "tag" diff --git a/mod-finance/examples/fund_collection.sample b/mod-finance/examples/fund_collection.sample index fab23b32..be503b61 100644 --- a/mod-finance/examples/fund_collection.sample +++ b/mod-finance/examples/fund_collection.sample @@ -24,6 +24,10 @@ "d926d900-e27d-46d6-bba8-31e9d5c2cf44", "077274ad-6b4f-4c28-9779-6d381e7a1ca1" ], + "locationIds": [ + "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6", + "fcd64ce1-6995-48f0-840e-89ffa2288371" + ], "tags": { "tagList": [ "tag" diff --git a/mod-finance/examples/fund_details.sample b/mod-finance/examples/fund_details.sample index 5d4fa7d3..0638c085 100644 --- a/mod-finance/examples/fund_details.sample +++ b/mod-finance/examples/fund_details.sample @@ -28,5 +28,9 @@ "donorOrganizationIds": [ "d926d900-e27d-46d6-bba8-31e9d5c2cf44", "077274ad-6b4f-4c28-9779-6d381e7a1ca1" + ], + "locationIds": [ + "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6", + "fcd64ce1-6995-48f0-840e-89ffa2288371" ] } diff --git a/mod-finance/schemas/fund.json b/mod-finance/schemas/fund.json index 64e5ff21..561e812a 100644 --- a/mod-finance/schemas/fund.json +++ b/mod-finance/schemas/fund.json @@ -75,6 +75,14 @@ "$ref": "../../common/schemas/uuid.json" } }, + "locationIds": { + "description": "location ids associated with this fund", + "type": "array", + "items": { + "description": "UUID of an location record", + "$ref": "../../common/schemas/uuid.json" + } + }, "tags": { "type" : "object", "description": "arbitrary tags associated with this fund", diff --git a/mod-finance/schemas/fund_details.json b/mod-finance/schemas/fund_details.json index 3b585bb7..336b6fd9 100644 --- a/mod-finance/schemas/fund_details.json +++ b/mod-finance/schemas/fund_details.json @@ -47,6 +47,22 @@ "$ref": "../../common/schemas/uuid.json" } }, + "donorOrganizationIds": { + "description": "donor organization ids associated with this fund", + "type": "array", + "items": { + "description": "UUID of an donor organization record", + "$ref": "../../common/schemas/uuid.json" + } + }, + "locationIds": { + "description": "location ids associated with this fund", + "type": "array", + "items": { + "description": "UUID of an location record", + "$ref": "../../common/schemas/uuid.json" + } + }, "allocatedFromIds": { "description": "All the funds ids that this fund is allowed to receive money from. This would be 1 fund or none. If this field is blank their is no restriction on allocating to this fund", "type": "array",