-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from bfutrell70/recent_deals
Recent deals
- Loading branch information
Showing
6 changed files
with
159 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,5 +119,6 @@ public void Delete(long companyId) | |
|
||
_client.Execute(path, method: Method.DELETE); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace HubSpot.NET.Api.Deal.Dto | ||
{ | ||
/// <summary> | ||
/// Models a set of results returned when querying for sets of recently created or modified deals | ||
/// </summary> | ||
/// <remarks> | ||
/// The sole reason for this class is because HubSpot uses a different property when returning | ||
/// recently created or modified deals versus all deals. | ||
/// | ||
/// With retrieving all deals the deals are returned in the property "deals". | ||
/// With recent deals the deals are returned in the property "results". | ||
/// </remarks> | ||
public class DealRecentListHubSpotModel<T> : DealListHubSpotModel<T> where T : DealHubSpotModel, new() | ||
{ | ||
/// <summary> | ||
/// Gets or sets the deals. | ||
/// </summary> | ||
/// <value> | ||
/// The list of deals. | ||
/// </value> | ||
[DataMember(Name = "results")] | ||
public new IList<T> Deals { get; set; } = new List<T>(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using HubSpot.NET.Core; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HubSpot.NET.Api.Deal.Dto | ||
{ | ||
public class DealRecentRequestOptions : ListRequestOptions | ||
{ | ||
/// <summary> | ||
/// Used to specify the oldest timestamp to use to retrieve deals | ||
/// </summary> | ||
public string Since { get; set; } | ||
|
||
/// <summary> | ||
/// Specififes if the current value for a property should be fetched or all historical values | ||
/// </summary> | ||
public bool IncludePropertyVersion { get; set; } = false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters