Skip to content

Commit

Permalink
Merge pull request #76 from wedevBr/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
adeildo-jr authored Aug 29, 2024
2 parents a7d8b3f + 585e0f4 commit 080b982
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Celcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use WeDevBr\Celcoin\Clients\CelcoinDDAUser;
use WeDevBr\Celcoin\Clients\CelcoinDDAWebhooks;
use WeDevBr\Celcoin\Clients\CelcoinElectronicTransactions;
use WeDevBr\Celcoin\Clients\CelcoinInternationalTopups;
use WeDevBr\Celcoin\Clients\CelcoinKyc;
use WeDevBr\Celcoin\Clients\CelcoinPIXCOB;
use WeDevBr\Celcoin\Clients\CelcoinPIXCOBV;
Expand Down Expand Up @@ -169,4 +170,14 @@ public static function clientBAASBillet(): CelcoinBAASBillet
{
return new CelcoinBAASBillet();
}

public static function clientBAASWebhook(): CelcoinBAASWebhooks
{
return new CelcoinBAASWebhooks();
}

public static function clientInternationalTopup(): CelcoinInternationalTopups
{
return new CelcoinInternationalTopups();
}
}
4 changes: 4 additions & 0 deletions src/Facades/CelcoinFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
* @uses Celcoin::clientPIXReverse
* @uses Celcoin::clientPixWebhooks
* @uses Celcoin::clientKyc
* @uses Celcoin::clientBAASWebhook
* @uses Celcoin::clientInternationalTopup
* @uses Celcoin::clientBAASBillPayment
* @uses Celcoin::clientBAASBillet
*/
class CelcoinFacade extends Facade
{
Expand Down
6 changes: 6 additions & 0 deletions tests/Feature/CelcoinClientInstancesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,10 @@ public function testSuccessCreateBaasBillPayment()
$instance = Celcoin::clientBAASBillPayment();
$this->assertInstanceOf(CelcoinBAASBillPayment::class, $instance);
}

public function testSuccessCreteBaasWebhooks()
{
$instance = Celcoin::clientBAASWebhooks();
$this->assertInstanceOf(CelcoinBAASWebhooks::class, $instance);
}
}

0 comments on commit 080b982

Please sign in to comment.