Skip to content

Commit

Permalink
update vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
vegimcarkaxhija committed Nov 23, 2023
1 parent 064d499 commit 14891d9
Show file tree
Hide file tree
Showing 55 changed files with 2,422 additions and 12 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
}
},
"config": {
"platform": {
"php": "7.4"
},
"preferred-install": "dist",
"prepend-autoloader": false
},
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit8cc69a57001ff18655c419e4501e58cd::getLoader();
return ComposerAutoloaderInite5a900ac7d982343b879f1fc41489333::getLoader();
17 changes: 17 additions & 0 deletions vendor/brick/math/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Security Policy

## Supported Versions

Only the last two release streams are supported.

| Version | Supported |
| ------- | ------------------ |
| 0.9.x | :white_check_mark: |
| 0.8.x | :white_check_mark: |
| < 0.8 | :x: |

## Reporting a Vulnerability

To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.
23 changes: 23 additions & 0 deletions vendor/buckaroo/sdk/.github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: SonarQube PR Analysis

on:
push:
branches:
- master
- develop/
- 'bugfix/**'
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
21 changes: 21 additions & 0 deletions vendor/buckaroo/sdk/example/transactions/mbway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

require_once '../bootstrap.php';

use Buckaroo\BuckarooClient;

$buckaroo = new BuckarooClient($_ENV['BPE_WEBSITE_KEY'], $_ENV['BPE_SECRET_KEY']);

//Also accepts json
//Pay
$response = $buckaroo->method('mbway')->pay([
'invoice' => uniqid(),
'amountDebit' => 10.10,
]);

//Refund
$response = $buckaroo->method('mbway')->refund([
'invoice' => '', //Set invoice number of the transaction to refund
'originalTransactionKey' => '', //Set transaction key of the transaction to refund
'amountCredit' => 10.10,
]);
21 changes: 21 additions & 0 deletions vendor/buckaroo/sdk/example/transactions/multibanco.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

require_once '../bootstrap.php';

use Buckaroo\BuckarooClient;

$buckaroo = new BuckarooClient($_ENV['BPE_WEBSITE_KEY'], $_ENV['BPE_SECRET_KEY']);

//Also accepts json
//Pay
$response = $buckaroo->method('multibanco')->pay([
'invoice' => uniqid(),
'amountDebit' => 10.10,
]);

//Refund
$response = $buckaroo->method('multibanco')->refund([
'invoice' => '', //Set invoice number of the transaction to refund
'originalTransactionKey' => '', //Set transaction key of the transaction to refund
'amountCredit' => 10.10,
]);
9 changes: 9 additions & 0 deletions vendor/buckaroo/sdk/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Unique key for the project
sonar.projectKey=buckaroo:php_sdk

# Display name and version for the SonarQube UI
sonar.projectName=Buckaroo PHP SDK
sonar.projectVersion=1.0

# Path to the source code, relative to the sonar-project.properties file
sonar.sources=.
30 changes: 30 additions & 0 deletions vendor/buckaroo/sdk/src/PaymentMethods/MBWay/MBWay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/

declare(strict_types=1);

namespace Buckaroo\PaymentMethods\MBWay;

use Buckaroo\PaymentMethods\PayablePaymentMethod;

class MBWay extends PayablePaymentMethod
{
protected string $paymentName = 'MBWay';
}
30 changes: 30 additions & 0 deletions vendor/buckaroo/sdk/src/PaymentMethods/Multibanco/Multibanco.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/

declare(strict_types=1);

namespace Buckaroo\PaymentMethods\Multibanco;

use Buckaroo\PaymentMethods\PayablePaymentMethod;

class Multibanco extends PayablePaymentMethod
{
protected string $paymentName = 'Multibanco';
}
59 changes: 59 additions & 0 deletions vendor/buckaroo/sdk/src/Services/TraitHelpers/HasIssuers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php
/*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/

namespace Buckaroo\Services\TraitHelpers;

use Buckaroo\Exceptions\BuckarooException;
use Buckaroo\Transaction\Request\TransactionRequest;

trait HasIssuers
{
/**
* @return array
* @throws BuckarooException
*/
public function issuers(): array
{
$request = new TransactionRequest;

try
{
$response = $this->client->specification($request, $this->paymentName, $this->serviceVersion());
} catch (BuckarooException $e)
{
return [];
}

$issuerList = [];
if (isset($response->data()['Actions']['0']['RequestParameters'][0]['ListItemDescriptions']))
{
$issuersData = $response->data()['Actions']['0']['RequestParameters'][0]['ListItemDescriptions'];
if (count($issuersData) > 0)
{
foreach ($issuersData as $issuer)
{
$issuerList[] = ['id' => $issuer['Value'], 'name' => $issuer['Description']];
}
}
}

return $issuerList;
}
}
55 changes: 55 additions & 0 deletions vendor/buckaroo/sdk/tests/Buckaroo/Payments/MBWayTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/

namespace Tests\Buckaroo\Payments;

use Tests\Buckaroo\BuckarooTestCase;

class MBWayTest extends BuckarooTestCase
{
/**
* @return void
* @test
*/
public function it_creates_a_mbway_payment()
{
$response = $this->buckaroo->method('mbway')->pay([
'invoice' => uniqid(),
'amountDebit' => 10.10,
]);

$this->assertTrue($response->isPendingProcessing());
}

/**
* @test
*/
public function it_creates_a_mbway_refund()
{
$response = $this->buckaroo->method('mbway')->refund([
'amountCredit' => 10,
'invoice' => 'testinvoice 123',
'description' => 'refund',
'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX',
]);

$this->assertTrue($response->isFailed());
}
}
55 changes: 55 additions & 0 deletions vendor/buckaroo/sdk/tests/Buckaroo/Payments/MultibancoTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/

namespace Tests\Buckaroo\Payments;

use Tests\Buckaroo\BuckarooTestCase;

class MultibancoTest extends BuckarooTestCase
{
/**
* @return void
* @test
*/
public function it_creates_a_multibanco_payment()
{
$response = $this->buckaroo->method('multibanco')->pay([
'invoice' => uniqid(),
'amountDebit' => 10.10,
]);

$this->assertTrue($response->isPendingProcessing());
}

/**
* @test
*/
public function it_creates_a_multibanco_refund()
{
$response = $this->buckaroo->method('multibanco')->refund([
'amountCredit' => 10,
'invoice' => 'testinvoice 123',
'description' => 'refund',
'originalTransactionKey' => '2D04704995B74D679AACC59F87XXXXXX',
]);

$this->assertTrue($response->isFailed());
}
}
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit8cc69a57001ff18655c419e4501e58cd
class ComposerAutoloaderInite5a900ac7d982343b879f1fc41489333
{
private static $loader;

Expand All @@ -24,16 +24,16 @@ public static function getLoader()

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInit8cc69a57001ff18655c419e4501e58cd', 'loadClassLoader'), true, false);
spl_autoload_register(array('ComposerAutoloaderInite5a900ac7d982343b879f1fc41489333', 'loadClassLoader'), true, false);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit8cc69a57001ff18655c419e4501e58cd', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInite5a900ac7d982343b879f1fc41489333', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit8cc69a57001ff18655c419e4501e58cd::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInite5a900ac7d982343b879f1fc41489333::getInitializer($loader));

$loader->register(false);

$filesToLoad = \Composer\Autoload\ComposerStaticInit8cc69a57001ff18655c419e4501e58cd::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInite5a900ac7d982343b879f1fc41489333::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit8cc69a57001ff18655c419e4501e58cd
class ComposerStaticInite5a900ac7d982343b879f1fc41489333
{
public static $files = array (
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
Expand Down Expand Up @@ -153,9 +153,9 @@ class ComposerStaticInit8cc69a57001ff18655c419e4501e58cd
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit8cc69a57001ff18655c419e4501e58cd::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit8cc69a57001ff18655c419e4501e58cd::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit8cc69a57001ff18655c419e4501e58cd::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInite5a900ac7d982343b879f1fc41489333::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite5a900ac7d982343b879f1fc41489333::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite5a900ac7d982343b879f1fc41489333::$classMap;

}, null, ClassLoader::class);
}
Expand Down
Loading

0 comments on commit 14891d9

Please sign in to comment.