Skip to content

Commit

Permalink
[Fix] Fixed some endpoints with array_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
adeildo-jr committed Apr 26, 2024
1 parent eec3cd4 commit d95d587
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Clients/CelcoinBAASPIX.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
])
);
}

Expand All @@ -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,
]
])
);
}

Expand Down Expand Up @@ -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,
]
])
);
}

Expand Down

0 comments on commit d95d587

Please sign in to comment.