From 60b9d7498df4bff38d05f41d9d4939c47cc3d6b4 Mon Sep 17 00:00:00 2001 From: Netto Passaro Date: Fri, 13 Aug 2021 18:30:09 -0300 Subject: [PATCH 1/2] Adicionando o campo authorizationCode na classe Brand --- src/Rede/Brand.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Rede/Brand.php b/src/Rede/Brand.php index 97caeb5..5f51b83 100644 --- a/src/Rede/Brand.php +++ b/src/Rede/Brand.php @@ -21,6 +21,11 @@ class Brand */ private $returnMessage; + /** + * @var string + */ + private $authorizationCode; + /** * @return string */ @@ -78,5 +83,15 @@ public function setReturnMessage(string $returnMessage): Brand return $this; } + /** + * @param string $authorizationCode + * + * @return Brand + */ + public function setAuthorizationCode(string $authorizationCode): Brand + { + $this->authorizationCode = $authorizationCode; + return $this; + } -} \ No newline at end of file +} From f2461353de01ab583caed3a2a102aa2e1a19bbd4 Mon Sep 17 00:00:00 2001 From: Netto Passaro Date: Fri, 13 Aug 2021 18:57:08 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Implementa=C3=A7=C3=A3o=20do=20m=C3=A9todo?= =?UTF-8?q?=20para=20retornar=20o=20c=C3=B3digo=20de=20autoriza=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rede/Brand.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Rede/Brand.php b/src/Rede/Brand.php index 5f51b83..3dfdc08 100644 --- a/src/Rede/Brand.php +++ b/src/Rede/Brand.php @@ -94,4 +94,12 @@ public function setAuthorizationCode(string $authorizationCode): Brand return $this; } + /** + * @return string + */ + public function getAuthorizationCode(): string + { + return $this->authorizationCode; + } + }