diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d232681..2c592ea 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,6 +14,7 @@ name: "CodeQL" on: push: branches: [ "master" ] + workflow_dispatch: pull_request: # The branches below must be a subset of the branches above branches: [ "master" ] diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 211ff23..bfcc389 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -3,6 +3,7 @@ name: .NET on: push: branches: [ "master" ] + workflow_dispatch: pull_request: branches: [ "master" ] diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/ModelDatumInputDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/ModelDatumInputDto.cs index 684552b..183b8f7 100644 --- a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/ModelDatumInputDto.cs +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/ModelDatumInputDto.cs @@ -4,6 +4,7 @@ using Forbury.Integrations.Helpers.Converters; using System; using System.Collections.Generic; +using Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease; using Newtonsoft.Json; namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input @@ -12,7 +13,8 @@ public class ModelDatumInputDto : IModelInput { public List Spaces { get; set; } = new List(); public DatumSettingsDto Settings { get; set; } - + public DatumMarketLeasingAssumptionsDto MarketLeasingAssumptions { get; set; } + public string ExternalId { get; set; } [JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime? AcquisitionDate { get; set; } public int? HoldPeriodMonths { get; set; } diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/DatumSpaceDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/DatumSpaceDto.cs index f218e27..68334f5 100644 --- a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/DatumSpaceDto.cs +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/DatumSpaceDto.cs @@ -10,5 +10,8 @@ public class DatumSpaceDto public string Demise { get; set; } public decimal? MarketRent { get; set; } public decimal? LettableArea { get; set; } + + public string MarketLeasingAssumptionProfile { get; set; } + public FirstRenewalAssumptionsDto FirstRenewalOverrides { get; set; } } } diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/DatumMarketLeasingAssumptionsDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/DatumMarketLeasingAssumptionsDto.cs new file mode 100644 index 0000000..73d79b7 --- /dev/null +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/DatumMarketLeasingAssumptionsDto.cs @@ -0,0 +1,12 @@ +using Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease.Options; + +namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease +{ + public class DatumMarketLeasingAssumptionsDto + { + public string Description { get; set; } + public DatumLeaseOptionsDto LeaseOptions { get; set; } + public DatumLeaseVacancyOptionsDto VacancyOptions { get; set; } + public DatumLeaseFeeOptionsDto FeeOptions { get; set; } + } +} diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/FirstRenewalAssumptionsDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/FirstRenewalAssumptionsDto.cs new file mode 100644 index 0000000..21770bc --- /dev/null +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/FirstRenewalAssumptionsDto.cs @@ -0,0 +1,17 @@ +using System; +using Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease.Options; +using Forbury.Integrations.Helpers.Converters; +using Newtonsoft.Json; + +namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease +{ + public class FirstRenewalAssumptionsDto + { + [JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime? StartDate { get; set; } + public decimal BaseRent { get; set; } + public decimal MarketRent { get; set; } + public DatumLeaseOptionsDto LeaseOptions { get; set; } + public DatumLeaseVacancyOptionsDto VacancyOptions { get; set; } + public DatumLeaseFeeOptionsDto FeeOptions { get; set; } + } +} diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseFeeOptionsDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseFeeOptionsDto.cs new file mode 100644 index 0000000..372204c --- /dev/null +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseFeeOptionsDto.cs @@ -0,0 +1,8 @@ +namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease.Options +{ + public class DatumLeaseFeeOptionsDto + { + public decimal? AgentsLeasingFee { get; set; } + public decimal? LegalLeasingFee { get; set; } + } +} diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseOptionsDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseOptionsDto.cs new file mode 100644 index 0000000..b6eeaf4 --- /dev/null +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseOptionsDto.cs @@ -0,0 +1,10 @@ +namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease.Options +{ + public class DatumLeaseOptionsDto + { + public int? TermYears { get; set; } + public string ReviewType { get; set; } + public int? ReviewFrequencyYears { get; set; } + public int? RentFreeMonths { get; set; } + } +} diff --git a/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseVacancyOptionsDto.cs b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseVacancyOptionsDto.cs new file mode 100644 index 0000000..16e4bae --- /dev/null +++ b/src/Forbury.Integrations/API/v1/Dto/Model/Datum/Input/Space/Lease/Options/DatumLeaseVacancyOptionsDto.cs @@ -0,0 +1,10 @@ +namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease.Options +{ + public class DatumLeaseVacancyOptionsDto + { + public int? DowntimeMonths { get; set; } + public int? PreRefurbMonths { get; set; } + public int? RefurbMonths { get; set; } + public decimal? RefurbAmount { get; set; } + } +} diff --git a/src/Forbury.Integrations/Forbury.Integrations.csproj b/src/Forbury.Integrations/Forbury.Integrations.csproj index fd70b04..947cde2 100644 --- a/src/Forbury.Integrations/Forbury.Integrations.csproj +++ b/src/Forbury.Integrations/Forbury.Integrations.csproj @@ -1,7 +1,7 @@  - 1.7.2 + 1.7.3 Forbury Development Team Forbury This .NET client library provides a quick and easy option for integrating with Forbury APIs.