public Optional<PartnerAccount> update(long partnerId, PartnerAccount account)
    {
        return HTTP.PUT(String.format("/v2/partners/%d/accounts/%d", partnerId, account.getId()), account, PARTNER_ACCOUNT);
    }
public Optional < PartnerAccount > update ( long partnerId , PartnerAccount account ) { return HTTP . PUT ( String . format ( "/v2/partners/%d/accounts/%d" , partnerId , account . getId ( ) ) , account , PARTNER_ACCOUNT ) ; }
Updates the given account.
@param partnerId The id of the partner the account belongs to
@param account The account to update
@return The account that was updated