From 01200bcf06c1a432957f600488467b57c211e686 Mon Sep 17 00:00:00 2001 From: DeltaNicola Date: Thu, 8 Sep 2022 15:11:21 +0200 Subject: [PATCH 1/2] Aggiunta Patch --- src/Client.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Client.php b/src/Client.php index 0b69c4b..cf41286 100644 --- a/src/Client.php +++ b/src/Client.php @@ -198,6 +198,12 @@ public function editUserActiveStatus( $userId, bool $activeStatus ) { ); } + public function patchUserData ( $userId, Types\UserInfo $user ) { + return new Types\User( + $this->curl('PATCH', '/user/patch/' . $userId, $user); + ); + } + /** * Ritorna la lista degli id dei documenti inviati From c98102716026801f7dd700f58ba943ef4dad1f6d Mon Sep 17 00:00:00 2001 From: DeltaNicola Date: Thu, 8 Sep 2022 16:13:41 +0200 Subject: [PATCH 2/2] Corrette le rotte e le nomenclature --- src/Client.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index cf41286..647c842 100644 --- a/src/Client.php +++ b/src/Client.php @@ -198,9 +198,19 @@ public function editUserActiveStatus( $userId, bool $activeStatus ) { ); } - public function patchUserData ( $userId, Types\UserInfo $user ) { + + /** + * Modifica P.Iva e C.F. dell'utente + * creando un utente nuovo + * disattivando l'utente precedente + * + * @param $userId + * @param UserInfo $user + * @return User + */ + public function editBilling ( $userId, Types\UserInfo $user ) { return new Types\User( - $this->curl('PATCH', '/user/patch/' . $userId, $user); + $this->curl('PATCH', '/user/edit_billing/' . $userId, $user) ); }