docusign-esign-node-client
docusign-esign-node-client copied to clipboard
Envelopes API: `getAttachment()` has invalid return type
Problem description
The getAttachment() method from EnvelopesApi has invalid return type:
var returnType = null; // Should not be null here
As a result, empty responses are returned with a status of 200 OK and an empty body.
The solution
It seems like the problem can be solved by changing the return type:
var returnType = Object;
I can't seem to find any dedicated type (e.g. EnvelopeAttachmentResult) but I guess it would be the right choice in this case.
I'm happy to discuss other potential solutions 👍
Hello @jan-lewandoski thank you for reaching out to us regarding this issue. We will reach out to the respective API team to understand why a return type similar to the one indicated by the getAttachments endpoint is not present here