Skip to content

Commit dce757d

Browse files
authored
Merge pull request #98 from Jurjen12/v2.0.x
Added CodingText option to Shipment Entity
2 parents df56a6b + 45c1f01 commit dce757d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/Entity/Shipment.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ class Shipment extends AbstractEntity
193193
#[SerializableProperty(type: 'string')]
194194
protected ?string $ReturnReference = null;
195195

196+
/** @var string|null $ReturnReference */
197+
#[SerializableProperty(type: 'CodingText')]
198+
protected ?string $CodingText = null;
199+
200+
196201
/**
197202
* @throws InvalidArgumentException
198203
*/
@@ -236,6 +241,7 @@ public function __construct(
236241
?string $Remark = null,
237242
?string $ReturnBarcode = null,
238243
?string $ReturnReference = null,
244+
?string $CodingText = null,
239245
?string $StatusCode = null,
240246
?int $PhaseCode = null,
241247
?string $DateFrom = null,
@@ -277,6 +283,7 @@ public function __construct(
277283
$this->setRemark(Remark: $Remark);
278284
$this->setReturnBarcode(ReturnBarcode: $ReturnBarcode);
279285
$this->setReturnReference(ReturnReference: $ReturnReference);
286+
$this->setCodingText(CodingText: $CodingText);
280287
$this->setStatusCode(StatusCode: $StatusCode);
281288
$this->setPhaseCode(PhaseCode: $PhaseCode);
282289
$this->setDateFrom(DateFrom: $DateFrom);
@@ -945,6 +952,25 @@ public function setReturnReference(?string $ReturnReference): static
945952
return $this;
946953
}
947954

955+
/**
956+
* @return string|null
957+
*/
958+
public function getCodingText(): ?string
959+
{
960+
return $this->CodingText;
961+
}
962+
/**
963+
* @param string|null $CodingText
964+
*
965+
* @return static
966+
*/
967+
public function setCodingText(?string $CodingText): static
968+
{
969+
$this->CodingText = $CodingText;
970+
971+
return $this;
972+
}
973+
948974
/**
949975
* @return DateTimeInterface|null
950976
*/

0 commit comments

Comments
 (0)