|
5 | 5 | class CreateCompanyPayload implements Payload { |
6 | 6 | private string $Name; |
7 | 7 |
|
8 | | - private ?string $Alias; |
| 8 | + private ?string $Alias = null; |
9 | 9 |
|
10 | | - private string $TaxId; |
| 10 | + private ?string $TaxId = null; |
11 | 11 |
|
12 | | - private string $Email; |
| 12 | + private ?string $Email = null; |
13 | 13 |
|
14 | | - private string $Phone; |
| 14 | + private ?string $Phone = null; |
15 | 15 |
|
16 | | - private int $Country; |
| 16 | + private ?int $Country = null; |
17 | 17 |
|
18 | | - private string $City; |
| 18 | + private ?string $City = null; |
19 | 19 |
|
20 | | - private string $Street; |
| 20 | + private ?string $Street = null; |
21 | 21 |
|
22 | | - private int $ZipCode; |
| 22 | + private ?int $ZipCode = null; |
23 | 23 |
|
24 | | - private int $CompanyId; |
| 24 | + private ?int $CompanyId = null; |
25 | 25 |
|
26 | 26 | private ?string $ResellerUid = null; |
27 | 27 |
|
@@ -192,15 +192,15 @@ public function getBody() { |
192 | 192 | 'resellerUid' => $this->ResellerUid, |
193 | 193 | 'organizationInput' => [ |
194 | 194 | 'name' => $this->Name, |
195 | | - 'alias' => $this->Alias, |
196 | | - 'taxId' => $this->TaxId, |
197 | | - 'email' => $this->Email, |
198 | | - 'phone' => $this->Phone, |
199 | | - 'country' => $this->Country, |
200 | | - 'city' => $this->City, |
201 | | - 'street' => $this->Street, |
202 | | - 'zipCode' => $this->ZipCode, |
203 | | - 'companyId' => $this->CompanyId, |
| 195 | + 'alias' => $this->Alias ?? null, |
| 196 | + 'taxId' => $this->TaxId ?? null, |
| 197 | + 'email' => $this->Email ?? null, |
| 198 | + 'phone' => $this->Phone ?? null, |
| 199 | + 'country' => $this->Country ?? null, |
| 200 | + 'city' => $this->City ?? null, |
| 201 | + 'street' => $this->Street ?? null, |
| 202 | + 'zipCode' => $this->ZipCode ?? null, |
| 203 | + 'companyId' => $this->CompanyId ?? null, |
204 | 204 | ], |
205 | 205 | 'subscriptionPlanUid' => $this->SubscriptionPlanUid, |
206 | 206 | 'permissions' => $this->Permissions, |
|
0 commit comments