Skip to content

Commit db27cef

Browse files
feat: adicionando campo obrigatorio CompanyName
1 parent 248a8e9 commit db27cef

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/Cielo/API30/Ecommerce/SubEstablishment.php

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class SubEstablishment implements \JsonSerializable
2020
private $postalCode;
2121
private $countryCode;
2222
private $phoneNumber;
23+
private $companyName;
2324

2425
public function __construct()
2526
{
@@ -33,6 +34,7 @@ public function __construct()
3334
$this->countryCode = null;
3435
$this->postalCode = null;
3536
$this->phoneNumber = null;
37+
$this->companyName = null;
3638
}
3739

3840
/**
@@ -49,14 +51,14 @@ public function populate(\stdClass $data)
4951
$this->countryCode = $data->CountryCode ?? null;
5052
$this->postalCode = $data->PostalCode ?? null;
5153
$this->phoneNumber = $data->PhoneNumber ?? null;
54+
$this->companyName = $data->CompanyName ?? null;
5255
}
5356

5457
public function jsonSerialize()
5558
{
5659
return get_object_vars($this);
5760
}
5861

59-
6062
/**
6163
* Get the value of establishmentCode
6264
*/
@@ -236,4 +238,24 @@ public function setPhoneNumber($phoneNumber)
236238

237239
return $this;
238240
}
241+
242+
/**
243+
* Get the value of companyName
244+
*/
245+
public function getCompanyName()
246+
{
247+
return $this->companyName;
248+
}
249+
250+
/**
251+
* Set the value of companyName
252+
*
253+
* @return self
254+
*/
255+
public function setCompanyName($companyName)
256+
{
257+
$this->companyName = $companyName;
258+
259+
return $this;
260+
}
239261
}

0 commit comments

Comments
 (0)