/**
  * Send envelope
  *
  * @param SignableInterface $object
  * @return mixed
  * @throws \RuntimeException
  */
 private function sendEnvelope(SignableInterface $object)
 {
     $recipients = $this->getRecipients($object);
     $envelope = new Envelope();
     $envelope->setEmailSubject('TestS');
     $envelope->setEmailBlurb('TestB');
     $envelope->setRecipients($recipients);
     $envelope->setStatus(Envelope::STATUS_SENT);
     try {
         $templateId = $this->getTemplateForSignableObject($object);
         $options = array('enableWetSign' => false);
         $response = $this->docusignApi->sendEnvelopeFromTemplate($envelope, $templateId, $options);
     } catch (\Exception $e) {
         throw new \RuntimeException($e->getMessage(), $e->getCode(), $e);
     }
     return $response;
 }
 public function __construct(array $config, Session $session, $prefix = self::PREFIX)
 {
     $this->session = $session;
     $this->prefix = $prefix;
     parent::__construct($config);
 }