Skip to content

Commit

Permalink
Update CreateCompanyPayload.php
Browse files Browse the repository at this point in the history
modifiche per creazione company
  • Loading branch information
PietroGhislieri98 committed May 22, 2024
1 parent c165923 commit 20dbd3a
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/Payloads/CreateCompanyPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
class CreateCompanyPayload implements Payload {
private string $Name;

private ?string $Alias;
private ?string $Alias = null;

private string $TaxId;
private ?string $TaxId = null;

private string $Email;
private ?string $Email = null;

private string $Phone;
private ?string $Phone = null;

private int $Country;
private ?int $Country = null;

private string $City;
private ?string $City = null;

private string $Street;
private ?string $Street = null;

private int $ZipCode;
private ?int $ZipCode = null;

private int $CompanyId;
private ?int $CompanyId = null;

private ?string $ResellerUid = null;

Expand Down Expand Up @@ -192,7 +192,15 @@ public function getBody() {
'resellerUid' => $this->ResellerUid,
'organizationInput' => [
'name' => $this->Name,
'companyId' => $this->CompanyId,
'alias' => $this->Alias ?? null,
'taxId' => $this->TaxId ?? null,
'email' => $this->Email ?? null,
'phone' => $this->Phone ?? null,
'country' => $this->Country ?? null,
'city' => $this->City ?? null,
'street' => $this->Street ?? null,
'zipCode' => $this->ZipCode ?? null,
'companyId' => $this->CompanyId ?? null,
],
'subscriptionPlanUid' => $this->SubscriptionPlanUid,
'permissions' => $this->Permissions,
Expand Down

0 comments on commit 20dbd3a

Please sign in to comment.