Skip to content

Commit a036940

Browse files
committed
add subtype to callback & status result
1 parent bc91f2b commit a036940

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

src/Callback/Result.php

+24
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ class Result {
8787
*/
8888
protected $transactionType;
8989

90+
/**
91+
* @var string
92+
*/
93+
protected $transactionSubType;
94+
9095
/**
9196
* @var string
9297
*/
@@ -422,6 +427,25 @@ public function setTransactionType($transactionType) {
422427
return $this;
423428
}
424429

430+
/**
431+
* @return string
432+
*/
433+
public function getTransactionSubType()
434+
{
435+
return $this->transactionSubType;
436+
}
437+
438+
/**
439+
* @param string $transactionSubType
440+
*
441+
* @return $this
442+
*/
443+
public function setTransactionSubType($transactionSubType)
444+
{
445+
$this->transactionSubType = $transactionSubType;
446+
return $this;
447+
}
448+
425449
/**
426450
* @return string
427451
*/

src/Json/JsonParser.php

+8
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ public function parseStatusResult($jsonString) {
179179
$result->setTransactionSplits($splits);
180180
}
181181

182+
if (isset($json['transactionSubType'])) {
183+
$result->setTransactionSubType($json['transactionSubType']);
184+
}
185+
182186
return $result;
183187
}
184188

@@ -296,6 +300,10 @@ public function parseCallback($jsonString){
296300
$result->setCustomerProfileData($customerProfileData);
297301
}
298302

303+
if (isset($json['transactionSubType'])) {
304+
$result->setTransactionSubType($json['transactionSubType']);
305+
}
306+
299307
return $result;
300308
}
301309

src/StatusApi/StatusResult.php

+24
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ class StatusResult {
8686
*/
8787
protected $transactionType;
8888

89+
/**
90+
* @var string
91+
*/
92+
protected $transactionSubType;
93+
8994
/**
9095
* @var string
9196
*/
@@ -455,6 +460,25 @@ public function setTransactionType($transactionType) {
455460
$this->transactionType = $transactionType;
456461
}
457462

463+
/**
464+
* @return string
465+
*/
466+
public function getTransactionSubType()
467+
{
468+
return $this->transactionSubType;
469+
}
470+
471+
/**
472+
* @param string $transactionSubType
473+
*
474+
* @return $this
475+
*/
476+
public function setTransactionSubType($transactionSubType)
477+
{
478+
$this->transactionSubType = $transactionSubType;
479+
return $this;
480+
}
481+
458482
/**
459483
* @return string
460484
*/

0 commit comments

Comments
 (0)