Plugin Directory

Changeset 2893373


Ignore:
Timestamp:
04/04/2023 08:04:31 AM (3 years ago)
Author:
eligmaltd
Message:

KYC support

Location:
ellypos-pay/trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • ellypos-pay/trunk/ellypos-pay.php

    r2877840 r2893373  
    33 * Plugin Name: Elly POS Pay
    44 * Description: Pay fast and secure with cards, crypto and other digital payments.
    5  * Version: 1.0.4
     5 * Version: 1.0.5
    66 * Author: Eligma Ltd.
    77 * Author URI: https://gocrypto.com
     
    185185                        'currency_code' => $order->get_currency(),
    186186                        'customer_email' => $order->get_billing_email(),
     187                        'kyc' => [
     188                            'email' => $order->get_billing_email(),
     189                            'first_name' => $order->get_billing_first_name(),
     190                            'last_name' => $order->get_billing_last_name(),
     191                            'country' => $order->get_billing_country(),
     192                            'city' => $order->get_billing_city(),
     193                            'zip_code' => $order->get_billing_postcode(),
     194                            'address' => $order->get_billing_address_1()
     195                        ],
    187196                        'callback_endpoint' => $baseUrl . $this->id . '&order_id=' . $orderId
    188197                    );
  • ellypos-pay/trunk/readme.txt

    r2877840 r2893373  
    22Plugin Name: Elly POS Pay
    33Description: Pay fast and secure with cards, crypto and other digital payments.
    4 Stable tag: 1.0.4
     4Stable tag: 1.0.5
    55Author: Eligma Ltd.
    66Author URI: https://gocrypto.com
     
    5151== Changelog ==
    5252
     53= 1.0.5 =
     54KYC support
     55
    5356= 1.0.4 =
    5457Overpayment and Underpayment support
  • ellypos-pay/trunk/vendor/composer/autoload_psr4.php

    r2766369 r2893373  
    77
    88return array(
    9     'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
     9    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
    1010    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
    1111    'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
  • ellypos-pay/trunk/vendor/composer/autoload_static.php

    r2766369 r2893373  
    3535        'Psr\\Http\\Message\\' =>
    3636        array (
    37             0 => __DIR__ . '/..' . '/psr/http-message/src',
    38             1 => __DIR__ . '/..' . '/psr/http-factory/src',
     37            0 => __DIR__ . '/..' . '/psr/http-factory/src',
     38            1 => __DIR__ . '/..' . '/psr/http-message/src',
    3939        ),
    4040        'Psr\\Http\\Client\\' =>
  • ellypos-pay/trunk/vendor/composer/installed.json

    r2766369 r2893373  
    33        {
    44            "name": "eligmaltd/gocrypto-pay-php",
    5             "version": "dev-main",
    6             "version_normalized": "dev-main",
     5            "version": "v1.0.0",
     6            "version_normalized": "1.0.0.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/eligmaltd/gocrypto-pay-php.git",
    10                 "reference": "881d84a0842bf1465b5174a53615daa9df8d508c"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/eligmaltd/gocrypto-pay-php/zipball/881d84a0842bf1465b5174a53615daa9df8d508c",
    15                 "reference": "881d84a0842bf1465b5174a53615daa9df8d508c",
     10                "reference": "134655420cbc88be177e3cf9b7fb4a6d4566f697"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/eligmaltd/gocrypto-pay-php/zipball/134655420cbc88be177e3cf9b7fb4a6d4566f697",
     15                "reference": "134655420cbc88be177e3cf9b7fb4a6d4566f697",
    1616                "shasum": ""
    1717            },
     
    2020                "php": ">=7.4"
    2121            },
    22             "time": "2022-07-20T13:20:34+00:00",
    23             "default-branch": true,
     22            "time": "2023-04-04T07:08:34+00:00",
    2423            "type": "payments",
    2524            "installation-source": "dist",
     
    4140            "support": {
    4241                "issues": "https://github.com/eligmaltd/gocrypto-pay-php/issues",
    43                 "source": "https://github.com/eligmaltd/gocrypto-pay-php/tree/main"
     42                "source": "https://github.com/eligmaltd/gocrypto-pay-php/tree/v1.0.0"
    4443            },
    4544            "install-path": "../eligmaltd/gocrypto-pay-php"
     
    5251                "type": "git",
    5352                "url": "https://github.com/guzzle/guzzle.git",
    54                 "reference": "4e28ee5d7ee044ebd9be0ab8852997e2bd034cce"
    55             },
    56             "dist": {
    57                 "type": "zip",
    58                 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/4e28ee5d7ee044ebd9be0ab8852997e2bd034cce",
    59                 "reference": "4e28ee5d7ee044ebd9be0ab8852997e2bd034cce",
     53                "reference": "8459341c16f96b9610dcdfe22bd3060d60c0da04"
     54            },
     55            "dist": {
     56                "type": "zip",
     57                "url": "https://api.github.com/repos/guzzle/guzzle/zipball/8459341c16f96b9610dcdfe22bd3060d60c0da04",
     58                "reference": "8459341c16f96b9610dcdfe22bd3060d60c0da04",
    6059                "shasum": ""
    6160            },
     
    7271            },
    7372            "require-dev": {
    74                 "bamarni/composer-bin-plugin": "^1.4.1",
     73                "bamarni/composer-bin-plugin": "^1.8.1",
    7574                "ext-curl": "*",
    7675                "php-http/client-integration-tests": "^3.0",
    77                 "phpunit/phpunit": "^8.5.5 || ^9.3.5",
     76                "phpunit/phpunit": "^8.5.29 || ^9.5.23",
    7877                "psr/log": "^1.1 || ^2.0 || ^3.0"
    7978            },
     
    8382                "psr/log": "Required for using the Log middleware"
    8483            },
    85             "time": "2022-07-31T09:40:09+00:00",
     84            "time": "2022-08-29T11:03:19+00:00",
    8685            "default-branch": true,
    8786            "type": "library",
    8887            "extra": {
     88                "bamarni-bin": {
     89                    "bin-links": true,
     90                    "forward-command": false
     91                },
    8992                "branch-alias": {
    90                     "dev-master": "7.4-dev"
     93                    "dev-master": "7.5-dev"
    9194                }
    9295            },
     
    180183                "type": "git",
    181184                "url": "https://github.com/guzzle/promises.git",
    182                 "reference": "a872440174bcdfd3392831de339656ac56122e26"
    183             },
    184             "dist": {
    185                 "type": "zip",
    186                 "url": "https://api.github.com/repos/guzzle/promises/zipball/a872440174bcdfd3392831de339656ac56122e26",
    187                 "reference": "a872440174bcdfd3392831de339656ac56122e26",
     185                "reference": "b94b2807d85443f9719887892882d0329d1e2598"
     186            },
     187            "dist": {
     188                "type": "zip",
     189                "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598",
     190                "reference": "b94b2807d85443f9719887892882d0329d1e2598",
    188191                "shasum": ""
    189192            },
     
    194197                "symfony/phpunit-bridge": "^4.4 || ^5.1"
    195198            },
    196             "time": "2022-07-31T08:57:45+00:00",
     199            "time": "2022-08-28T14:55:35+00:00",
    197200            "default-branch": true,
    198201            "type": "library",
     
    243246            "support": {
    244247                "issues": "https://github.com/guzzle/promises/issues",
    245                 "source": "https://github.com/guzzle/promises/tree/master"
     248                "source": "https://github.com/guzzle/promises/tree/1.5.2"
    246249            },
    247250            "funding": [
     
    268271                "type": "git",
    269272                "url": "https://github.com/guzzle/psr7.git",
    270                 "reference": "8f0a09ce19adcf28f25ff9d90e7329488501b363"
    271             },
    272             "dist": {
    273                 "type": "zip",
    274                 "url": "https://api.github.com/repos/guzzle/psr7/zipball/8f0a09ce19adcf28f25ff9d90e7329488501b363",
    275                 "reference": "8f0a09ce19adcf28f25ff9d90e7329488501b363",
     273                "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf"
     274            },
     275            "dist": {
     276                "type": "zip",
     277                "url": "https://api.github.com/repos/guzzle/psr7/zipball/3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",
     278                "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",
    276279                "shasum": ""
    277280            },
     
    287290            },
    288291            "require-dev": {
    289                 "bamarni/composer-bin-plugin": "^1.4.1",
     292                "bamarni/composer-bin-plugin": "^1.8.1",
    290293                "http-interop/http-factory-tests": "^0.9",
    291                 "phpunit/phpunit": "^8.5.8 || ^9.3.10"
     294                "phpunit/phpunit": "^8.5.29 || ^9.5.23"
    292295            },
    293296            "suggest": {
    294297                "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
    295298            },
    296             "time": "2022-07-31T08:48:33+00:00",
     299            "time": "2023-03-09T13:19:02+00:00",
    297300            "default-branch": true,
    298301            "type": "library",
    299302            "extra": {
     303                "bamarni-bin": {
     304                    "bin-links": true,
     305                    "forward-command": false
     306                },
    300307                "branch-alias": {
    301308                    "dev-master": "2.4-dev"
     
    362369            "support": {
    363370                "issues": "https://github.com/guzzle/psr7/issues",
    364                 "source": "https://github.com/guzzle/psr7/tree/master"
     371                "source": "https://github.com/guzzle/psr7/tree/2.4.4"
    365372            },
    366373            "funding": [
     
    606613                "type": "git",
    607614                "url": "https://github.com/symfony/deprecation-contracts.git",
    608                 "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
    609             },
    610             "dist": {
    611                 "type": "zip",
    612                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
    613                 "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
     615                "reference": "80d075412b557d41002320b96a096ca65aa2c98d"
     616            },
     617            "dist": {
     618                "type": "zip",
     619                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d",
     620                "reference": "80d075412b557d41002320b96a096ca65aa2c98d",
    614621                "shasum": ""
    615622            },
     
    617624                "php": ">=7.1"
    618625            },
    619             "time": "2022-01-02T09:53:40+00:00",
     626            "time": "2023-01-24T14:02:46+00:00",
    620627            "type": "library",
    621628            "extra": {
  • ellypos-pay/trunk/vendor/composer/installed.php

    r2766369 r2893373  
    22    'root' => array(
    33        'name' => 'eligmaltd/ellpos-pay',
    4         'pretty_version' => '1.0.0+no-version-set',
    5         'version' => '1.0.0.0',
    6         'reference' => NULL,
     4        'pretty_version' => 'dev-develop',
     5        'version' => 'dev-develop',
     6        'reference' => 'd57ac7aa258f32a428b40760390c0608ead2f52d',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'eligmaltd/ellpos-pay' => array(
    14             'pretty_version' => '1.0.0+no-version-set',
    15             'version' => '1.0.0.0',
    16             'reference' => NULL,
     14            'pretty_version' => 'dev-develop',
     15            'version' => 'dev-develop',
     16            'reference' => 'd57ac7aa258f32a428b40760390c0608ead2f52d',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'eligmaltd/gocrypto-pay-php' => array(
    23             'pretty_version' => 'dev-main',
    24             'version' => 'dev-main',
    25             'reference' => '881d84a0842bf1465b5174a53615daa9df8d508c',
     23            'pretty_version' => 'v1.0.0',
     24            'version' => '1.0.0.0',
     25            'reference' => '134655420cbc88be177e3cf9b7fb4a6d4566f697',
    2626            'type' => 'payments',
    2727            'install_path' => __DIR__ . '/../eligmaltd/gocrypto-pay-php',
    28             'aliases' => array(
    29                 0 => '9999999-dev',
    30             ),
     28            'aliases' => array(),
    3129            'dev_requirement' => false,
    3230        ),
     
    3432            'pretty_version' => 'dev-master',
    3533            'version' => 'dev-master',
    36             'reference' => '4e28ee5d7ee044ebd9be0ab8852997e2bd034cce',
     34            'reference' => '8459341c16f96b9610dcdfe22bd3060d60c0da04',
    3735            'type' => 'library',
    3836            'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
    3937            'aliases' => array(
    40                 0 => '7.4.x-dev',
     38                0 => '7.5.x-dev',
    4139            ),
    4240            'dev_requirement' => false,
     
    4543            'pretty_version' => 'dev-master',
    4644            'version' => 'dev-master',
    47             'reference' => 'a872440174bcdfd3392831de339656ac56122e26',
     45            'reference' => 'b94b2807d85443f9719887892882d0329d1e2598',
    4846            'type' => 'library',
    4947            'install_path' => __DIR__ . '/../guzzlehttp/promises',
     
    5654            'pretty_version' => 'dev-master',
    5755            'version' => 'dev-master',
    58             'reference' => '8f0a09ce19adcf28f25ff9d90e7329488501b363',
     56            'reference' => '3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf',
    5957            'type' => 'library',
    6058            'install_path' => __DIR__ . '/../guzzlehttp/psr7',
     
    127125            'pretty_version' => '2.5.x-dev',
    128126            'version' => '2.5.9999999.9999999-dev',
    129             'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',
     127            'reference' => '80d075412b557d41002320b96a096ca65aa2c98d',
    130128            'type' => 'library',
    131129            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • ellypos-pay/trunk/vendor/eligmaltd/gocrypto-pay-php/src/GoCryptoPay.php

    r2766369 r2893373  
    11<?php
    22// Author (c) Daniel Jaušovec, Eligma Ltd.
    3 // Version: GOC-001:2022-07-07
     3// Version: GOC-002:2023-04-04
    44
    55namespace Eligmaltd\GoCryptoPayPHP;
     
    132132     * @var $data [items][discount] integer, optional
    133133     * @var $data [items][tax] integer, optional
     134     * @var $data [kyc] object, optional
     135     * @var $data [kyc][email] string, required
     136     * @var $data [kyc][first_name] string, required
     137     * @var $data [kyc][last_name] string, required
     138     * @var $data [kyc][country] string, required
     139     * @var $data [kyc][city] string, required
     140     * @var $data [kyc][zip_code] string, required
     141     * @var $data [kyc][address] string, required
     142     * @var $data [kyc][building_number] string, optional
    134143     * @var $data [callback_endpoint] string, required
    135144     */
     
    156165            }
    157166
     167            if (array_key_exists('kyc', $data)) {
     168                $chargeData['kyc'] = $data['kyc'];
     169            }
     170
    158171            $response = $this->client->request('POST', $this->endpoint . '/payments/charge/', [
    159172                'headers' => [
  • ellypos-pay/trunk/vendor/guzzlehttp/guzzle/CHANGELOG.md

    r2766369 r2893373  
    22
    33Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version.
     4
     5## 7.5.0 - 2022-08-28
     6
     7### Added
     8
     9- Support PHP 8.2
     10- Add request to delay closure params
    411
    512## 7.4.5 - 2022-06-20
  • ellypos-pay/trunk/vendor/guzzlehttp/guzzle/README.md

    r2766369 r2893373  
    6767| 5.x     | EOL            | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No    | >=5.4,<7.4   |
    6868| 6.x     | Security fixes | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes   | >=5.5,<8.0   |
    69 | 7.x     | Latest         | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes   | >=7.2.5,<8.2 |
     69| 7.x     | Latest         | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes   | >=7.2.5,<8.3 |
    7070
    7171[guzzle-3-repo]: https://github.com/guzzle/guzzle3
  • ellypos-pay/trunk/vendor/guzzlehttp/guzzle/composer.json

    r2766369 r2893373  
    6464    "require-dev": {
    6565        "ext-curl": "*",
    66         "bamarni/composer-bin-plugin": "^1.4.1",
     66        "bamarni/composer-bin-plugin": "^1.8.1",
    6767        "php-http/client-integration-tests": "^3.0",
    68         "phpunit/phpunit": "^8.5.5 || ^9.3.5",
     68        "phpunit/phpunit": "^8.5.29 || ^9.5.23",
    6969        "psr/log": "^1.1 || ^2.0 || ^3.0"
    7070    },
     
    8282    },
    8383    "extra": {
     84        "bamarni-bin": {
     85            "bin-links": true,
     86            "forward-command": false
     87        },
    8488        "branch-alias": {
    85             "dev-master": "7.4-dev"
     89            "dev-master": "7.5-dev"
    8690        }
    8791    },
  • ellypos-pay/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php

    r2766369 r2893373  
    179179        // Resolve conflicts with previously set cookies
    180180        foreach ($this->cookies as $i => $c) {
    181 
    182181            // Two cookies are identical, when their path, and domain are
    183182            // identical.
  • ellypos-pay/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php

    r2766369 r2893373  
    110110    private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface
    111111    {
    112         $options['delay'] = ($this->delay)(++$options['retries'], $response);
     112        $options['delay'] = ($this->delay)(++$options['retries'], $response, $request);
    113113
    114114        return $this($request, $options);
  • ellypos-pay/trunk/vendor/guzzlehttp/promises/CHANGELOG.md

    r2766369 r2893373  
    11# CHANGELOG
     2
     3## 1.5.2 - 2022-08-07
     4
     5### Changed
     6
     7- Officially support PHP 8.2
    28
    39## 1.5.1 - 2021-10-22
     
    1319
    1420- Call handler when waiting on fulfilled/rejected Promise
     21- Officially support PHP 8.1
    1522
    1623### Fixed
    1724
    18 - Fix manually settle promises generated with Utils::task
     25- Fix manually settle promises generated with `Utils::task`
    1926
    2027## 1.4.1 - 2021-02-18
  • ellypos-pay/trunk/vendor/guzzlehttp/promises/README.md

    r2766369 r2893373  
    1818
    1919
    20 # Features
     20## Features
    2121
    2222- [Promises/A+](https://promisesaplus.com/) implementation.
     
    3030
    3131
    32 # Quick start
     32## Quick Start
    3333
    3434A *promise* represents the eventual result of an asynchronous operation. The
     
    3737why the promise cannot be fulfilled.
    3838
    39 
    40 ## Callbacks
     39### Callbacks
    4140
    4241Callbacks are registered with the `then` method by providing an optional
     
    6160
    6261*Resolving* a promise means that you either fulfill a promise with a *value* or
    63 reject a promise with a *reason*. Resolving a promises triggers callbacks
    64 registered with the promises's `then` method. These callbacks are triggered
     62reject a promise with a *reason*. Resolving a promise triggers callbacks
     63registered with the promise's `then` method. These callbacks are triggered
    6564only once and in the order in which they were added.
    6665
    67 
    68 ## Resolving a promise
     66### Resolving a Promise
    6967
    7068Promises are fulfilled using the `resolve($value)` method. Resolving a promise
     
    9391```
    9492
    95 
    96 ## Promise forwarding
     93### Promise Forwarding
    9794
    9895Promises can be chained one after the other. Each then in the chain is a new
     
    124121```
    125122
    126 ## Promise rejection
     123### Promise Rejection
    127124
    128125When a promise is rejected, the `$onRejected` callbacks are invoked with the
     
    141138```
    142139
    143 ## Rejection forwarding
     140### Rejection Forwarding
    144141
    145142If an exception is thrown in an `$onRejected` callback, subsequent
     
    196193```
    197194
    198 # Synchronous wait
     195
     196## Synchronous Wait
    199197
    200198You can synchronously force promises to complete using a promise's `wait`
     
    248246> PHP Fatal error:  Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo'
    249247
    250 
    251 ## Unwrapping a promise
     248### Unwrapping a Promise
    252249
    253250When synchronously waiting on a promise, you are joining the state of the
     
    276273
    277274
    278 # Cancellation
     275## Cancellation
    279276
    280277You can cancel a promise that has not yet been fulfilled using the `cancel()`
     
    284281
    285282
    286 # API
    287 
    288 
    289 ## Promise
     283## API
     284
     285### Promise
    290286
    291287When creating a promise object, you can provide an optional `$waitFn` and
     
    350346
    351347
    352 ## FulfilledPromise
     348### FulfilledPromise
    353349
    354350A fulfilled promise can be created to represent a promise that has been
     
    367363
    368364
    369 ## RejectedPromise
     365### RejectedPromise
    370366
    371367A rejected promise can be created to represent a promise that has been
     
    384380
    385381
    386 # Promise interop
     382## Promise Interoperability
    387383
    388384This library works with foreign promises that have a `then` method. This means
     
    410406
    411407
    412 ## Event Loop Integration
     408### Event Loop Integration
    413409
    414410In order to keep the stack size constant, Guzzle promises are resolved
     
    438434
    439435
    440 # Implementation notes
    441 
    442 
    443 ## Promise resolution and chaining is handled iteratively
     436## Implementation Notes
     437
     438### Promise Resolution and Chaining is Handled Iteratively
    444439
    445440By shuffling pending handlers from one owner to another, promises are
     
    477472value.
    478473
    479 
    480 ## A promise is the deferred.
     474### A Promise is the Deferred
    481475
    482476Some promise libraries implement promises using a deferred object to represent
     
    506500## Upgrading from Function API
    507501
    508 A static API was first introduced in 1.4.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API will be removed in 2.0.0. A migration table has been provided here for your convenience:
     502A static API was first introduced in 1.4.0, in order to mitigate problems with
     503functions conflicting between global and local copies of the package. The
     504function API will be removed in 2.0.0. A migration table has been provided here
     505for your convenience:
    509506
    510507| Original Function | Replacement Method |
     
    537534If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information.
    538535
     536
    539537## License
    540538
    541539Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.
    542540
     541
    543542## For Enterprise
    544543
  • ellypos-pay/trunk/vendor/guzzlehttp/promises/src/EachPromise.php

    r2766369 r2893373  
    8282            $this->refillPending();
    8383        } catch (\Throwable $e) {
    84             /**
    85              * @psalm-suppress NullReference
    86              * @phpstan-ignore-next-line
    87              */
    8884            $this->aggregate->reject($e);
    8985        } catch (\Exception $e) {
    90             /**
    91              * @psalm-suppress NullReference
    92              * @phpstan-ignore-next-line
    93              */
    9486            $this->aggregate->reject($e);
    9587        }
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/CHANGELOG.md

    r2766369 r2893373  
    77
    88## Unreleased
     9
     10## 2.4.4 - 2023-03-09
     11
     12### Changed
     13
     14- Removed the need for `AllowDynamicProperties` in `LazyOpenStream`
     15
     16## 2.4.3 - 2022-10-26
     17
     18### Changed
     19
     20- Replaced `sha1(uniqid())` by `bin2hex(random_bytes(20))`
     21
     22## 2.4.2 - 2022-10-25
     23
     24### Fixed
     25
     26- Fixed erroneous behaviour when combining host and relative path
     27
     28## 2.4.1 - 2022-08-28
     29
     30### Fixed
     31
     32- Rewind body before reading in `Message::bodySummary`
    933
    1034## 2.4.0 - 2022-06-20
     
    98122
    99123- PHP < 7.2 support
    100 - All functions in the Guzzle\Psr7 namespace
     124- All functions in the `GuzzleHttp\Psr7` namespace
    101125
    102126## 1.8.1 - 2021-03-21
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/README.md

    r2766369 r2893373  
    88![Static analysis](https://github.com/guzzle/psr7/workflows/Static%20analysis/badge.svg)
    99
     10
     11# Installation
     12
     13```shell
     14composer require guzzlehttp/psr7
     15```
    1016
    1117# Stream implementation
     
    246252    private $callback;
    247253
     254    private $stream;
     255
    248256    public function __construct(StreamInterface $stream, callable $cb)
    249257    {
     
    381389
    382390
    383 ## `GuzzleHttp\Psr7\Header::normalize`
     391## `GuzzleHttp\Psr7\Header::splitList`
     392
     393`public static function splitList(string|string[] $header): string[]`
     394
     395Splits a HTTP header defined to contain a comma-separated list into
     396each individual value:
     397
     398```
     399$knownEtags = Header::splitList($request->getHeader('if-none-match'));
     400```
     401
     402Example headers include `accept`, `cache-control` and `if-none-match`.
     403
     404
     405## `GuzzleHttp\Psr7\Header::normalize` (deprecated)
    384406
    385407`public static function normalize(string|array $header): array`
     408
     409`Header::normalize()` is deprecated in favor of [`Header::splitList()`](README.md#guzzlehttppsr7headersplitlist)
     410which performs the same operation with a cleaned up API and improved
     411documentation.
    386412
    387413Converts an array of header values that may contain comma separated
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/composer.json

    r2766369 r2893373  
    6161    },
    6262    "require-dev": {
    63         "bamarni/composer-bin-plugin": "^1.4.1",
     63        "bamarni/composer-bin-plugin": "^1.8.1",
    6464        "http-interop/http-factory-tests": "^0.9",
    65         "phpunit/phpunit": "^8.5.8 || ^9.3.10"
     65        "phpunit/phpunit": "^8.5.29 || ^9.5.23"
    6666    },
    6767    "suggest": {
     
    7979    },
    8080    "extra": {
     81        "bamarni-bin": {
     82            "bin-links": true,
     83            "forward-command": false
     84        },
    8185        "branch-alias": {
    8286            "dev-master": "2.4-dev"
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/src/AppendStream.php

    r2766369 r2893373  
    192192
    193193        while ($remaining > 0) {
    194 
    195194            // Progress to the next stream if needed.
    196195            if ($progressToNext || $this->streams[$this->current]->eof()) {
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/src/Header.php

    r2766369 r2893373  
    6363
    6464    /**
    65      * Splits a HTTP header defined to contain comma-separated list into
     65     * Splits a HTTP header defined to contain a comma-separated list into
    6666     * each individual value. Empty values will be removed.
    6767     *
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/src/LazyOpenStream.php

    r2766369 r2893373  
    1111 * take place on the stream.
    1212 */
    13 #[\AllowDynamicProperties]
    1413final class LazyOpenStream implements StreamInterface
    1514{
     
    2322
    2423    /**
     24     * @var StreamInterface
     25     */
     26    private $stream;
     27
     28    /**
    2529     * @param string $filename File to lazily open
    2630     * @param string $mode     fopen mode to use when opening the stream
     
    3034        $this->filename = $filename;
    3135        $this->mode = $mode;
     36
     37        // unsetting the property forces the first access to go through
     38        // __get().
     39        unset($this->stream);
    3240    }
    3341
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/src/Message.php

    r2766369 r2893373  
    6868        }
    6969
     70        $body->rewind();
    7071        $summary = $body->read($truncateAt);
    7172        $body->rewind();
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/src/MultipartStream.php

    r2766369 r2893373  
    3535    public function __construct(array $elements = [], string $boundary = null)
    3636    {
    37         $this->boundary = $boundary ?: sha1(uniqid('', true));
     37        $this->boundary = $boundary ?: bin2hex(random_bytes(20));
    3838        $this->stream = $this->createStream($elements);
    3939    }
  • ellypos-pay/trunk/vendor/guzzlehttp/psr7/src/Uri.php

    r2766369 r2893373  
    173173        }
    174174
    175         if ($authority != ''|| $scheme === 'file') {
     175        if ($authority != '' || $scheme === 'file') {
    176176            $uri .= '//' . $authority;
     177        }
     178
     179        if ($authority != '' && $path != '' && $path[0] != '/') {
     180            $path = '/' . $path;
    177181        }
    178182
     
    732736                throw new MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon');
    733737            }
    734         } elseif (isset($this->path[0]) && $this->path[0] !== '/') {
    735             throw new MalformedUriException('The path of a URI with an authority must start with a slash "/" or be empty');
    736738        }
    737739    }
  • ellypos-pay/trunk/vendor/symfony/deprecation-contracts/LICENSE

    r2766369 r2893373  
    1 Copyright (c) 2020-2022 Fabien Potencier
     1Copyright (c) 2020-present Fabien Potencier
    22
    33Permission is hereby granted, free of charge, to any person obtaining a copy
Note: See TracChangeset for help on using the changeset viewer.