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

V2 Fatal Error when resending envelope #55

Closed
decadeofdefeat opened this issue Mar 6, 2018 · 4 comments
Closed

V2 Fatal Error when resending envelope #55

decadeofdefeat opened this issue Mar 6, 2018 · 4 comments

Comments

@decadeofdefeat
Copy link

decadeofdefeat commented Mar 6, 2018

My environment is currently limited to PHP 5.5.9 so I'm attempting to put V2 of this software into production. (Composer requires 5.5.36 to install v3).

When I attempt to resend an envelope, I run into errors with ObjectSerializer:

$envelopeApi = new DocuSign\eSign\Api\EnvelopesApi($apiClient);

$updateOptions = new DocuSign\eSign\Api\EnvelopesApi\UpdateOptions();
$updateOptions->setResendEnvelope("true");

$update_summary = $envelopeApi->update($account_id, $env_id, $updateOptions);
PHP Fatal error:  Access to undeclared static property: DocuSign\eSign\Api\EnvelopesApi\UpdateOptions::$swaggerTypes in .../vendor/docusign/esign-client/src/ObjectSerializer.php on line 68

Any help would be appreciated!

@decadeofdefeat
Copy link
Author

Nevermind, I forgot to pass an empty Envelope model.

@Crysalist
Copy link

@decadeofdefeat can you elaborate on how exactly you did it?

@decadeofdefeat
Copy link
Author

This happened so long ago that I honestly don't remember.

@Crysalist
Copy link

Finally found it - the body cannot be null you need to replace it with "{}"
so in the end it looked something like this:
$update_summary = $envelopeApi->update($account_id, $env_id, "{}", $updateOptions);

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

No branches or pull requests

2 participants