Skip to content

Commit

Permalink
Merge branch 'param' into coreshop
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Mar 13, 2019
2 parents 808db40 + 057faa0 commit 19e0229
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
17 changes: 15 additions & 2 deletions src/Request/GenericRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class GenericRequest implements RequestDataContract
/** @var string|null */
private $sequencenumber;

/** @var string|null */
private $param;
/**
* @var SystemInfo
*/
Expand All @@ -43,23 +45,26 @@ class GenericRequest implements RequestDataContract
* @param string $request
* @param int $amount
* @param string $currency
* @param string|null $sequencenumber
* @param SystemInfo $info
* @param string|null $sequencenumber
* @param string|null $param
*/
public function __construct(
Config $config,
$request,
int $amount,
$currency,
SystemInfo $info,
$sequencenumber = null
$sequencenumber = null,
$param = null
) {
$this->config = $config;
$this->request = $request;
$this->amount = $amount;
$this->currency = $currency;
$this->sequencenumber = $sequencenumber;
$this->info = $info;
$this->param = $param;
}

/**
Expand Down Expand Up @@ -117,4 +122,12 @@ public function getInfo()
{
return $this->info;
}

/**
* @return string|null
*/
public function getParam()
{
return $this->param;
}
}
3 changes: 2 additions & 1 deletion src/Request/GenericRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public static function create($requestType, $data)
$basket['basketAmount'],
$basket['currency'],
$systemInfo,
$context['sequencenumber'] ?? null
$context['sequencenumber'] ?? null,
$data['param'] ?? null
);
}
}

0 comments on commit 19e0229

Please sign in to comment.