Skip to content

Commit

Permalink
updated function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 committed Dec 15, 2023
1 parent cb92eb8 commit 99b1972
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function webhooks()

public function uploadAccountDoc($attributes = array())
{
$attributes = $this->convertToFile($attributes);
$attributes = $this->setFile($attributes);

$entityUrl = $this->getEntityUrl() .$this->id .'/documents';

Expand Down
2 changes: 1 addition & 1 deletion src/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Document extends Entity

public function create($attributes = array())
{
$attributes = $this->convertToFile($attributes);
$attributes = $this->setFile($attributes);

return parent::create($attributes);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ protected function convertToArray($attributes)
return $array;
}

public function convertToFile($attributes)
public function setFile($attributes)
{
if(isset($attributes['file'])){
$attributes['file'] = new \CURLFILE(
Expand Down
2 changes: 1 addition & 1 deletion src/Stakeholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function edit($id, $attributes = array())

public function uploadStakeholderDoc($id, $attributes = array())
{
$attributes = $this->convertToFile($attributes);
$attributes = $this->setFile($attributes);

$entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id.'/documents';

Expand Down

0 comments on commit 99b1972

Please sign in to comment.