feinoujc / Mandrill.net

Mailchimp Transactional (Mandrill) api client for .NET
MIT License
70 stars 26 forks source link

MandrillSyncEventReject.Sender is not a string anymore #230

Open BonnieSilentPartner opened 7 months ago

BonnieSilentPartner commented 7 months ago

Something must have changed on Mandrill's end. The Sender property is now an object that I turned into this class to get our webhook to work:

public SenderReputationStats? Sender { get; set; }

public class SenderReputationStats { public int Sent { get; set; } public int Hard_Bounces {get; set;} public int Soft_Bounces {get; set;} public int Rejects {get; set;} public int Complaints {get; set;} public int Unsubs {get; set;} public int Opens {get; set;} public int Clicks {get; set;} public int Unique_opens {get; set;} public int Unique_clicks {get; set;} public int Reputation {get; set;} public string Address { get; set; }

  [JsonConverter(typeof(IsoDateTimeConverter))]
  public DateTime Created_at { get; set; }

}

Thanks! Bonnie