Skip to content

Commit

Permalink
Merge pull request #1 from bornfight/feature/symfony5-upgrade
Browse files Browse the repository at this point in the history
Upgrade uuid and Symfony packages
  • Loading branch information
Matteo Kovačić committed Sep 29, 2020
2 parents 388aa8f + f431e45 commit ccf0c71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"require": {
"php": ">=7.2",
"guzzlehttp/guzzle": "^6.3",
"ramsey/uuid": "^3.8",
"symfony/property-access": "^4.2",
"symfony/serializer": "^4.2",
"ramsey/uuid": "^4",
"symfony/property-access": "^5",
"symfony/serializer": "^5",
"ext-json": "*"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/http/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getConsent(): ResponseInterface
{
return $this->client->post(sprintf('%s/consents', self::AISP_ENDPOINT), [
RequestOptions::HEADERS => [
'X-Request-ID' => Uuid::uuid4(),
'X-Request-ID' => Uuid::uuid4()->toString(),
'psu-ip-address' => '127.0.0.1',
'signature' => 'test',
'digest' => 'test',
Expand Down Expand Up @@ -100,7 +100,7 @@ public function getAccounts(string $token, string $consent, array $params): Resp
{
return $this->client->get(sprintf('%s/accounts', self::AISP_ENDPOINT), [
RequestOptions::HEADERS => [
'X-Request-ID' => Uuid::uuid4(),
'X-Request-ID' => Uuid::uuid4()->toString(),
'consent-id' => $consent,
'Authorization' => "Bearer {$token}",
'web-api-key' => $this->apiUser->getWebApiKey(),
Expand All @@ -123,7 +123,7 @@ public function getTransactions
$params = array_merge($params, $defaultParams);
return $this->client->get(sprintf('%s/accounts/%s/transactions', self::AISP_ENDPOINT, $accountId), [
RequestOptions::HEADERS => [
'X-Request-ID' => Uuid::uuid4(),
'X-Request-ID' => Uuid::uuid4()->toString(),
'consent-id' => $consentId,
'Authorization' => "Bearer {$token}",
'web-api-key' => $this->apiUser->getWebApiKey(),
Expand Down

0 comments on commit ccf0c71

Please sign in to comment.