Skip to content

Commit 7884021

Browse files
Merge pull request #1 from DeltaNicola/updateUser
Modifica P.IVA e C.F. dell'utente
2 parents 4f8fccf + c981027 commit 7884021

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Client.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,22 @@ public function editUserActiveStatus( $userId, bool $activeStatus ) {
199199
}
200200

201201

202+
/**
203+
* Modifica P.Iva e C.F. dell'utente
204+
* creando un utente nuovo
205+
* disattivando l'utente precedente
206+
*
207+
* @param $userId
208+
* @param UserInfo $user
209+
* @return User
210+
*/
211+
public function editBilling ( $userId, Types\UserInfo $user ) {
212+
return new Types\User(
213+
$this->curl('PATCH', '/user/edit_billing/' . $userId, $user)
214+
);
215+
}
216+
217+
202218
/**
203219
* Ritorna la lista degli id dei documenti inviati
204220
* @param int $userId

0 commit comments

Comments
 (0)