Skip to content

Commit 61382f0

Browse files
committed
Merge branch 'release/0.6.3'
2 parents 60a30e3 + 3a6a997 commit 61382f0

4 files changed

Lines changed: 36 additions & 19 deletions

File tree

app/Services/Nordigen/Services/AccountInformationCollector.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,24 @@ protected static function getAccountDetails(Account $account): Account
114114
$account->setLinkedAccounts($information['linkedAccounts'] ?? '');
115115
$account->setMsisdn($information['msisdn'] ?? '');
116116
$account->setName($information['name'] ?? '');
117-
$account->setOwnerAddressUnstructured($information['ownerAddressUnstructured'] ?? '');
117+
$account->setOwnerAddressUnstructured($information['ownerAddressUnstructured']);
118118
$account->setOwnerName($information['ownerName'] ?? '');
119119
$account->setProduct($information['product'] ?? '');
120120
$account->setResourceId($information['resourceId'] ?? '');
121121
$account->setStatus($information['status'] ?? '');
122122
$account->setUsage($information['usage'] ?? '');
123123

124+
// set owner info (could be array or string)
125+
$ownerAddress = [];
126+
if (array_key_exists('ownerAddressUnstructured', $information) && is_array($information['ownerAddressUnstructured'])) {
127+
$ownerAddress = $information['ownerAddressUnstructured'];
128+
}
129+
if (array_key_exists('ownerAddressUnstructured', $information) && is_string($information['ownerAddressUnstructured'])) {
130+
$ownerAddress = ['ownerAddressUnstructured' => $information['ownerAddressUnstructured']];
131+
}
132+
$account->setOwnerAddressUnstructured($ownerAddress);
133+
134+
124135
return $account;
125136
}
126137

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 0.6.3 - 2022-01-12
6+
7+
### Fixed
8+
9+
- Nordigen reports the `ownerAddressUnstructured` both as string and array, thanks @dawid-czarnecki
10+
511
## 0.6.2 - 2022-01-12
612

713
### Fixed

config/importer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
declare(strict_types=1);
2424

2525
return [
26-
'version' => '0.6.2',
26+
'version' => '0.6.3',
2727
'flows' => ['nordigen', 'spectre', 'csv'],
2828
'flow_titles' => [
2929
'csv' => 'CSV',

yarn.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3656,9 +3656,9 @@ multicast-dns@^6.0.1:
36563656
thunky "^1.0.2"
36573657

36583658
nanoid@^3.1.30:
3659-
version "3.1.30"
3660-
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362"
3661-
integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==
3659+
version "3.1.31"
3660+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.31.tgz#f5b58a1ce1b7604da5f0605757840598d8974dc6"
3661+
integrity sha512-ZivnJm0o9bb13p2Ot5CpgC2rQdzB9Uxm/mFZweqm5eMViqOJe3PV6LU2E30SiLgheesmcPrjquqraoolONSA0A==
36623662

36633663
negotiator@0.6.2:
36643664
version "0.6.2"
@@ -3678,10 +3678,10 @@ no-case@^3.0.4:
36783678
lower-case "^2.0.2"
36793679
tslib "^2.0.3"
36803680

3681-
node-forge@^1.2.0:
3682-
version "1.2.0"
3683-
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.2.0.tgz#850cec9230f62f9a7cd8ddd08dc74b4be52573ad"
3684-
integrity sha512-M4AsdaP0bGNaSPtatd/+f76asocI0cFaURRdeQVZvrJBrYp2Qohv5hDbGHykuNqCb1BYjWHjdS6HlN50qbztwA==
3681+
node-forge@^0.10.0:
3682+
version "0.10.0"
3683+
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3"
3684+
integrity sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==
36853685

36863686
node-libs-browser@^2.2.1:
36873687
version "2.2.1"
@@ -4026,9 +4026,9 @@ portfinder@^1.0.28:
40264026
mkdirp "^0.5.5"
40274027

40284028
postcss-calc@^8.2.0:
4029-
version "8.2.0"
4030-
resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.0.tgz#e67ef8c8456d091c0802968faecf79d0e6e00d24"
4031-
integrity sha512-PueXCv288diX7OXyJicGNA6Q3+L4xYb2cALTAeFj9X6PXnj+s4pUf1vkZnwn+rldfu2taCA9ondjF93lhRTPFA==
4029+
version "8.2.1"
4030+
resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.1.tgz#f8d25b8af6189560aab6f2355472cd11a222ed33"
4031+
integrity sha512-FdGs2CYvGTWzDYrm71jydvr48zNStiiRtvxrCscsBLvtVwQ0YZ0gPx2HVFawu0xQuiPLCv66dJo3+/ymhZZLkA==
40324032
dependencies:
40334033
postcss-selector-parser "^6.0.2"
40344034
postcss-value-parser "^4.0.2"
@@ -4666,11 +4666,11 @@ select-hose@^2.0.0:
46664666
integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=
46674667

46684668
selfsigned@^1.10.11:
4669-
version "1.10.13"
4670-
resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-1.10.13.tgz#763e091c684cbcbe98aa40b15b01da3716d68a12"
4671-
integrity sha512-UmLwTKZwNmXYDAlRFhaEdgEg0dp9k5gfJXuO7uKvSqioN1M0+Mgf4V39IlVZMSuqGoCi6h5legkhNXvWy0rFSg==
4669+
version "1.10.14"
4670+
resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-1.10.14.tgz#ee51d84d9dcecc61e07e4aba34f229ab525c1574"
4671+
integrity sha512-lkjaiAye+wBZDCBsu5BGi0XiLRxeUlsGod5ZP924CRSEoGuZAw/f7y9RKu28rwTfiHVhdavhB0qH0INV6P1lEA==
46724672
dependencies:
4673-
node-forge "^1.2.0"
4673+
node-forge "^0.10.0"
46744674

46754675
semver@7.0.0:
46764676
version "7.0.0"
@@ -5316,9 +5316,9 @@ webpack-sources@^1.1.0:
53165316
source-map "~0.6.1"
53175317

53185318
webpack-sources@^3.2.2:
5319-
version "3.2.2"
5320-
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.2.tgz#d88e3741833efec57c4c789b6010db9977545260"
5321-
integrity sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw==
5319+
version "3.2.3"
5320+
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
5321+
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
53225322

53235323
webpack@^5.60.0:
53245324
version "5.65.0"

0 commit comments

Comments
 (0)