public static function update(
        int $shareInviteBankResponseId,
        string $status = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [static::determineUserId(), $shareInviteBankResponseId]
            ),
            [self::FIELD_STATUS => $status],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function update(
        int $shareInviteBankResponseId,
        string $status = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [static::determineUserId(), $shareInviteBankResponseId]
            ),
            [self::FIELD_STATUS => $status],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function update ( int $ shareInviteBankResponseId , string $ status = null , array $ customHeaders = [ ] ) : BunqResponseInt { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> put ( vsprintf ( self :: ENDPOINT_URL_UPDATE , [ static :: determineUserId ( ) , $ shareInviteBankResponseId ] ) , [ self :: FIELD_STATUS => $ status ] , $ customHeaders ) ; return BunqResponseInt :: castFromBunqResponse ( static :: processForId ( $ responseRaw ) ) ; }
Accept or reject a share a user was invited to.

@param int $shareInviteBankResponseId
@param string|null $status The status of the share. Can be PENDING,
REVOKED (the user deletes the share inquiry before it's accepted),
ACCEPTED, CANCELLED (the user deletes an active share) or
CANCELLATION_PENDING, CANCELLATION_ACCEPTED, CANCELLATION_REJECTED (for
canceling mutual connects)
@param string[] $customHeaders

@return BunqResponseInt
Accept or reject a share a user was invited to .