Skip to content

Commit e61aee7

Browse files
committed
request does not have a status
1 parent bb705ab commit e61aee7

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/CXml/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function build(?string $deploymentMode = null): CXml
206206
/** @noinspection PhpParamsInspection */
207207
$cXml = CXml::forRequest(
208208
$this->payloadIdentityFactory->newPayloadIdentity(),
209-
new Request($this->payload, $this->status, null, $deploymentMode),
209+
new Request($this->payload, null, $deploymentMode),
210210
$this->buildHeader(),
211211
$this->locale,
212212
);

src/CXml/Model/CXml.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public function __toString(): string
7474

7575
public function getStatus(): ?Status
7676
{
77-
if ($this->request instanceof Request) {
78-
return $this->request->status;
79-
}
80-
8177
if ($this->message instanceof Message) {
8278
return $this->message->status;
8379
}

src/CXml/Model/Request/Request.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Assert\Assertion;
88
use CXml\Model\CXml;
9-
use CXml\Model\Status;
109
use JMS\Serializer\Annotation as Serializer;
1110

1211
#[Serializer\AccessorOrder(order: 'custom', custom: ['buyerCookie', 'extrinsics', 'browserFormPost', 'supplierSetup', 'shipTo', 'selectedItem', 'itemOut'])]
@@ -15,8 +14,6 @@
1514
public function __construct(
1615
#[Serializer\Exclude]
1716
public RequestPayloadInterface $payload,
18-
#[Serializer\SerializedName('Status')]
19-
public ?Status $status = null,
2017
#[Serializer\XmlAttribute]
2118
#[Serializer\SerializedName('Id')]
2219
public ?string $id = null,

0 commit comments

Comments
 (0)