Skip to content

Commit

Permalink
Issue thephpleague#107 - Renamed ProductRecord to ProductCode
Browse files Browse the repository at this point in the history
  • Loading branch information
harnasz committed Sep 17, 2018
1 parent 20736ab commit d4c47f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Extend/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ public function setVat($value)
* This is not available for BasketXML and only Basket Integration. See docs for more info.
* {@inheritDoc}
*/
public function getProductRecord()
public function getProductCode()
{
return $this->getParameter('productRecord');
return $this->getParameter('productCode');
}

/**
* {@inheritDoc}
*/
public function setProductRecord($value)
public function setProductCode($value)
{
return $this->setParameter('productRecord', $value);
return $this->setParameter('productCode', $value);
}
}
4 changes: 2 additions & 2 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ protected function getItemDataNonXML()
* by linking the product record to a specific transaction.
* This is not available for BasketXML and only Basket Integration. See docs for more info.
*/
if (!is_null($basketItem->getProductRecord())) {
$description = '[' . $basketItem->getProductRecord() . ']' . $description;
if (!is_null($basketItem->getProductCode())) {
$description = '[' . $basketItem->getProductCode() . ']' . $description;
}
}

Expand Down

0 comments on commit d4c47f6

Please sign in to comment.