From d95d587483f1a49eb26d4463864d894e512ace6d Mon Sep 17 00:00:00 2001 From: Adeildo Amorim Date: Fri, 26 Apr 2024 18:35:57 -0300 Subject: [PATCH] [Fix] Fixed some endpoints with array_filter --- src/Clients/CelcoinBAASPIX.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Clients/CelcoinBAASPIX.php b/src/Clients/CelcoinBAASPIX.php index a7f844a..9dd92bf 100644 --- a/src/Clients/CelcoinBAASPIX.php +++ b/src/Clients/CelcoinBAASPIX.php @@ -68,10 +68,10 @@ public function getParticipant(?string $ISPB = null, ?string $name = null) { return $this->get( self::GET_PARTICIPANT_ENDPOINT, - [ + array_filter([ 'ISPB' => $ISPB, 'Name' => $name, - ] + ]) ); } @@ -89,11 +89,11 @@ public function statusPix(?string $id = null, ?string $clientCode = null, ?strin { return $this->get( self::STATUS_PIX_ENDPOINT, - [ + array_filter([ 'id' => $id, 'clientCode' => $clientCode, 'endToEndId' => $endToEndId, - ] + ]) ); } @@ -138,11 +138,11 @@ public function statusRefundPix(?string $id = null, ?string $clientCode = null, { return $this->get( self::STATUS_REFUND_PIX_ENDPOINT, - [ + array_filter([ 'id' => $id, 'clientCode' => $clientCode, 'returnIdentification' => $returnIdentification, - ] + ]) ); }