我正在尝试为我的信封定义设置过期设置,但我无法这样做。
我使用以下内容作为创建和发送信封的引用:
https://github.com/docusign/docusign-csharp-client/blob/master/test/Recipes/CoreRecipes.cs
我已经尝试过以下操作:
envDef.ExpireAfter = "1";
envDef.ExpireEnabled = "true";
envDef.ExpireDateTime = DateTime.Now.AddDays(1).ToString("dd MMM yyyy hh:mm ff");
该文档确实与我设置的所有其他设置一起发送,但是,尽管有上述设置,但没有为其设置过期设置。
最佳答案
正如 Inbar 所说,您需要创建一个 Expirations 对象并将其应用到您的信封定义中。根据DocuSign's Dev blog ,你可以这样做:
var expirations = new Expirations("1", "true", "0"); //ExpireAfter, Enabled, Warning days
var reminders = new Reminders("0", "true", "0"); //ReminderDelay, Enabled, Frequency
//results in no reminders and no expiration warning sent, envelope expires one day after sending
然后将其应用于envelopeDefinition.Notification
参数
envelopeDefinition.Notification = new Notification(expirations, reminders, "false"); //Expirations, Reminders, UseDefaults
关于c# - 如何为信封定义设置过期设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56969791/