From adb824c0bd4c1725bd0502949980771f0b42e3ad Mon Sep 17 00:00:00 2001 From: "J. Beukers" Date: Fri, 10 Jun 2022 13:43:16 +0200 Subject: [PATCH] Added PipelineId to NewDeal and DealUpdate --- src/Pipedrive.net/Models/Request/Deals/DealUpdate.cs | 3 +++ src/Pipedrive.net/Models/Request/Deals/NewDeal.cs | 3 +++ src/Pipedrive.net/Models/Response/Deals/Deal.cs | 1 + src/Pipedrive.net/Models/Response/Webhooks/WebhookDeal.cs | 1 + 4 files changed, 8 insertions(+) diff --git a/src/Pipedrive.net/Models/Request/Deals/DealUpdate.cs b/src/Pipedrive.net/Models/Request/Deals/DealUpdate.cs index aacee82f..02ea6aaa 100644 --- a/src/Pipedrive.net/Models/Request/Deals/DealUpdate.cs +++ b/src/Pipedrive.net/Models/Request/Deals/DealUpdate.cs @@ -27,6 +27,9 @@ public class DealUpdate : IEntityWithCustomFields [JsonProperty("org_id")] public long? OrgId { get; set; } + [JsonProperty("pipeline_id")] + public long? PipelineId { get; set; } + [JsonProperty("stage_id")] public long? StageId { get; set; } diff --git a/src/Pipedrive.net/Models/Request/Deals/NewDeal.cs b/src/Pipedrive.net/Models/Request/Deals/NewDeal.cs index eb580128..03e91069 100644 --- a/src/Pipedrive.net/Models/Request/Deals/NewDeal.cs +++ b/src/Pipedrive.net/Models/Request/Deals/NewDeal.cs @@ -25,6 +25,9 @@ public class NewDeal : IEntityWithCustomFields [JsonProperty("org_id")] public long? OrgId { get; set; } + [JsonProperty("pipeline_id")] + public long? PipelineId { get; set; } + [JsonProperty("stage_id")] public long? StageId { get; set; } diff --git a/src/Pipedrive.net/Models/Response/Deals/Deal.cs b/src/Pipedrive.net/Models/Response/Deals/Deal.cs index a715ea1e..3fe9edd7 100644 --- a/src/Pipedrive.net/Models/Response/Deals/Deal.cs +++ b/src/Pipedrive.net/Models/Response/Deals/Deal.cs @@ -21,6 +21,7 @@ public DealUpdate ToUpdate() UserId = UserId?.Value, PersonId = PersonId?.Value, OrgId = OrgId?.Value, + PipelineId = PipelineId, StageId = StageId, Status = Status, Probability = Probability, diff --git a/src/Pipedrive.net/Models/Response/Webhooks/WebhookDeal.cs b/src/Pipedrive.net/Models/Response/Webhooks/WebhookDeal.cs index 775611fd..bdd36ce9 100644 --- a/src/Pipedrive.net/Models/Response/Webhooks/WebhookDeal.cs +++ b/src/Pipedrive.net/Models/Response/Webhooks/WebhookDeal.cs @@ -20,6 +20,7 @@ public DealUpdate ToUpdate() UserId = UserId, PersonId = PersonId, OrgId = OrgId, + PipelineId = PipelineId, StageId = StageId, Status = Status, Probability = Probability,