Skip to content

Commit 90bceaf

Browse files
committed
Added solution id
1 parent 229bdb2 commit 90bceaf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Message/AIMAbstractRequest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ public function getEndpoint()
100100
return $this->getDeveloperMode() ? $this->getDeveloperEndpoint() : $this->getLiveEndpoint();
101101
}
102102

103+
public function getSolutionId()
104+
{
105+
return $this->getParameter('solutionId');
106+
}
107+
108+
public function setSolutionId($value)
109+
{
110+
return $this->getSolutionId('solutionId', $value);
111+
}
112+
103113
/**
104114
* @return TransactionReference
105115
*/
@@ -220,6 +230,7 @@ public function getBaseData()
220230
$this->addAuthentication($data);
221231
$this->addReferenceId($data);
222232
$this->addTransactionType($data);
233+
$this->addSolutiuonId($data);
223234

224235
return $data;
225236
}
@@ -249,6 +260,15 @@ protected function addTransactionType(\SimpleXMLElement $data)
249260
$data->transactionRequest->transactionType = $this->action;
250261
}
251262

263+
protected function addSolutiuonId(\SimpleXMLElement $data)
264+
{
265+
$solutionId = $this->getSolutionId();
266+
267+
if (!empty($solutionId)) {
268+
$data->solution->id = $solutionId;
269+
}
270+
}
271+
252272
/**
253273
* Adds billing data to a partially filled request data object.
254274
*

0 commit comments

Comments
 (0)