Skip to content

Commit

Permalink
composer libraries update
Browse files Browse the repository at this point in the history
  • Loading branch information
ClicShopping authored and ClicShopping committed May 30, 2020
1 parent b0fb766 commit 9eb3d7f
Show file tree
Hide file tree
Showing 63 changed files with 178 additions and 109 deletions.
50 changes: 32 additions & 18 deletions shop/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 35 additions & 21 deletions shop/includes/ClicShopping/External/vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,17 +654,17 @@
},
{
"name": "stripe/stripe-php",
"version": "v7.36.0",
"version_normalized": "7.36.0.0",
"version": "v7.36.1",
"version_normalized": "7.36.1.0",
"source": {
"type": "git",
"url": "https://github.com/stripe/stripe-php.git",
"reference": "b0f4e9afe20285297fc48b06b28adcf88ac79e0d"
"reference": "80979c8959dff86bf7b0610e44599a67132ebcd3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/b0f4e9afe20285297fc48b06b28adcf88ac79e0d",
"reference": "b0f4e9afe20285297fc48b06b28adcf88ac79e0d",
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/80979c8959dff86bf7b0610e44599a67132ebcd3",
"reference": "80979c8959dff86bf7b0610e44599a67132ebcd3",
"shasum": ""
},
"require": {
Expand All @@ -680,7 +680,7 @@
"squizlabs/php_codesniffer": "^3.3",
"symfony/process": "~3.4"
},
"time": "2020-05-22T02:18:11+00:00",
"time": "2020-05-28T18:11:30+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -889,26 +889,26 @@
},
{
"name": "symfony/http-client-contracts",
"version": "v2.1.1",
"version_normalized": "2.1.1.0",
"version": "v2.1.2",
"version_normalized": "2.1.2.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client-contracts.git",
"reference": "e3ba2688594d8ef284f40348f7efb72cba4edec4"
"reference": "f8bed25edc964d015bcd87f1fec5734963931910"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/e3ba2688594d8ef284f40348f7efb72cba4edec4",
"reference": "e3ba2688594d8ef284f40348f7efb72cba4edec4",
"url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/f8bed25edc964d015bcd87f1fec5734963931910",
"reference": "f8bed25edc964d015bcd87f1fec5734963931910",
"shasum": ""
},
"require": {
"php": "^7.2.5"
"php": ">=7.2.5"
},
"suggest": {
"symfony/http-client-implementation": ""
},
"time": "2020-05-09T18:37:03+00:00",
"time": "2020-05-25T17:37:45+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -1412,31 +1412,31 @@
},
{
"name": "symfony/service-contracts",
"version": "v2.0.1",
"version_normalized": "2.0.1.0",
"version": "v2.1.2",
"version_normalized": "2.1.2.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
"reference": "144c5e51266b281231e947b51223ba14acf1a749"
"reference": "66a8f0957a3ca54e4f724e49028ab19d75a8918b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/144c5e51266b281231e947b51223ba14acf1a749",
"reference": "144c5e51266b281231e947b51223ba14acf1a749",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/66a8f0957a3ca54e4f724e49028ab19d75a8918b",
"reference": "66a8f0957a3ca54e4f724e49028ab19d75a8918b",
"shasum": ""
},
"require": {
"php": "^7.2.5",
"php": ">=7.2.5",
"psr/container": "^1.0"
},
"suggest": {
"symfony/service-implementation": ""
},
"time": "2019-11-18T17:27:11+00:00",
"time": "2020-05-20T17:43:50+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
"dev-master": "2.1-dev"
}
},
"installation-source": "dist",
Expand Down Expand Up @@ -1468,6 +1468,20 @@
"interfaces",
"interoperability",
"standards"
],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 7.36.1 - 2020-05-28
* [#938](https://github.com/stripe/stripe-php/pull/938) Remove extra array_keys() call.
* [#942](https://github.com/stripe/stripe-php/pull/942) fix autopagination for service methods

## 7.36.0 - 2020-05-21
* [#937](https://github.com/stripe/stripe-php/pull/937) Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId`

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.36.0
7.36.1
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,30 @@ public function request($method, $path, $params, $opts)
return $obj;
}

/**
* Sends a request to Stripe's API.
*
* @param string $method the HTTP method
* @param string $path the path of the request
* @param array $params the parameters of the request
* @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
*
* @return \Stripe\Collection of ApiResources
*/
public function requestCollection($method, $path, $params, $opts)
{
$obj = $this->request($method, $path, $params, $opts);
if (!($obj instanceof \Stripe\Collection)) {
$received_class = \get_class($obj);
$msg = "Expected to receive `Stripe\\Collection` object from Stripe API. Instead received `{$received_class}`.";

throw new \Stripe\Exception\UnexpectedValueException($msg);
}
$obj->setFilters($params);

return $obj;
}

/**
* @param \Stripe\Util\RequestOptions $opts
*
Expand Down Expand Up @@ -234,7 +258,6 @@ private function validateConfig($config)
}

// check absence of extra keys
$validConfigKeys = \array_keys($this->getDefaultConfig());
$extraConfigKeys = \array_diff(\array_keys($config), \array_keys($this->getDefaultConfig()));
if (!empty($extraConfigKeys)) {
throw new \Stripe\Exception\InvalidArgumentException('Found unknown key(s) in configuration array: ' . \implode(',', $extraConfigKeys));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ protected function request($method, $path, $params, $opts)
return $this->getClient()->request($method, $path, static::formatParams($params), $opts);
}

protected function requestCollection($method, $path, $params, $opts)
{
return $this->getClient()->requestCollection($method, $path, static::formatParams($params), $opts);
}

protected function buildPath($basePath, ...$ids)
{
foreach ($ids as $id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AccountService extends \Stripe\Service\AbstractService
*/
public function all($params = null, $opts = null)
{
return $this->request('get', '/v1/accounts', $params, $opts);
return $this->requestCollection('get', '/v1/accounts', $params, $opts);
}

/**
Expand All @@ -35,7 +35,7 @@ public function all($params = null, $opts = null)
*/
public function allCapabilities($parentId, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/accounts/%s/capabilities', $parentId), $params, $opts);
return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/capabilities', $parentId), $params, $opts);
}

/**
Expand All @@ -51,7 +51,7 @@ public function allCapabilities($parentId, $params = null, $opts = null)
*/
public function allExternalAccounts($parentId, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
}

/**
Expand All @@ -69,7 +69,7 @@ public function allExternalAccounts($parentId, $params = null, $opts = null)
*/
public function allPersons($parentId, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ApplePayDomainService extends \Stripe\Service\AbstractService
*/
public function all($params = null, $opts = null)
{
return $this->request('get', '/v1/apple_pay/domains', $params, $opts);
return $this->requestCollection('get', '/v1/apple_pay/domains', $params, $opts);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
*/
public function all($params = null, $opts = null)
{
return $this->request('get', '/v1/application_fees', $params, $opts);
return $this->requestCollection('get', '/v1/application_fees', $params, $opts);
}

/**
Expand All @@ -37,7 +37,7 @@ public function all($params = null, $opts = null)
*/
public function allRefunds($parentId, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
return $this->requestCollection('get', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BalanceTransactionService extends \Stripe\Service\AbstractService
*/
public function all($params = null, $opts = null)
{
return $this->request('get', '/v1/balance_transactions', $params, $opts);
return $this->requestCollection('get', '/v1/balance_transactions', $params, $opts);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ChargeService extends \Stripe\Service\AbstractService
*/
public function all($params = null, $opts = null)
{
return $this->request('get', '/v1/charges', $params, $opts);
return $this->requestCollection('get', '/v1/charges', $params, $opts);
}

/**
Expand Down
Loading

0 comments on commit 9eb3d7f

Please sign in to comment.