-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40c41cb
commit 4e832af
Showing
9 changed files
with
79 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
parameters: | ||
checkMissingIterableValueType: false | ||
level: max | ||
paths: | ||
- src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
// Copyright (C) 2021 Ivan Stasiuk <brokeyourbike@gmail.com>. | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
namespace BrokeYourBike\Paystack; | ||
|
||
use Spatie\DataTransferObject\Attributes\MapFrom; | ||
use BrokeYourBike\DataTransferObject\JsonResponse; | ||
|
||
/** | ||
* @author Ivan Stasiuk <brokeyourbike@gmail.com> | ||
*/ | ||
class ResolveAccountNumberResponse extends JsonResponse | ||
{ | ||
public bool $status; | ||
public string $message; | ||
|
||
#[MapFrom('data.account_number')] | ||
public ?string $accountNumber; | ||
|
||
#[MapFrom('data.account_name')] | ||
public ?string $accountName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
// Copyright (C) 2021 Ivan Stasiuk <brokeyourbike@gmail.com>. | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
namespace BrokeYourBike\Paystack\Tests; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use BrokeYourBike\Paystack\ResolveAccountNumberResponse; | ||
|
||
/** | ||
* @author Ivan Stasiuk <brokeyourbike@gmail.com> | ||
*/ | ||
class ResolveAccountNumberResponseTest extends TestCase | ||
{ | ||
/** @test */ | ||
public function it_extends_json_response() | ||
{ | ||
$parent = get_parent_class(ResolveAccountNumberResponse::class); | ||
|
||
$this->assertSame(\BrokeYourBike\DataTransferObject\JsonResponse::class, $parent); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters