Skip to content

Commit 2d97bf5

Browse files
[2026-05-18] - Sync content (26028618527) (#66)
> [!NOTE] > This PR copies content from the source repo. > Source repo commit [7b81502](shoptet/cms4@7b81502) **List of changes:** - Add support for new optional settings in documents `showRecipientEmail`, `showRecipientPhone`, `showRecipientDeliveryAddress`. Co-authored-by: marek-olejak <7371526+marek-olejak@users.noreply.github.com>
1 parent 83b45ab commit 2d97bf5

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

  • src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data

src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class DefaultSettings extends Entity
1818
protected ?bool $showBarcode;
1919
protected ?bool $showBillFullName;
2020
protected ?bool $showBillFullNameOfRecipient;
21+
protected ?bool $showRecipientEmail;
22+
protected ?bool $showRecipientPhone;
23+
protected ?bool $showRecipientDeliveryAddress;
2124

2225
public function getBillingMethodId(): ?int
2326
{
@@ -139,4 +142,37 @@ public function setShowBillFullNameOfRecipient(?bool $showBillFullNameOfRecipien
139142
$this->showBillFullNameOfRecipient = $showBillFullNameOfRecipient;
140143
return $this;
141144
}
145+
146+
public function getShowRecipientEmail(): ?bool
147+
{
148+
return $this->showRecipientEmail;
149+
}
150+
151+
public function setShowRecipientEmail(?bool $showRecipientEmail): static
152+
{
153+
$this->showRecipientEmail = $showRecipientEmail;
154+
return $this;
155+
}
156+
157+
public function getShowRecipientPhone(): ?bool
158+
{
159+
return $this->showRecipientPhone;
160+
}
161+
162+
public function setShowRecipientPhone(?bool $showRecipientPhone): static
163+
{
164+
$this->showRecipientPhone = $showRecipientPhone;
165+
return $this;
166+
}
167+
168+
public function getShowRecipientDeliveryAddress(): ?bool
169+
{
170+
return $this->showRecipientDeliveryAddress;
171+
}
172+
173+
public function setShowRecipientDeliveryAddress(?bool $showRecipientDeliveryAddress): static
174+
{
175+
$this->showRecipientDeliveryAddress = $showRecipientDeliveryAddress;
176+
return $this;
177+
}
142178
}

0 commit comments

Comments
 (0)