Skip to content

Commit

Permalink
Update Company creation - not mandatory fields
Browse files Browse the repository at this point in the history
Merge pull request #5 from shellrent/edit_create_company
  • Loading branch information
svdigital-development authored Jun 4, 2024
2 parents 900dc73 + 20dbd3a commit f3baea8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 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,15 +192,15 @@ public function getBody() {
'resellerUid' => $this->ResellerUid,
'organizationInput' => [
'name' => $this->Name,
'alias' => $this->Alias,
'taxId' => $this->TaxId,
'email' => $this->Email,
'phone' => $this->Phone,
'country' => $this->Country,
'city' => $this->City,
'street' => $this->Street,
'zipCode' => $this->ZipCode,
'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 f3baea8

Please sign in to comment.