Skip to content

Commit

Permalink
Add GetDebtorReference getter to TransactionBluemResponse
Browse files Browse the repository at this point in the history
+ fix typo
  • Loading branch information
gavro committed May 2, 2021
1 parent 81a2bc8 commit 760f273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bluem.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public function CreateIdentityRequest(
$entranceCode = ""
): IdentityBluemRequest
{
// todo: heck if this is needed?
// todo: Check if this is needed?
//$this->CreateIdentityTransactionID($debtorReference),

return new IdentityBluemRequest(
Expand Down
5 changes: 5 additions & 0 deletions src/Responses/TransactionBluemResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public function GetTransactionID()
return (isset($this->{$this->getParentXmlElement()}->TransactionID)) ? $this->{$this->getParentXmlElement()}->TransactionID . "" : null;
}

public function GetDebtorReference()
{
return (isset($this->{$this->getParentXmlElement()}->DebtorReference)) ? $this->{$this->getParentXmlElement()}->DebtorReference . "" : null;
}

protected function getParentXmlElement()
{
return static::$response_primary_key . "Response";
Expand Down

0 comments on commit 760f273

Please sign in to comment.