Skip to content

Commit

Permalink
deregister: add token type
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisk8 committed Nov 23, 2023
1 parent 8f4a813 commit 617605f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Json/JsonGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ protected function createDeregister($transaction){
/** @var Deregister $transaction */
return [
'referenceUuid' => $transaction->getReferenceUuid(),
'transactionToken' => $transaction->getTransactionToken()
'transactionToken' => $transaction->getTransactionToken(),
'tokenType' => $transaction->getTokenType(),
];
}

Expand Down
21 changes: 21 additions & 0 deletions src/Transaction/Deregister.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Deregister extends AbstractTransactionWithReference {
/** @var string */
protected $transactionToken;

/** @var string */
protected $tokenType;

/**
* @return string
Expand All @@ -32,4 +34,23 @@ public function setTransactionToken($transactionToken)
return $this;
}

/**
* @return string
*/
public function getTokenType()
{
return $this->tokenType;
}

/**
* @param string $tokenType
*
* @return Deregister
*/
public function setTokenType($tokenType)
{
$this->tokenType = $tokenType;
return $this;
}

}

0 comments on commit 617605f

Please sign in to comment.