-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathWebhookDeal.cs
34 lines (32 loc) · 992 Bytes
/
WebhookDeal.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Collections.Generic;
using Newtonsoft.Json;
using Pipedrive.Internal;
namespace Pipedrive
{
[JsonConverter(typeof(CustomFieldConverter))]
public class WebhookDeal : AbstractDeal<long?, long?, long?>, IEntityWithCustomFields
{
[JsonIgnore]
public IDictionary<string, ICustomField> CustomFields { get; set; }
public DealUpdate ToUpdate()
{
return new DealUpdate
{
Title = Title,
Value = Value,
Currency = Currency,
UserId = UserId,
PersonId = PersonId,
OrgId = OrgId,
PipelineId = PipelineId,
StageId = StageId,
Status = Status,
Probability = Probability,
LostReason = LostReason,
AddTime = AddTime,
VisibleTo = VisibleTo,
CustomFields = CustomFields
};
}
}
}