Skip to content

Commit

Permalink
Fixed Date serialization issue (#100)
Browse files Browse the repository at this point in the history
* Fixed Date serialization issue

* Fixed pollyfill issue

* dependency issue resolve - draft

* reverted changes from composer.json

Co-authored-by: Dhaval Brahmbhatt <[email protected]>
  • Loading branch information
dbbrahmbhatt and Dhaval Brahmbhatt authored Jun 2, 2020
1 parent e42e98d commit d9e24b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Tabs implements ModelInterface, ArrayAccess
'comment_thread_tabs' => '\DocuSign\eSign\Model\CommentThread[]',
'company_tabs' => '\DocuSign\eSign\Model\Company[]',
'date_signed_tabs' => '\DocuSign\eSign\Model\DateSigned[]',
'date_tabs' => '\DocuSign\eSign\Model\\DateTime[]',
'date_tabs' => '\DocuSign\eSign\Model\\Date[]',
'decline_tabs' => '\DocuSign\eSign\Model\Decline[]',
'draw_tabs' => '\DocuSign\eSign\Model\Draw[]',
'email_address_tabs' => '\DocuSign\eSign\Model\EmailAddress[]',
Expand Down
2 changes: 1 addition & 1 deletion src/Model/TemplateTabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TemplateTabs implements ModelInterface, ArrayAccess
'comment_thread_tabs' => '\DocuSign\eSign\Model\CommentThread[]',
'company_tabs' => '\DocuSign\eSign\Model\Company[]',
'date_signed_tabs' => '\DocuSign\eSign\Model\DateSigned[]',
'date_tabs' => '\DocuSign\eSign\Model\\DateTime[]',
'date_tabs' => '\DocuSign\eSign\Model\\Date[]',
'decline_tabs' => '\DocuSign\eSign\Model\Decline[]',
'draw_tabs' => '\DocuSign\eSign\Model\Draw[]',
'email_address_tabs' => '\DocuSign\eSign\Model\EmailAddress[]',
Expand Down
8 changes: 8 additions & 0 deletions test/UnitTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,17 @@ function signatureRequestOnDocument($testConfig, $status = "sent", $embeddedSign
$numberTab->setPageNumber("1");
$numberTab->setRecipientId("1");

$dateTab = new \DocuSign\eSign\Model\Date();
$dateTab->setXPosition("100");
$dateTab->setYPosition("100");
$dateTab->setDocumentId("1");
$dateTab->setPageNumber("1");
$dateTab->setRecipientId("1");

$tabs = new DocuSign\eSign\Model\Tabs();
$tabs->setSignHereTabs(array($signHere));
$tabs->setNumberTabs(array($numberTab));
$tabs->setDateTabs(array($dateTab));

$signer = new \DocuSign\eSign\Model\Signer();
$signer->setEmail($testConfig->getRecipientEmail());
Expand Down

0 comments on commit d9e24b7

Please sign in to comment.