Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input
{
public class DatumSettingsDto
{
public string Currency { get; set; }
public string AreaMeasure { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input
{
public class ModelDatumInputDto : IModelInput
{
public List<DatumSpaceDto> Spaces { get; set; }

public List<DatumSpaceDto> Spaces { get; set; } = new List<DatumSpaceDto>();
public DatumSettingsDto Settings { get; set; }

public string ExternalId { get; set; }
[JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime? AcquisitionDate { get; set; }
public int? HoldPeriodMonths { get; set; }
public EntryExitTypes? EntryMethod { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class DatumSpaceDto
{
public DatumLeaseDto Lease { get; set; }

public string ExternalId { get; set; }
public string Demise { get; set; }
public decimal? MarketRent { get; set; }
public decimal? LettableArea { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
using Forbury.Integrations.Helpers.Converters;
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease
{
public class DatumLeaseDto
{
public List<DatumReviewDto> Reviews { get; set; } = new List<DatumReviewDto>();
public List<DatumRentFreeDto> RentFree { get; set; } = new List<DatumRentFreeDto>();

public string ExternalId { get; set; }
public string Name { get; set; }
[JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime? StartDate { get; set; }
[JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime? ExpiryDate { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using Forbury.Integrations.Helpers.Converters;
using Newtonsoft.Json;

namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease
{
public class DatumRentFreeDto
{
[JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime? Date { get; set; }
public decimal Months { get; set; }
public decimal Percent { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using Forbury.Integrations.Helpers.Converters;
using Newtonsoft.Json;

namespace Forbury.Integrations.API.v1.Dto.Model.Datum.Input.Space.Lease
{
public class DatumReviewDto
{
public string Type { get; set; }
[JsonConverter(typeof(DateFormatConverter), JsonFormats.DateFormat)] public DateTime Date { get; set; }
public string Cap { get; set; }
public string Collar { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Forbury.Integrations/Forbury.Integrations.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.7.1</Version>
<Version>1.7.2</Version>
<Authors>Forbury Development Team</Authors>
<Company>Forbury</Company>
<PackageDescription>This .NET client library provides a quick and easy option for integrating with Forbury APIs.</PackageDescription>
Expand Down