Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nuradiyana committed Sep 6, 2021
1 parent 09dcdd8 commit 246207e
Show file tree
Hide file tree
Showing 54 changed files with 229 additions and 233 deletions.
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,17 @@
},
"autoload": {
"psr-4": {
"Ziswapp\\Payment\\": "src/"
"FromHome\\Payment\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Ziswapp\\Payment\\Tests\\": "tests/"
"FromHome\\Payment\\Tests\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-main": "1.0.x-dev"
},
"laravel": {
"providers": [
]
}
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/CardInputFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Input\ChargeCardInput;
use FromHome\Payment\Input\ChargeCardInput;

interface CardInputFactoryInterface extends InputInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/CardOutputFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Output\ChargeCardOutput;
use FromHome\Payment\Output\ChargeCardOutput;

interface CardOutputFactoryInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/CardPaymentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Input\ChargeCardInput;
use FromHome\Payment\Input\ChargeCardInput;

interface CardPaymentInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/CredentialsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

interface CredentialsInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/InputInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

interface InputInterface
{
Expand Down
12 changes: 6 additions & 6 deletions src/Contracts/OutputFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Output\CStoreOutput;
use Ziswapp\Payment\Output\EWalletOutput;
use Ziswapp\Payment\Output\CheckStatusOutput;
use Ziswapp\Payment\Output\CardBinFilterOutput;
use Ziswapp\Payment\Output\VirtualAccountOutput;
use FromHome\Payment\Output\CStoreOutput;
use FromHome\Payment\Output\EWalletOutput;
use FromHome\Payment\Output\CheckStatusOutput;
use FromHome\Payment\Output\CardBinFilterOutput;
use FromHome\Payment\Output\VirtualAccountOutput;

interface OutputFactoryInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Contracts/PaymentInputFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Input\CStoreTransactionInput;
use Ziswapp\Payment\Input\EWalletTransactionInput;
use Ziswapp\Payment\Input\VirtualAccountTransactionInput;
use FromHome\Payment\Input\CStoreTransactionInput;
use FromHome\Payment\Input\EWalletTransactionInput;
use FromHome\Payment\Input\VirtualAccountTransactionInput;

interface PaymentInputFactoryInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Contracts/PaymentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Input\CStoreTransactionInput;
use Ziswapp\Payment\Input\EWalletTransactionInput;
use Ziswapp\Payment\Input\VirtualAccountTransactionInput;
use FromHome\Payment\Input\CStoreTransactionInput;
use FromHome\Payment\Input\EWalletTransactionInput;
use FromHome\Payment\Input\VirtualAccountTransactionInput;

interface PaymentInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Contracts/PaymentOperationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Input\CheckStatusTransactionInput;
use Ziswapp\Payment\Input\CancelPaymentTransactionInput;
use FromHome\Payment\Input\CheckStatusTransactionInput;
use FromHome\Payment\Input\CancelPaymentTransactionInput;

interface PaymentOperationInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/UtilOperationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Contracts;
namespace FromHome\Payment\Contracts;

use Ziswapp\Payment\Input\CardBinFilterInput;
use FromHome\Payment\Input\CardBinFilterInput;

interface UtilOperationInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment;
namespace FromHome\Payment;

use Ziswapp\Payment\Contracts\CredentialsInterface;
use FromHome\Payment\Contracts\CredentialsInterface;

final class Credentials implements CredentialsInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/CStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Enum;
namespace FromHome\Payment\Enum;

use MyCLabs\Enum\Enum;

Expand Down
2 changes: 1 addition & 1 deletion src/Enum/EWallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Enum;
namespace FromHome\Payment\Enum;

use MyCLabs\Enum\Enum;

Expand Down
2 changes: 1 addition & 1 deletion src/Enum/VirtualAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Enum;
namespace FromHome\Payment\Enum;

use MyCLabs\Enum\Enum;

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/MethodNotImplementedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Exceptions;
namespace FromHome\Payment\Exceptions;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/PaymentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Exceptions;
namespace FromHome\Payment\Exceptions;

use Symfony\Contracts\HttpClient\ResponseInterface;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
Expand Down
8 changes: 4 additions & 4 deletions src/Input/CStoreTransactionInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\CStore;
use Ziswapp\Payment\Enum\CStore as Enum;
use Ziswapp\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\CStore;
use FromHome\Payment\Enum\CStore as Enum;
use FromHome\Payment\ValueObject\Transaction;

final class CStoreTransactionInput extends TransactionInput
{
Expand Down
4 changes: 2 additions & 2 deletions src/Input/CancelPaymentTransactionInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\Transaction;

final class CancelPaymentTransactionInput extends TransactionInput
{
Expand Down
2 changes: 1 addition & 1 deletion src/Input/CardBinFilterInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

final class CardBinFilterInput
{
Expand Down
4 changes: 2 additions & 2 deletions src/Input/ChargeCardInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\Transaction;

final class ChargeCardInput extends TransactionInput
{
Expand Down
4 changes: 2 additions & 2 deletions src/Input/CheckStatusTransactionInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\Transaction;

final class CheckStatusTransactionInput extends TransactionInput
{
Expand Down
8 changes: 4 additions & 4 deletions src/Input/EWalletTransactionInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\EWallet;
use Ziswapp\Payment\Enum\EWallet as Enum;
use Ziswapp\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\EWallet;
use FromHome\Payment\Enum\EWallet as Enum;
use FromHome\Payment\ValueObject\Transaction;

final class EWalletTransactionInput extends TransactionInput
{
Expand Down
4 changes: 2 additions & 2 deletions src/Input/TransactionInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\Transaction;

abstract class TransactionInput
{
Expand Down
8 changes: 4 additions & 4 deletions src/Input/VirtualAccountTransactionInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Input;
namespace FromHome\Payment\Input;

use Ziswapp\Payment\ValueObject\Transaction;
use Ziswapp\Payment\ValueObject\VirtualAccount;
use Ziswapp\Payment\Enum\VirtualAccount as Enum;
use FromHome\Payment\ValueObject\Transaction;
use FromHome\Payment\ValueObject\VirtualAccount;
use FromHome\Payment\Enum\VirtualAccount as Enum;

final class VirtualAccountTransactionInput extends TransactionInput
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/CStoreOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

final class CStoreOutput extends TransactionOutput
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/CardBinFilterOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

final class CardBinFilterOutput extends Output
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/ChargeCardOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

use DateTimeInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Output/CheckStatusOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

final class CheckStatusOutput extends TransactionOutput
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/EWalletOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

final class EWalletOutput extends TransactionOutput
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

abstract class Output
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/TransactionOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

abstract class TransactionOutput extends Output
{
Expand Down
2 changes: 1 addition & 1 deletion src/Output/VirtualAccountOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Ziswapp\Payment\Output;
namespace FromHome\Payment\Output;

final class VirtualAccountOutput extends TransactionOutput
{
Expand Down
Loading

0 comments on commit 246207e

Please sign in to comment.