Skip to content

Commit

Permalink
Merge pull request #73 from wedevBr/fix/ListPixParticipantsBaas
Browse files Browse the repository at this point in the history
[Fix] Fixed some endpoints with array_filter
  • Loading branch information
adeildo-jr authored Apr 26, 2024
2 parents eec3cd4 + d95d587 commit d79eec2
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 d79eec2

Please sign in to comment.