Creditor Classification webhooks event.
Hi Mike,
I try to add new event (Created, Updated, Deleted) for Creditor Classification on Webhooks.
Here is sample code for Debtor Classification. It work fine.
But for Creditor Classification it does not work.

It seems JiwaServiceModel do not have Classification class for Creditor and also does not have DTO_Serialise() method.
Pleaes advise which classes use for Creditor classification.
Thanks,
I try to add new event (Created, Updated, Deleted) for Creditor Classification on Webhooks.
Here is sample code for Debtor Classification. It work fine.
- Code: Select all
async public void debtorClassification_SaveEnd(object sender, System.EventArgs e)
{
JiwaFinancials.Jiwa.JiwaDebtors.Configuration.Classification.Classification classification = (JiwaFinancials.Jiwa.JiwaDebtors.Configuration.Classification.Classification)sender;
string body = classification.DTO_Serialise().ToJson<JiwaFinancials.Jiwa.JiwaServiceModel.Debtors.Classification.DebtorClassification>();
Webhook(classification.Manager, body, (classification.InsertFlag) ? "debtorclassification.created" : (classification.DeleteFlag) ? "debtorclassification.deleted" : "debtorclassification.updated");
}
But for Creditor Classification it does not work.
It seems JiwaServiceModel do not have Classification class for Creditor and also does not have DTO_Serialise() method.
Pleaes advise which classes use for Creditor classification.
Thanks,