diff --git a/src/CXml/Model/PriceBasisQuantity.php b/src/CXml/Model/PriceBasisQuantity.php
index 2100c93..244d6f1 100644
--- a/src/CXml/Model/PriceBasisQuantity.php
+++ b/src/CXml/Model/PriceBasisQuantity.php
@@ -20,7 +20,7 @@ public function __construct(
private string $unitOfMeasure,
#[Serializer\SerializedName('Description')]
#[Serializer\XmlElement(cdata: false)]
- private Description $description,
+ private MultilanguageString $description,
) {
}
@@ -39,7 +39,7 @@ public function getUnitOfMeasure(): string
return $this->unitOfMeasure;
}
- public function getDescription(): Description
+ public function getDescription(): MultilanguageString
{
return $this->description;
}
diff --git a/tests/CXmlTest/Model/PunchoutOrderMessageAdvancedPricingTest.php b/tests/CXmlTest/Model/PunchoutOrderMessageAdvancedPricingTest.php
index a2fb79b..9969610 100644
--- a/tests/CXmlTest/Model/PunchoutOrderMessageAdvancedPricingTest.php
+++ b/tests/CXmlTest/Model/PunchoutOrderMessageAdvancedPricingTest.php
@@ -12,6 +12,7 @@
use CXml\Model\Message\PunchOutOrderMessage;
use CXml\Model\Message\PunchOutOrderMessageHeader;
use CXml\Model\MoneyWrapper;
+use CXml\Model\MultilanguageString;
use CXml\Model\PayloadIdentity;
use CXml\Model\PriceBasisQuantity;
use CXml\Payload\PayloadIdentityFactoryInterface;
@@ -32,7 +33,7 @@ protected function setUp(): void
$this->dtdValidator = new DtdValidator(__DIR__ . '/../../metadata/cxml/dtd/1.2.050/');
}
- public function testMinimumExample(): void
+ public function testMinimumExampleAdvPricing(): void
{
$from = new Credential(
'DUNS',
@@ -61,9 +62,9 @@ public function testMinimumExample(): void
[
new Classification('UNSPSC', 'ean1234'),
],
- new PriceBasisQuantity(2, 0.5, 'BOX', Description::createWithShortName('1 Box is 2 EA and the unit price is for 2', null, 'en')),
- ),
- ),
+ new PriceBasisQuantity(2, 0.5, 'BOX', new MultilanguageString('1 Box is 2 EA and the unit price is for 2', null, 'en'))
+ )
+ )
);
$cxml = Builder::create('Workchairs cXML Application', 'en-US', $this)
diff --git a/tests/metadata/cxml/samples/PunchoutOrderMessageAdvancedPricing.xml b/tests/metadata/cxml/samples/PunchoutOrderMessageAdvancedPricing.xml
index e94143a..90b8ed9 100644
--- a/tests/metadata/cxml/samples/PunchoutOrderMessageAdvancedPricing.xml
+++ b/tests/metadata/cxml/samples/PunchoutOrderMessageAdvancedPricing.xml
@@ -42,9 +42,7 @@
EA
BOX
-
- 1 Box is 2 EA and the unit price is for 2
-
+ 1 Box is 2 EA and the unit price is for 2
ean1234