File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -591,12 +591,12 @@ public function addUsersToAccount(array $arguments): CallResult
591
591
),
592
592
"users " => array_map (
593
593
function (array $ user ) {
594
- return $ this ->userIdentifiersToArray (
594
+ return [ " identification " => $ this ->userIdentifiersToArray (
595
595
new UserIdentified (
596
596
isset ($ user ["userId " ]) ? (string ) $ user ["userId " ] : null ,
597
597
isset ($ user ["email " ]) ? (string ) $ user ["email " ] : null
598
598
)
599
- );
599
+ )] ;
600
600
},
601
601
array_values ($ arguments ["users " ])
602
602
)
@@ -666,12 +666,12 @@ public function removeUsersFromAccount(array $arguments): CallResult
666
666
),
667
667
"users " => array_map (
668
668
function (array $ user ) {
669
- return $ this ->userIdentifiersToArray (
669
+ return [ " identification " => $ this ->userIdentifiersToArray (
670
670
new UserIdentified (
671
671
isset ($ user ["userId " ]) ? (string ) $ user ["userId " ] : null ,
672
672
isset ($ user ["email " ]) ? (string ) $ user ["email " ] : null
673
673
)
674
- );
674
+ )] ;
675
675
},
676
676
array_values ($ arguments ["users " ])
677
677
)
Original file line number Diff line number Diff line change @@ -352,8 +352,8 @@ public function test_it_adds_users_to_account()
352
352
"domain " => "journy.io " ,
353
353
],
354
354
"users " => [
355
- ["userId " => "1 " ],
356
- ["userId " => "2 " ],
355
+ ["identification " => [ " userId " => "1 " ] ],
356
+ ["identification " => [ " userId " => "2 " ] ],
357
357
],
358
358
],
359
359
$ payload
@@ -395,8 +395,8 @@ public function test_it_removes_users_from_account()
395
395
"domain " => "journy.io " ,
396
396
],
397
397
"users " => [
398
- ["userId " => "1 " ],
399
- ["userId " => "2 " ],
398
+ ["identification " => [ " userId " => "1 " ] ],
399
+ ["identification " => [ " userId " => "2 " ] ],
400
400
],
401
401
],
402
402
$ payload
You can’t perform that action at this time.
0 commit comments