diff --git a/crmLead.go b/crmLead.go index c5cc6b6..c2ce7f3 100644 --- a/crmLead.go +++ b/crmLead.go @@ -113,3 +113,18 @@ func crmPatchLeadInfo(newInfo crmdLead) (updatedLead crmdLead, err error) { } return } + +func crmLeadSetStatusNew(id string) { + crmLeadSetStatus(id, "New") +} + +func crmLeadSetStatusDead(id string) { + crmLeadSetStatus(id, "Dead") +} + +func crmLeadSetStatus(id string, status string) { + newLead := crmdLead{} + newLead.ID = id + newLead.Status = status + crmPatchLeadInfo(newLead) +}