Update existing user bank account

@param string $appUserId
@param BankAccount $bankAccount
@return \Picoss\SMoney\Entity\BankAccount
161828
public function update($appUserId, BankAccount $bankAccount)
    {
        $url = sprintf('users/%s/bankaccounts/%s', $appUserId, $bankAccount->getId());
        return $this->updateObject($url, $bankAccount);
    }
161598
public function userGetCredit($appid, $uid, $credit)
    {
        $response = $this->apiPost('user', 'getcredit', compact('appid', 'uid', 'credit'));
        return (int)$response;
    }
134578
public function getPayment($userId, $monetaryAccountId, $id)
    {
        $paymentResponse = $this->client->get($this->getResourceEndpoint($userId, $monetaryAccountId) . '/' . (int)$id);

        $payment = $paymentResponse['Response'][0]['Payment'];

        $payment['amount']['value'] = $this->floatToCents($payment['amount']['value']);

        return $payment;
    }
105035
public function update(User $user, $option, $categoryKey)
    {
        if (!empty($option)) {
            return $user->hasPermission('options-update-' . $categoryKey);
        }
        return false;
    }
839320
public function create($appUserId, MoneyOut $MoneyOut)
    {
        $url = sprintf($this->getCreateUrlPattern($MoneyOut), $appUserId);

        return $this->createObject($url, $MoneyOut);
    }
60404
public function createUser($accountID, $contactID, $username, $password)
    {
        try
        {
            return $this->httpHelper->patch("accounts/" . intval($accountID) . "/contacts/" . intval($contactID),[
                'username' => $username,
                'password' => $password
            ]);
        }
        catch (ApiException $e)
        {
            throw new InvalidArgumentException($e->getMessage());
        }
    }
365538
public function setAccountID($accountID)
    {
        if (trim($accountID) == null)
        {
            throw new InvalidArgumentException("You must supply an account ID.");
        }

        if (!is_numeric($accountID))
        {
            throw new InvalidArgumentException("Account ID must be numeric.");
        }
        $this->accountID = intval($accountID);
    }
426771
public static com.liferay.commerce.account.model.CommerceAccountUserRel updateCommerceAccountUserRel(
		com.liferay.commerce.account.model.CommerceAccountUserRel commerceAccountUserRel) {
		return getService().updateCommerceAccountUserRel(commerceAccountUserRel);
	}
1224409
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAccountUserRel addCommerceAccountUserRel(
		CommerceAccountUserRel commerceAccountUserRel) {
		commerceAccountUserRel.setNew(true);

		return commerceAccountUserRelPersistence.update(commerceAccountUserRel);
	}
263412
public function update($identity, $service, $token)
    {

        $params = array(
            'token' => $token,
        );

        return $this->_user->put('account/identity/' . $identity . '/token/' . $service, $params);
    }
403070
public function setApPrePaymentAccount(\HarvestCloud\CoreBundle\Entity\Account $apPrePaymentAccount = null)
    {
        $this->apPrePaymentAccount = $apPrePaymentAccount;

        return $this;
    }
960136
public static function update(
        int $scheduleId,
        int $scheduleInstanceId,
        int $monetaryAccountId = null,
        string $state = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [
                    static::determineUserId(),
                    static::determineMonetaryAccountId($monetaryAccountId),
                    $scheduleId,
                    $scheduleInstanceId,
                ]
            ),
            [self::FIELD_STATE => $state],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
1100856
public function getWalletInfo(UserAccount $userAccount, $vendor)
    {
        $result = $this->getAccountInfos($userAccount, $vendor);

        return new AccountInfo(
            $result['user_account_id'],
            $result['user_space_id'],
            $result['identified'] === 1,
            $result['callback_salt'],
            $result['message']
        );
    }
688447
public function update($appId, ApplicationBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->update($appId, $input->toArray(), $queryParams);

        return new ApplicationResponse($response);
    }
1049924
public function updateUser(User $user)
    {
        try {
            return $this->innerGateway->updateUser($user);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
721002
public function setCredentials($appId, $secretKey)
    {
        $this->appId = $appId;
        $this->secretKey = $secretKey;
        return $this;
    }
956102
public function update($appId, $profileId, SettingBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->settings()->update($appId, $profileId, $input->toArray(), $queryParams);

        return new SettingResponse($response);
    }