Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Unsupported Expiration Methods from EnvelopeDefinition #313

Open
RiccoYuan opened this issue Mar 19, 2021 · 3 comments
Open

Remove Unsupported Expiration Methods from EnvelopeDefinition #313

RiccoYuan opened this issue Mar 19, 2021 · 3 comments
Labels

Comments

@RiccoYuan
Copy link

The same problem is also in the C# package
DocuSign.eSign.dll Version: 4.5.2
.NETFramework Version: v4.7

docusign/docusign-esign-node-client#154 (comment)

This SDK's docs list a few expiration-related members directly on the EnvelopeDefinition object that don't seem to map to the actual Docusign API or have any effect. Specifically, this concerns:

expireAfter
expireDateTime
expireEnabled
In my testing, these values have no effect on the sent envelope, and expireDateTime in particular seems to promise functionality that doesn't exist -- Docusign only allows users to set the expiration in number of days, as an integer.

@mrkoggles
Copy link

@RiccoYuan I just ran into this issue. Do you know what the work around to setting the expiration to a new envelope?

@geoffpdevsup
Copy link

geoffpdevsup commented May 18, 2021

The expire related members directly on the envelope are deprecated. We need to document that I will post a bug. This solution is to add a Notification object to the envelope. In C# this would be

Notification notification = new Notification();
Expirations expirations = new Expirations();

expirations.ExpireEnabled = "true";
expirations.ExpireAfter = "5";
expirations.ExpireWarn = "2";

Reminders reminders = new Reminders();
reminders.ReminderEnabled = "false";
reminders.ReminderFrequency = "0";
reminders.ReminderDelay = "0";
notification.Expirations = expirations;
notification.Reminders = reminders;
notification.UseAccountDefaults = "false";

envelopeDef.Notification = notification;

That produces this JSON block:
"notification": {
"expirations": {
"expireAfter": "5",
"expireEnabled": "true",
"expireWarn": "2"
},
"reminders": {
"reminderDelay": "0",
"reminderEnabled": "false",
"reminderFrequency": "0"
},
"useAccountDefaults": "false"
},

@geoffpdevsup
Copy link

I posted DEVDOCS-4866
API reference should mark expireAfter, expireDateTime and expireEnabled on the EnvelopeDefintion deprecated. See Notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants