Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
petefox committed Dec 12, 2023
1 parent 528c078 commit a09b278
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 31 deletions.
9 changes: 5 additions & 4 deletions src/Close/Close.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
<Nullable>disable</Nullable>
<AssemblyName>Close</AssemblyName>
<RootNamespace>Close</RootNamespace>
<Version>0.2.1</Version>
<Version>0.2.2</Version>
<Authors>Peter Schroeder</Authors>
<Company>Telzio, Inc.</Company>
<Copyright>© 2013-2023 Telzio, Inc.</Copyright>
<Product>Close</Product>
<Title>Close</Title>
<Description>ASP.NET Core client for Close's API</Description>
<LangVersion>latest</LangVersion>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="7.0.11" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Polly.Extensions.Http" Version="3.0.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Close/Models/Call.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Call : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
public string CreatedByName { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }

[JsonPropertyName("created_by")]
public string CreatedBy { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Close/Models/Contact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Contact : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
public string CreatedBy { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }

[JsonPropertyName("updated_by")]
public string UpdatedBy { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Close/Models/CustomObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CustomObject : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
public string CreatedByName { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }

[JsonPropertyName("created_by")]
public string CreatedBy { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Close/Models/Interfaces/IHasCreatedBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ public interface IHasCreatedBy
public string CreatedBy { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }
}
38 changes: 19 additions & 19 deletions src/Close/Models/Lead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,62 @@ namespace Close.Models;
public class Lead : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string Id { get; set; } = null;

[JsonPropertyName("name")]
public string Name { get; set; }
public string Name { get; set; } = null;

[JsonPropertyName("display_name")]
public string DisplayName { get; set; }
public string DisplayName { get; set; } = null;

[JsonPropertyName("status_id")]
public string StatusId { get; set; }
public string StatusId { get; set; } = null;

[JsonPropertyName("status_label")]
public string StatusLabel { get; set; }
public string StatusLabel { get; set; } = null;

[JsonPropertyName("contacts")]
public List<Contact> Contacts { get; set; }
public List<Contact> Contacts { get; set; } = null;

[JsonPropertyName("opportunities")]
public List<Opportunity> Opportunities { get; set; }
public List<Opportunity> Opportunities { get; set; } = null;

[JsonPropertyName("tasks")]
public List<Task> Tasks { get; set; }
public List<Task> Tasks { get; set; } = null;

[JsonPropertyName("addresses")]
public List<Address> Addresses { get; set; }
public List<Address> Addresses { get; set; } = null;

[JsonPropertyName("description")]
public string Description { get; set; }
public string Description { get; set; } = null;

[JsonPropertyName("integration_links")]
public List<IntegrationLink> IntegrationLinks { get; set; }

[JsonPropertyName("url")]
public string Url { get; set; }
public string Url { get; set; } = null;

[JsonPropertyName("html_url")]
public string HtmlUrl { get; set; }
public string HtmlUrl { get; set; } = null;

[JsonPropertyName("organization_id")]
public string OrganizationId { get; set; }
public string OrganizationId { get; set; } = null;

[JsonPropertyName("created_by_name")]
public string CreatedByName { get; set; }
public string CreatedByName { get; set; } = null;

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; } = null;

[JsonPropertyName("created_by")]
public string CreatedBy { get; set; }
public string CreatedBy { get; set; } = null;

[JsonPropertyName("updated_by_name")]
public string UpdatedByName { get; set; }
public string UpdatedByName { get; set; } = null;

[JsonPropertyName("date_updated")]
public DateTimeOffset? DateUpdated { get; set; }
public DateTimeOffset? DateUpdated { get; set; } = null;

[JsonPropertyName("updated_by")]
public string UpdatedBy { get; set; }
public string UpdatedBy { get; set; } = null;
}
2 changes: 1 addition & 1 deletion src/Close/Models/Note.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Note : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
public string CreatedByName { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }

[JsonPropertyName("created_by")]
public string CreatedBy { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Close/Models/Opportunity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ public class Opportunity : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
public string CreatedByName { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }
}
2 changes: 1 addition & 1 deletion src/Close/Models/Pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Pipeline : ICloseEntity, IHasCreatedBy, IHasUpdatedBy
public string OrganizationId { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }

[JsonPropertyName("created_by")]
public string CreatedBy { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Close/Models/Task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class Task : IHasCreatedBy, IHasUpdatedBy
public string CreatedByName { get; set; }

[JsonPropertyName("date_created")]
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateCreated { get; set; }

[JsonPropertyName("updated_by")]
public string UpdatedBy { get; set; }
Expand Down

0 comments on commit a09b278

Please sign in to comment.