Skip to content

Commit

Permalink
Merge pull request #2 from astridblahblahblah/docusign-php-client-v3-…
Browse files Browse the repository at this point in the history
…support

Support for docusign/esign-client v3
  • Loading branch information
Tucker-Eric authored May 8, 2017
2 parents c2c3e89 + 0c0fcb8 commit 9b68c12
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"require": {
"php": ">=5.5.9",
"docusign/esign-client": "^2.0"
"docusign/esign-client": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "5.3.*"
Expand Down
8 changes: 8 additions & 0 deletions src/Api/Billing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class Billing extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/BulkEnvelopes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class BulkEnvelopes extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/CloudStorage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class CloudStorage extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/Connect.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class Connect extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/Groups.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class Groups extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/PowerForms.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class PowerForms extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/SigningGroups.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class SigningGroups extends BaseApi
{

}
8 changes: 8 additions & 0 deletions src/Api/Workspaces.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace DocuSign\Rest\Api;

class Workspaces extends BaseApi
{

}
3 changes: 2 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ public function __call($method, $args)
// Instantiate the new model
$docusignModel = new $model;
if (is_array($args[0])) {
$setters = $docusignModel->setters();
// We have to set it this way because if we dont the indexes of docusign's construct
// Are all undefined. So this way we can set what we want
foreach ($args[0] as $field => $val) {
$docusignModel->{$docusignModel::$setters[$field]}($val);
$docusignModel->{$setters[$field]}($val);
}
}

Expand Down

0 comments on commit 9b68c12

Please sign in to comment.