-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8daf871
commit 9016b58
Showing
12 changed files
with
126 additions
and
191 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->in(__DIR__); | ||
|
||
$config = new Config(); | ||
$config->setRules([ | ||
'@PSR2' => true, | ||
'array_indentation' => true, | ||
'array_syntax' => ['syntax' => 'short'] | ||
]) | ||
->setLineEnding("\n") | ||
->setFinder($finder); | ||
|
||
return $config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?php | ||
|
||
namespace Bildvitta\IssJuridico\Resources; | ||
|
||
use Bildvitta\IssJuridico\IssJuridico; | ||
|
||
class Documents | ||
{ | ||
private IssJuridico $juridico; | ||
|
||
|
||
public function __construct(IssJuridico $juridico) | ||
{ | ||
$this->juridico = $juridico; | ||
} | ||
|
||
public function list($data) | ||
{ | ||
return $this->juridico->request->get( | ||
'documents', | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
public function send($data) | ||
{ | ||
return $this->juridico->request->post( | ||
'documents/send', | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
public function view($data) | ||
{ | ||
return $this->juridico->request->post( | ||
'documents/view', | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
public function historic($data) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/historic'), | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
public function historicDocument($uuidDocument,$data) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/%s/historic', $uuidDocument), | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
public function download($uuidDocument) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/%s/download', $uuidDocument), | ||
)->throw()->object(); | ||
} | ||
|
||
public function verifySignatures($uuidDocument) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/%s/verify-signatures', $uuidDocument), | ||
)->throw()->object(); | ||
} | ||
|
||
public function cancel($uuidDocument,$data) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/%s/cancel', $uuidDocument), | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
public function resendSigner($uuidDocument, $uuidSigner) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/%s/resend-signer/%s', $uuidDocument, $uuidSigner) | ||
)->throw()->object(); | ||
} | ||
|
||
public function changeSigner($uuidDocument, $uuidSigner,$data) | ||
{ | ||
return $this->juridico->request->get( | ||
sprintf('documents/%s/change-signer/%s', $uuidDocument, $uuidSigner), | ||
$data | ||
)->throw()->object(); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.