Skip to content

Commit

Permalink
refs #45984 validator
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan202 committed Apr 24, 2024
1 parent 3f4add4 commit 4b675c7
Show file tree
Hide file tree
Showing 138 changed files with 507 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/ApiPaypalPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

if (!defined('_PS_VERSION_')) {
exit;
}

class ApiPaypalPlus
{
/* * ******************** CONNECT METHODS ******************** */
Expand Down
4 changes: 4 additions & 0 deletions api/CallApiPaypalPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
*/
require_once _PS_MODULE_DIR_ . 'paypal/api/ApiPaypalPlus.php';

if (!defined('_PS_VERSION_')) {
exit;
}

define('URL_PPP_CREATE_TOKEN', '/v1/oauth2/token');
define('URL_PPP_CREATE_PAYMENT', '/v1/payments/payment');
define('URL_PPP_LOOK_UP', '/v1/payments/payment/');
Expand Down
5 changes: 5 additions & 0 deletions api/paypal_connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

if (!defined('_PS_VERSION_')) {
exit;
}

class PayPalConnect
{
private $_logs = [];
Expand Down
4 changes: 4 additions & 0 deletions api/paypal_lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

define('PAYPAL_API_VERSION', '106.0');

if (!defined('_PS_VERSION_')) {
exit;
}

class PaypalLib
{
private $enable_log = false;
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
*/
require_once 'autoload.php';

if (!defined('_PS_VERSION_')) {
exit;
}

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
throw new Braintree_Exception('PHP version >= 5.4.0 required');
}
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/AccountUpdaterDailyReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Creates an instance of AccountUpdaterDailyReport
*
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/AddOn.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
class AddOn extends Modification
{
/**
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/AddOnGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
class AddOnGateway
{
/**
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree Address module
* PHP Version 5
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/AddressGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

use InvalidArgumentException;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree AddressGateway module
* PHP Version 5
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/AmexExpressCheckoutCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree AmexExpressCheckoutCard module
* Creates and manages Braintree Amex Express Checkout cards
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/AndroidPayCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree AndroidPayCard module
* Creates and manages Braintree Android Pay cards
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/ApplePayCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree ApplePayCard module
* Creates and manages Braintree Apple Pay cards
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree PHP Library.
*
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/ClientToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
class ClientToken
{
const DEFAULT_VERSION = 2;
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/ClientTokenGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

use InvalidArgumentException;

if (!defined('_PS_VERSION_')) {
exit;
}

class ClientTokenGateway
{
/**
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/CoinbaseAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree CoinbaseAccount module
*
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
use IteratorAggregate;
use OutOfRangeException;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree Generic collection
*
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Configuration registry
*
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/CredentialsParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* CredentialsParser registry
*
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree CreditCard module
* Creates and manages Braintree CreditCards
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/CreditCardGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

use InvalidArgumentException;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree CreditCardGateway module
* Creates and manages Braintree CreditCards
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/CreditCardVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class CreditCardVerification extends Result\CreditCardVerification
{
public static function factory($attributes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class CreditCardVerificationGateway
{
private $_gateway;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class CreditCardVerificationSearch
{
public static function id()
Expand Down
3 changes: 3 additions & 0 deletions api/sdk/braintree/lib/Braintree/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Braintree Customer module
* Creates and manages Customers
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/CustomerGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

use InvalidArgumentException;

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Braintree CustomerGateway module
* Creates and manages Customers
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/CustomerSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class CustomerSearch
{
public static function addressCountryName()
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/Descriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class Descriptor extends Instance
{
}
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/Digest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Digest encryption module
* Digest creates an HMAC-SHA1 hash for encrypting messages
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/Disbursement.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

final class Disbursement extends Base
{
private $_merchantAccount;
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/DisbursementDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Disbursement details from a transaction
* Creates an instance of DisbursementDetails as returned from a transaction
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/Discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class Discount extends Modification
{
public static function factory($attributes)
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/DiscountGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class DiscountGateway
{
private $_gateway;
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Creates an instance of Dispute as returned from a transaction
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

use Braintree\Instance;

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Transaction details for a dispute
*
Expand Down
4 changes: 4 additions & 0 deletions api/sdk/braintree/lib/Braintree/EqualityNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

namespace Braintree;

if (!defined('_PS_VERSION_')) {
exit;
}

class EqualityNode extends IsNode
{
public function isNot($value)
Expand Down
Loading

0 comments on commit 4b675c7

Please sign in to comment.