Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: adicionando campo obrigatorio CompanyName
  • Loading branch information
lucasmilhoranca-ipag committed May 19, 2025
commit db27ceffd85a0cd47e1892c7c110ea99d8e24e7e
24 changes: 23 additions & 1 deletion src/Cielo/API30/Ecommerce/SubEstablishment.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class SubEstablishment implements \JsonSerializable
private $postalCode;
private $countryCode;
private $phoneNumber;
private $companyName;

public function __construct()
{
Expand All @@ -33,6 +34,7 @@ public function __construct()
$this->countryCode = null;
$this->postalCode = null;
$this->phoneNumber = null;
$this->companyName = null;
}

/**
Expand All @@ -49,14 +51,14 @@ public function populate(\stdClass $data)
$this->countryCode = $data->CountryCode ?? null;
$this->postalCode = $data->PostalCode ?? null;
$this->phoneNumber = $data->PhoneNumber ?? null;
$this->companyName = $data->CompanyName ?? null;
}

public function jsonSerialize()
{
return get_object_vars($this);
}


/**
* Get the value of establishmentCode
*/
Expand Down Expand Up @@ -236,4 +238,24 @@ public function setPhoneNumber($phoneNumber)

return $this;
}

/**
* Get the value of companyName
*/
public function getCompanyName()
{
return $this->companyName;
}

/**
* Set the value of companyName
*
* @return self
*/
public function setCompanyName($companyName)
{
$this->companyName = $companyName;

return $this;
}
}