Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
allsecure-pay authored Aug 20, 2019
1 parent 24d83cc commit f251895
Show file tree
Hide file tree
Showing 57 changed files with 225 additions and 225 deletions.
2 changes: 1 addition & 1 deletion exchange/client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public function completePreauthorize(Preauthorize $transactionData) {
/**
* void a previously preauthorized transaction
*
* @param \CloudPay\Client\Transaction\VoidTransaction $transactionData
* @param \Exchange\Client\Transaction\VoidTransaction $transactionData
*
* @return Result
* @throws ClientException
Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/CreditCardCustomer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data;
namespace Exchange\Client\Data;

/**
* Specialized class to represent a customer with credit card data.
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class CreditCardCustomer extends Customer {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Customer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data;
namespace Exchange\Client\Data;

/**
* Represents a generic customer without any specific data.
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class Customer extends Data {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Data.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data;
namespace Exchange\Client\Data;

/**
* Class Data
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
abstract class Data {

Expand Down
6 changes: 3 additions & 3 deletions exchange/client/Data/IbanCustomer.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace CloudPay\Client\Data;
namespace Exchange\Client\Data;


use CloudPay\Client\Exception\InvalidValueException;
use Exchange\Client\Exception\InvalidValueException;

/**
* Class IbanCustomer
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class IbanCustomer extends Customer {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Item.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data;
namespace Exchange\Client\Data;

/**
* Class Item
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class Item extends Data {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Request.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data;
namespace Exchange\Client\Data;

/**
* Class Request
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class Request {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Result/CreditcardData.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data\Result;
namespace Exchange\Client\Data\Result;

/**
* Represents a credit card.
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class CreditcardData extends ResultData {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Result/IbanData.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data\Result;
namespace Exchange\Client\Data\Result;

/**
* Represents a credit card.
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*/
class IbanData extends ResultData {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Result/PhoneData.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data\Result;
namespace Exchange\Client\Data\Result;

/**
* Class PhoneData
*
* @package CloudPay\Client\Data\Result
* @package Exchange\Client\Data\Result
*/
class PhoneData extends ResultData {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Result/ResultData.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace CloudPay\Client\Data\Result;
namespace Exchange\Client\Data\Result;

/**
* Class ResultData
*
* @package CloudPay\Client\Data\Result
* @package Exchange\Client\Data\Result
*/
abstract class ResultData {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Data/Result/WalletData.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Data\Result;
namespace Exchange\Client\Data\Result;

/**
* Class WalletData
*
* @package CloudPay\Client\Data
* @package Exchange\Client\Data
*
*/
class WalletData extends ResultData {
Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Exception/ClientException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Exception;
namespace Exchange\Client\Exception;

/**
* Class ClientException
*
* @package CloudPay\Client\Exception
* @package Exchange\Client\Exception
*/
class ClientException extends \Exception {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Exception/InvalidValueException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Exception;
namespace Exchange\Client\Exception;

/**
* Class InvalidValueException
*
* @package CloudPay\Client\Exception
* @package Exchange\Client\Exception
*/
class InvalidValueException extends ClientException {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Exception/RateLimitException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Exception;
namespace Exchange\Client\Exception;

/**
* Class RateLimitException
*
* @package CloudPay\Client\Exception
* @package Exchange\Client\Exception
*/
class RateLimitException extends \Exception {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Exception/TimeoutException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Exception;
namespace Exchange\Client\Exception;

/**
* Class TimeoutException
*
* @package CloudPay\Client\Exception
* @package Exchange\Client\Exception
*/
class TimeoutException extends ClientException {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Exception/TypeException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Exception;
namespace Exchange\Client\Exception;

/**
* Class TypeException
*
* @package CloudPay\Client\Exception
* @package Exchange\Client\Exception
*/
class TypeException extends ClientException {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Http/ClientInterface.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace CloudPay\Client\Http;
namespace Exchange\Client\Http;

/**
* Interface ClientInterface
*
* @package CloudPay\Client\Http
* @package Exchange\Client\Http
*/
interface ClientInterface {

Expand Down
6 changes: 3 additions & 3 deletions exchange/client/Http/CurlClient.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace CloudPay\Client\Http;
namespace Exchange\Client\Http;

use CloudPay\Client\Http\Exception\ClientException;
use Exchange\Client\Http\Exception\ClientException;

/**
* Class CurlClient
*
* @package CloudPay\Client\Http
* @package Exchange\Client\Http
*/
class CurlClient implements ClientInterface {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Http/CurlExec.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace CloudPay\Client\Http;
namespace Exchange\Client\Http;

/**
* Class CurlExec
*
* @package CloudPay\Client\Http
* @package Exchange\Client\Http
*/
class CurlExec {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Http/Exception/ClientException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace CloudPay\Client\Http\Exception;
namespace Exchange\Client\Http\Exception;

/**
* Class ClientException
*
* @package CloudPay\Client\Http\Exception
* @package Exchange\Client\Http\Exception
*/
class ClientException extends \Exception {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Http/Exception/ResponseException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Http\Exception;
namespace Exchange\Client\Http\Exception;

/**
* Class ResponseException
*
* @package CloudPay\Client\Http\Exception
* @package Exchange\Client\Http\Exception
*/
class ResponseException extends ClientException
{
Expand Down
6 changes: 3 additions & 3 deletions exchange/client/Http/Response.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace CloudPay\Client\Http;
namespace Exchange\Client\Http;

use CloudPay\Client\Http\Exception\ResponseException;
use Exchange\Client\Http\Exception\ResponseException;

/**
* Class Response
*
* @package CloudPay\Client\Http
* @package Exchange\Client\Http
*/
class Response implements ResponseInterface {

Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Http/ResponseInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Http;
namespace Exchange\Client\Http;

/**
* Interface ResponseInterface
*
* @package CloudPay\Client\Http
* @package Exchange\Client\Http
*/
interface ResponseInterface {

Expand Down
14 changes: 7 additions & 7 deletions exchange/client/Json/DataObject.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Json;
namespace Exchange\Client\Json;

/**
* Class DataObject
*
* @package CloudPay\Client\Json
* @package Exchange\Client\Json
*/
class DataObject implements \ArrayAccess, \JsonSerializable {

Expand All @@ -15,11 +15,11 @@ class DataObject implements \ArrayAccess, \JsonSerializable {
protected $_data = array();

protected static $_typeMap = array(
'customerData' => \CloudPay\Client\CustomerProfile\CustomerData::class,
'paymentInstrument' => \CloudPay\Client\CustomerProfile\PaymentInstrument::class,
'paymentData.card' => \CloudPay\Client\CustomerProfile\PaymentData\CardData::class,
'paymentData.iban' => \CloudPay\Client\CustomerProfile\PaymentData\IbanData::class,
'paymentData.wallet' => \CloudPay\Client\CustomerProfile\PaymentData\WalletData::class,
'customerData' => \Exchange\Client\CustomerProfile\CustomerData::class,
'paymentInstrument' => \Exchange\Client\CustomerProfile\PaymentInstrument::class,
'paymentData.card' => \Exchange\Client\CustomerProfile\PaymentData\CardData::class,
'paymentData.iban' => \Exchange\Client\CustomerProfile\PaymentData\IbanData::class,
'paymentData.wallet' => \Exchange\Client\CustomerProfile\PaymentData\WalletData::class,
);

/**
Expand Down
4 changes: 2 additions & 2 deletions exchange/client/Json/ErrorResponse.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CloudPay\Client\Json;
namespace Exchange\Client\Json;

/**
* Class ErrorResponse
*
* @package CloudPay\Client\Json
* @package Exchange\Client\Json
*
* @property string $errorMessage
* @property int $errorCode
Expand Down
Loading

0 comments on commit f251895

Please sign in to comment.