Skip to content

Commit 617605f

Browse files
committed
deregister: add token type
1 parent 8f4a813 commit 617605f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/Json/JsonGenerator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ protected function createDeregister($transaction){
320320
/** @var Deregister $transaction */
321321
return [
322322
'referenceUuid' => $transaction->getReferenceUuid(),
323-
'transactionToken' => $transaction->getTransactionToken()
323+
'transactionToken' => $transaction->getTransactionToken(),
324+
'tokenType' => $transaction->getTokenType(),
324325
];
325326
}
326327

src/Transaction/Deregister.php

+21
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class Deregister extends AbstractTransactionWithReference {
1414
/** @var string */
1515
protected $transactionToken;
1616

17+
/** @var string */
18+
protected $tokenType;
1719

1820
/**
1921
* @return string
@@ -32,4 +34,23 @@ public function setTransactionToken($transactionToken)
3234
return $this;
3335
}
3436

37+
/**
38+
* @return string
39+
*/
40+
public function getTokenType()
41+
{
42+
return $this->tokenType;
43+
}
44+
45+
/**
46+
* @param string $tokenType
47+
*
48+
* @return Deregister
49+
*/
50+
public function setTokenType($tokenType)
51+
{
52+
$this->tokenType = $tokenType;
53+
return $this;
54+
}
55+
3556
}

0 commit comments

Comments
 (0)