diff --git a/src/Extend/Item.php b/src/Extend/Item.php index 39b4783..45f7665 100644 --- a/src/Extend/Item.php +++ b/src/Extend/Item.php @@ -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); } } diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index 4b15cc2..049371c 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -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; } }