Skip to content

Commit ed56c18

Browse files
[2026-06-17] - Sync content (27671498822) (#79)
> [!NOTE] > This PR copies content from the source repo. > Source repo commit [d2a4567](shoptet/cms4@d2a4567) **List of changes:** - Revert "Adjustment of obligation for country code parameters in adresses" Co-authored-by: pavofix <34368153+pavofix@users.noreply.github.com>
1 parent 13f1ffb commit ed56c18

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/Component/Entity/Address.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Address extends Entity
1212
protected ?string $district;
1313
protected ?string $additional;
1414
protected ?string $zip;
15-
protected string $countryCode;
15+
protected ?string $countryCode;
1616
protected ?string $regionName;
1717
protected ?string $regionShortcut;
1818

@@ -104,12 +104,12 @@ public function setZip(?string $zip): static
104104
return $this;
105105
}
106106

107-
public function getCountryCode(): string
107+
public function getCountryCode(): ?string
108108
{
109109
return $this->countryCode;
110110
}
111111

112-
public function setCountryCode(string $countryCode): static
112+
public function setCountryCode(?string $countryCode): static
113113
{
114114
$this->countryCode = $countryCode;
115115
return $this;

src/Component/Entity/BillingAddress.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BillingAddress extends Entity
1212
protected ?string $district;
1313
protected ?string $additional;
1414
protected ?string $zip;
15-
protected string $countryCode;
15+
protected ?string $countryCode;
1616
protected ?string $regionName;
1717
protected ?string $regionShortcut;
1818
protected ?string $companyId;
@@ -108,12 +108,12 @@ public function setZip(?string $zip): static
108108
return $this;
109109
}
110110

111-
public function getCountryCode(): string
111+
public function getCountryCode(): ?string
112112
{
113113
return $this->countryCode;
114114
}
115115

116-
public function setCountryCode(string $countryCode): static
116+
public function setCountryCode(?string $countryCode): static
117117
{
118118
$this->countryCode = $countryCode;
119119
return $this;

src/Component/Entity/DeliveryAddressCustomer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DeliveryAddressCustomer extends Entity
1313
protected ?string $district;
1414
protected ?string $additional;
1515
protected ?string $zip;
16-
protected string $countryCode;
16+
protected ?string $countryCode;
1717
protected ?string $regionName;
1818
protected ?string $regionShortcut;
1919
protected ?bool $isDefault;
@@ -117,12 +117,12 @@ public function setZip(?string $zip): static
117117
return $this;
118118
}
119119

120-
public function getCountryCode(): string
120+
public function getCountryCode(): ?string
121121
{
122122
return $this->countryCode;
123123
}
124124

125-
public function setCountryCode(string $countryCode): static
125+
public function setCountryCode(?string $countryCode): static
126126
{
127127
$this->countryCode = $countryCode;
128128
return $this;

src/Component/Entity/OrderCreate/BillingAddress.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BillingAddress extends Entity
1515
protected ?string $district;
1616
protected ?string $additional;
1717
protected ?string $zip;
18-
protected string $countryCode;
18+
protected ?string $countryCode;
1919
protected ?string $regionName;
2020
protected ?string $regionShortcut;
2121
protected ?string $companyId;
@@ -121,12 +121,12 @@ public function setZip(?string $zip): static
121121
return $this;
122122
}
123123

124-
public function getCountryCode(): string
124+
public function getCountryCode(): ?string
125125
{
126126
return $this->countryCode;
127127
}
128128

129-
public function setCountryCode(string $countryCode): static
129+
public function setCountryCode(?string $countryCode): static
130130
{
131131
$this->countryCode = $countryCode;
132132
return $this;

src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data/BillingAddress.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class BillingAddress extends Entity
1414
protected ?string $district;
1515
protected ?string $additional;
1616
protected ?string $zip;
17-
protected string $countryCode;
17+
protected ?string $countryCode;
1818
protected ?string $regionName;
1919
protected ?string $regionShortcut;
2020
protected ?string $companyId;
@@ -109,12 +109,12 @@ public function setZip(?string $zip): static
109109
return $this;
110110
}
111111

112-
public function getCountryCode(): string
112+
public function getCountryCode(): ?string
113113
{
114114
return $this->countryCode;
115115
}
116116

117-
public function setCountryCode(string $countryCode): static
117+
public function setCountryCode(?string $countryCode): static
118118
{
119119
$this->countryCode = $countryCode;
120120
return $this;

0 commit comments

Comments
 (0)